Project

Write a program for the following scenario( Please also see the Learn for more information):

The aim of this project is to design, build, test and report the stamps vending simulation .

Your program should display the following options:
1. Domestic
2. International

When the user makes his/her choice, your program should display the stamp cost for the selected option:
1. domestic: $0.50
2. Zone 1 international: $1.50
3. Zone 2 international: $2.00
4. and the text ‘Press 0 to order’.

For domestic, the user needs to enter the quantity. For international, the order should be in the format zone quantity. Then, if the user presses the key 0, the program should display the whole amount. After this, the program should go back to the original menu.

For maintenance, if the user presses F while in the original menu, the machine should indicate the remaining inventory (number of domestic and international stamps remaining) and the amount of money in the machine (whole dollars only). Assume that the original number was 99 of each. A 0 will take you back to the original menu.

Scroll to Top