Select Page

#1. Five Star Retro Video rents VHS tapes and DVDs to the same connoisseurswho like to buy LP record albums. The store rents new videos for \$3.00 a night, and oldies for \$2.00 a night.Write a program that the clerks at Five Star Retro Video can use to calculate the total charge for a customer’s video rentals.The program should prompt the user for the number of each type of video and output the total cost.An example of the program input and output is shown below:Enter the number of new videos: 3Enter the number of oldies: 2The Total cost is \$13.0#2. Write a program that takes the radius of a sphere (a floating-point number) as input and then outputs the sphere’s: -Diameter (2 radius) -Circumference (diameter p) -Surface area (4 p radius2) -Volume (4/3 p radius3)For convenience, the program can import the math module.Below is an example of the program input and output:Radius = 5Diameter : 10.0Circumference: 31.41592653589793Surface area : 314.1592653589793Volume : 523.5987755982989#3. An object’s momentum is its mass multiplied by its velocity.Write a program that accepts an object’s mass (in kilograms) and velocity (in meters per second) as inputs, and then outputs its momentum.Below is an example of the progam input and output:Mass: 5Velocity: 2.5The object’s momentum is 12.5#4. The kinetic energy of a moving object is given by the formula KE = mv2 where m is the object’s mass and v is its velocity.Modify the program you created in Project 5 so that it prints the object’s kinetic energy as well as its momentum.Below is an example of the program input and output:Mass: 5Velocity: 2.5The object’s momentum is 12.5The object’s kinetic energy is 15.625#4.1Modifythefollowingcode#4.2Requesttheinputmass=float(input(“Entertheobject’smass:”))velocity=float(input(“Entertheobject’svelocity:”))#4.3Computetheresultsmomentum=mass*velocity#4.4Displaytheresults#5. Write a program that calculates and prints the number of minutes in a year.Assume the following: -1 year = 365 days (Ignore leap years) -1 day = 24 hours -1 hour = 60 minutesBelow is an example of the correct output format:The number of minutes in a year is XProgram displays the proper solutionThe number of minutes in a year was not hard coded into the program.#6. Light travels at 3 108 meters per second. A light-year is the distance a light beam travels in one year.Write a program that calculates and displays the value of a light-year.Useful facts: -Seconds in a year = 36524602 -Rate = 3108 meters per secondBelow is an example of the correct output format:Light travels X meters in a year.#7. Write a program that takes as input a number of kilometers and prints the corresponding number of nautical miles.Use the following approximations: -A kilometer represents 1/10,000 of the distance between the North Pole and the equator. -There are 90 degrees, containing 60 minutes of arc each, between the North Pole and the equator. -A nautical mile is 1 minute of an arc.An example of the program input and output is shown below:Enter the number of kilometers: 100The number of nautical miles is 54The program should output a sentence structure like the one shown above.#8. An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours, plus any overtime pay.Overtime pay equals the total overtime hours multiplied by 1.5 times the hourly wage.Write a program that takes as inputs the hourly wage, total regular hours, and total overtime hours and displays an employee’s total weekly pay.Below is an example of the program inputs and output:Enter the wage: \$15.50Enter the regular hours: 40Enter the overtime hours: 12The total weekly pay is \$899.0Computer ScienceEngineering & TechnologyPython Programming COM MISC

Order your essay today and save 20% with the discount code ESSAYHELP