please help!

Question Description

In this project you will be programming toward a solution of a problem using decision making blocks such as if statements. Your project must contain the use of if, else, elif blocks.

You will write a program that will prompt the user for the total change amount as an integer input, and your program will output the change using the fewest coins, one coin type per line.

The coin types are dollars, quarters, dimes, nickels, and pennies.
Use singular and plural coin names as appropriate, like 1 penny vs. 2 pennies.

Example of a sample run:

Enter the change amount as integer:1231 dollar2 dimes3 pennies
Enter the change amount as integer:451 quarter2 dimes
Enter the change amount as integer:-45No Change
Enter the change amount as integer:1001 dollar
Enter the change amount as integer:1251 dollar1 quarter

LAB

ACTIVITY

23.1.1: PROJECT 1 : Finding the Exact change using Decision Making blocks

0 / 100

main.py

1

2

3

4

5

6

7

print(“This program asks the user to enter a change amount using integers only,”)

print(“and outputs the change using the fewest coins.”)

input_val = int(input(“Enter the change amount as integer:”))

”’ Type your code here. ”’

Get your college paper done by experts

Do my question How much will it cost?

Place an order in 3 easy steps. Takes less than 5 mins.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *