Question: Python language > > > b = volume_of_cone() > > > What is the length of the radius of the cone? 10 > > >
> > > b = volume_of_cone() > > > What is the length of the radius of the cone? 10 > > > What is the height of the cone? 2 > > > print (b) 289.448 Function name (3): calculate_velocity Parameters: initial_position, final_position, time Return value: N/A Description: Write a function that finds the velocity using the initial position, final position, and time passed in the function. 1. Calculate the velocity using the following formula: velocity = final_position - initial_position/time 2. Print the velocity in the following format: "With an final position of 100 meters, initial position of 0 meters, and a time of 80 seconds, the velocity is 12.5 m/s." Test Cases (not an exhaustive list): 1. > > > calculate_velocity(0, 100, 80) With a final position of 100 meters, initial position of 0 meters, and a time of 80 seconds, the velocity is 12.5 m/s. 2. > > > calculate_velocity(2, 10, 0, 5) With a final position of 10 meters, initial position of 2 meters, and a time of 0.5 seconds, the velocity is 16 m/s. Function name (4): liquid_converter Parameters: N/A Return value: N/A Description: Write a user-interactive function to convert any number of fluid ounces to the equivalent number of gallons, quarts, pints, and gills. 1. Get the number of fluid ounces as an integer from the user. You can assume that the user input an int. 2. Calculate the total number of gallons, quarts, pints, and gills represented by the original number of fluid ounces, using the following information: a. There are 128 fluid ounces in a gallon. b. There is 32 fluid ounces in a quart. c. There are 16 fluid ounces r a part. d. There are 4 fluids ounces in a gill. 3. Print the calculated number of gallons, quarts, pints, and gills in the following format (assuming the user entered 6523): "6523 fluid ounces is 50 gallon(s). 3 quart(s), 1 pint(s), and 2 gil(s)" Test Casses (not an exhaustive list): > > > How many fluid ounces would you like to convert? 6523 6523 fluid ounces is 50 gallon(s), 3 quart(s), 1 pint(s), and 2 gill(s) > > > How many fluid ounces would you like to convert? 1250 1250 fluid ounces is 9 gallon(s), 2 quart(s), 2 pint(s), and 0.5 gill(s) > > > How many fluid ounces would you like to convert? 180
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
