MP1 worksheet
MP1 worksheet
Comments:
***************** gas_mileage *****************
gas_mileage output with inputs of 300 miles and 12.3 gallons
Enter the number of gallons that was used by your car:12.3
Enter the distance that was travelled by your car:300
Mileage of the car:24.390243902439025Miles Per Gallon
____________________________________
***************** averager *****************
averager output with inputs of 11, 15, and 24.
Enter the three integers:11
15
24
Integers entered: 11,15and24
Average of the integers:16.666666666666668
___________________________________
***************** jar *****************
Output from your jar program
Enter the amount of quarters that are in the jar:2
Enter the amount of dimes that are in the jar:1
Enter the amount of nickels that are in the jar:2
Enter the amount of pennies that are in the jar:3
The jar contains73cents.____________________________________
***************** make_change *****************
Output from your make_change program
Enter the total price in dollars:
4
Enter the price in cents:
23
Enter the money that was recieved in dollars:
5
Enter the money that was recieved in cents:
50
CHange that was returned:
-3dollar(s)
-2quarter(s)
-2dime(s)
0nickel(s)
5pennies____________________________________
4.29
7
MP1 worksheet
Comments:
***************** gas_mileage *****************
gas_mileage output with inputs of 300 miles and 12.3 gallons
____________________________________
***************** averager *****************
averager output with inputs of 11, 15, and 24.
____________________________________
***************** jar *****************
Output from your jar program
____________________________________
***************** make_change *****************
Output from your make_change program
____________________________________
Thank you!
7
0
Are there any code examples left?
New code examples in category Other
-
Other 2023-03-27 22:50:10 how to select the whole line in vscode with keyboard shortcut
-
Other 2022-03-27 22:45:24 income of a web developer
-
Other 2022-03-27 22:35:01 \pyrcc_main.py: File does not exist 'resources.qrc'
-
Other 2022-03-27 22:30:45 rick roll embed code
-
Other 2022-03-27 22:20:08 Circuit_04_Potentiometer
-
Other 2022-03-27 22:20:05 iterative power
-
Other 2022-03-27 22:15:11 flutter run all
-
Other 2022-03-27 22:10:05 when is karlson release
-
Other 2022-03-27 22:10:02 wp .htaccess example
-
Other 2022-03-27 22:00:08 bash pause in file read line by line