My second assignment for my intro to programming course is to make change:
Problem: Given the cost of an item, the number of items bought, and the amount tendered for the purchase, you should calculate the change to be given by specifying the number of each type of bill and coin to be used.
Input: The input to this program will consist of three values: the cost of an item, the number of items being bought, and the amount of money given to pay for the total purchase. You should have your program print out helpful prompts so that the user knows what values to input.
Output: You should echo the input data and print out the manner in which the change is to be given. For example,
Each item is $0.46.
You bought 6 items.
You gave me $20.00.
Your change is:
1 ten dollar bill
1 five dollar bill
2 one dollar bills
So far I have the input parts done, but I don't even know where to begin looking to start making change. I am so new to Java it hurts. Please help!