Graduate PYTHON

rigid body, cylinder

A spool of thread has rolled under the bed! Fortunately, you get the free end of the thread. The inner part of the reel where the thread is wound is a homogeneous, full cylinder of mass 3M and radius 2R. At each end there is a homogeneous cylindrical disc with mass M and radius 3R. …

Continue Reading
PYTHON Undergraduate

Python Grade Assignment

Your math teacher has asked you to write a program that grades the multiple-choice questions in a Math exam. The exam has 10 multiple-choice questions. Here are the correct answers: 1. A        6. B        2.D          7.A        3. B          …

Continue Reading
PYTHON Undergraduate

Python

Create a class called Tour.  An instance of this class is to be instantiated with two US cities, and is used to fetch information from the web.  Specifically, the class must define: 1.    __init__  The constructor takes two strings as arguments, each giving a city name and state abbreviation, indicating the origin and destination.  For …

Continue Reading
PYTHON Undergraduate

Foreign Exchange Option

We will use the Garman-Kohlhagan model (Links to an external site.) to price our options in this assignment. We will write a function that takes the option contract parameters (type–call or put, strike price, and expiration date) as well as market observations (spot exchange rate, volatility, and interest rates in both the domestic and foreign …

Continue Reading
Graduate PYTHON

python programming

The included Excel file lists HIV estimated prevalence of people ages from 15 to 49 in the world from 1979 to 2011. Use the dataset to complete following tasks: Add one column as continent in the dataset and label each country/regionin the dataset to an appropriate continent such as Europe, Asia, Africa, North America, South …

Continue Reading