You and your classmates are going to eat Pizza at a nearby outlet. The store assistant gives you the menu and price list as show below:
Pizza Type Normal Price ($) Student Price ($)
1. Pepperoni Lover’s – Thin N Crispy 14.99 11.99
2. Pepperoni Lover’s – Stuffed Crust 16.99 13.99
3. Meat Lover’s – Hand-tossed 11.99 8.99
4. Nasi Lemak flavour – Local favourite 10.99 7.99
5. Hawaiian – All-time favourite 13.99 10.99
Prices are subjected to prevailing GS T.
After taking the IP module and you want to demonstrate your programming skills, you offer to write a program to help the Pizza store to computerize the ordering system. You have decided to implement the algorithm by first displaying a menu and prompting customer to enter the type of price, that is, normal price or student price. The algorithm will then prompt the customer to enter the type of pizza to order and quantity. Your algorithm also allows the customer to enter more than one type of pizza, that is, your algorithm will continue to prompt the customer to enter the type of pizza to order and the quantity until the customer decides to stop ordering. When the customer has completed his/her order, your algorithm will then compute and output the total billing amount. In computing the total bill, your algorithm will compute the 7% GST as well.
How can I built this in basic java?
- Posted:
- 3+ months ago by psw1595
- Topics:
- menu, pizza, price, store, java, outlet, built, below, classmates, classmate
Details:
Responses (1)
I can't tell you how to exactly do this because it's based off of your class curriculum ("IF module"). However, java is a pretty popular program so you can probably find a lot of tutorials online (especially YouTube) so that should help. Let me know if you need any further assistance.