Question: computer programming class needed: coding/program for below In this project, we are developing computer program that works inside a stamp selling machine. In 2021, each
computer programming class needed: coding/program for below
In this project, we are developing computer program that works inside a stamp selling machine. In 2021, each stamp is now 55 cents each. The stamp selling machine stores many stamps to sell. A user come to the machine, needing to buy some number of stamps (less than 50). Once the desired number of stamps is entered, the machine tells the user the cost of the stamps. The user then insert some combination of bills ($5, $10 or $20) no $1 is accepted. The Stamp machine then calculate the number of nickels, dimes, quarters, $1, $5, $10, $20 to give back as change to the user.
1: Implement the user's interaction with the stamp selling machine described above.
2: Complication! What if the machine do not have enough stamp for the user? Then it has to tell the user the number of stamps remaining in the machine, and display the cost of those stamps.
3. If the user does not input enough money, the machine will need to ask the user to input more money or to cancel the transaction. Once more money is entered, the program proceed to output the change.
Project 4 (optional): What would happen if the machine runs out of $5 bills? Not enough dime or quarter? In a real machine, the system must be able to handle all the potential issues. Can you think of more requirements for this program so the machine can operator smoothly?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
