Question: 5-Python-CleoPyramid Debugging Highest grade Input The first line contains the volume of the cell-renewing elixie that Marc Antony brings back from the Pacific. The second


5-Python-CleoPyramid Debugging Highest grade Input The first line contains the volume of the cell-renewing elixie that Marc Antony brings back from the Pacific. The second line contains the area of the base Output Print out the height of the pyramid and the volume of the pyramid on two separate lines These two values should be rounded up using the round function, rounder of its For example rout.4.3) 9,95 E number of digitis, Rrovided to the cound functional round the number to the acesti tegar For example one.546), 10 In this problem, assume all outputs are whole numbers. Make sure you found the height first, print the rounded height, then use the rounded height to calculate the volume. The volume should also be rounded Editor Submitted Versions 1 Your name and/or your partnershme 2 CSCT102 Section? 3 #Python-Fic leo yr old 4 5 Enter the volume of the cell rendng elixer volume 0 Int(input) 7 8 WEnter the area of the area Int(input) le 11 print the height of the pyramid and the volume on 2 separate lines 12 full vol volume 10 13 thelp full vol/ 14 heightP - Volume 2 15 16 Wround the values wp round 12 PHT - round (height 18 print (det 19 20 volume (ndit areana) 21 print (round(volune, 2)) Sunt Editor Submitted Versions 6. Python-Change Calculator Highest grade 1 2 3 Your name and/or your partner's name # CSC1102 - Section ? # Python-ChangeCalculator A vegetarian burrito at Chipotle costs approximately (depending on tax) $8.68, and you pay with $10 in cash. The change dispensing machine then calculates the proper change: 1 dollar plus 1 quarter, 1 nickel, and 2 pennies (25 + 5 + 2) = 1 dollar and 32 cents, and it dispenses it to you properly (minus the dollar, which you receive from the cashier). Implement an algorithm that calculates the proper change distribution to give to a customer (.e, if the change is 36 cents, you should not say 3 dimes and 6 pennies, as that is incorrect). In other words, your algorithm must use the largest coins whenever possible. The correct change distribution for 36 cents would be 1 quarter, 1 dime, and 1 penny, This problem has two inputs: the amount due and the amount received from the customer. Display the dollars, quarters, dimes, nickels, and pennies that the customer should receive in return SALTO Bot Quarter Dime 100 Nickel 5c Penny 1c Submit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
