Question: Homework 1 Change Write a program in Python that asks the user to input a certain number of cents. The program will then calculate how

Homework 1 Change

Write a program in Python that asks the user to input a certain number of cents. The program will then calculate how many of each type of coin is needed to make that number of cents. The coins to calculate are the following:

Penny

Nickel

Dime

Quarter

Half dollar

Dollar coin

Requirements:

1.Put all code inside a main() function.

2.Do not allow any unhandled errors.

3.Do not allow negative amounts for the number of cents

4.Limit the number of cents to a maximum of 1000.

5.Include a comment header and comments throughout the code

6.Do not use real numbers; use variables instead.

7.Use the standard method of naming variables

8.Write the code neatly

9.Display the results neatly

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!