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____________________________________