Question: how do i fix this 1 quarter =0.25 2 dime =0.10 3 nickel =0.05 4 penny =0.01 5 print('Please enter number of coins: ') 6

how do i fix this
how do i fix this 1 quarter =0.25 2 dime =0.10 3
nickel =0.05 4 penny =0.01 5 print('Please enter number of coins: ')

1 quarter =0.25 2 dime =0.10 3 nickel =0.05 4 penny =0.01 5 print('Please enter number of coins: ') 6 num_quarters = int (input('Number of quarters:')) 7 num_dimes = int (input('Number of dimes: ')) 8 num_nickels = int (input ('Number of nickels: ')) 9 num_pennies = int ( input ('Number of pennies: ')) 10 total_quarters = num_quarters quarter 11 total_dimes = num_dimes dime 12 total_nickels = num_nickels nickel 13 total_pennies = num_pennies penny 14 total = total_quarters + total_dimes + total_nickels + total_pennies 15 print('The total is', total ) Please enter number of coins: Number of quarters: 13 Number of dimes: 4 Number of nickels:11 Number of pennies:17 The total is 4.37 Question 03: Penny Pinching Write a program that asks the user to enter a number of quarters, dimes, nickels and pennies and then outputs the monetary value of the coins in the format of dollars and remaining cents. Your program should interact with the user, and output its results, exactly as it is shown in the following example: Please enter number of coins: Number of quarters: 13 Number of dimes: 4 Number of nickels: 11 Number of pennies: 17 The total is 4 dollar(s) and 37cent(s)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!