program3 change

program3 change - Formula- Constraints- amounts must be...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Kristin Gumbert Frye October 12, 2007 Program #3 – Functions (Change) Planning: The program is going to make change for a purchase and ask the user to enter the amount of purchase and the amount tendered. Analysis: Inputs- amount of purchase, amount tendered Outputs- num of tens, num of fives, num of dollars, num of quarters, num of dimes, num of nickels, num of pennies
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Formula- Constraints- amounts must be greater than zero Assumptions- all numbers are positive Design: 1. Get Input a. Amount of purchase b. Amount tendered 2. Calculations a. Find the amount of change. 3. Print Output a. num of tens b. num of fives c. num of dollars d. num of quarters e. num of dimes f. num of nickels g. num of pennies...
View Full Document

This note was uploaded on 04/07/2008 for the course CSC 135 taught by Professor Frye during the Fall '07 term at Kutztown.

Ask a homework question - tutors are online