Question
write the following two programs in IDLE. In file names , the yyyy should be replaced by your last name. Program 1 : ( yyyyPizza,
write the following two programs in IDLE. In file names, the yyyy should be replaced by your last name.
Program 1: (yyyyPizza, where yyyy is your family name plus your first name initial): Americans eat an average of 350 slices of pizza per second. How many slices of pizza do they eat in x days (where x is input by the user)? Here is a sample run:
For how many days would you like to calculate the total number of pizza slices eaten by Americans? 4 Americans would eat 120960000 slices of pizza in 4 days. |
Program 2: yyyylab2-2 (where yyyy is as in no. 1), If you know an airplanes take-off speed (v) and acceleration (a), you can compute the minimum runway length needed for it to take off. The formula for the length of the runway is: length = v2 / 2a
Write a program that prompts the user to enter v in meters/second and the acceleration a in meters/second squared, and displays the minimum runway length. This is a sample run:
Enter the take-off speed of the airplane: 65
Enter the acceleration of the airplane: 3.6
The minimum runway length for this airplane is 586.805 meters.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started