INSTRUCTION:
The Sintok Chicken Restaurant wants you to develop a programthat simulates a simple cash register. The program should ask theuser to enter the meal. The price of the food is as follows:
Code
Menu
Price (RM)
FC
Fried chicken
10.50
CB
Chicken burger
6.50
PC
Popcorn chicken
4.20
NL
Nasi Lemak Ayam
8.00
MM«M ----jGRASP exec: java SintokMM§MWELCOME TO SINTOK CHICKEN RESTAURANTMM§M************************************MM§MMM§MFC FriedChicken RM10.50MM§MCB ChickenBurger RM 6.50MM§MPC PopcornChicken RM 4.20MM§MNS Nasi LemakChicken RM 8.00MM§MMM§MPlace your order (use the item code)MM§M************************************MM§M¼¼§MWhich food? Enter -1 to end: FC¼¼§MHow many orders? -1¼¼§MHow many orders? 1MM§M¼¼§MWhich food? Enter -1 to end: CB¼¼§MHow many orders? 2MM§M¼¼§MWhich food? Enter -1 to end: PC¼¼§MHow many orders? 2MM§M¼¼§MWhich food? Enter -1 to end: NS¼¼§MHow many orders? 1MM§M¼¼§MWhich food? Enter -1 to end: -1MM§MMM§MThe total price to be paid : RM39.90¼¼§MPlease enter amount tendered : RM 30MM§MMM§MThe total price to be paid : RM39.90¼¼§MPlease enter amount tendered : RM 50MM§M-------------------------------MM§MThis is your receiptMM§M Price : RM 39.90MM§M Amount : RM 50.00MM§M Balance : RM 10.10MM§M-------------------------------MM§MMM§MThank you, please come againMM§MMM©M ----jGRASP: operation complete.¼¼MM
INSTRUCTION: The Sintok Chicken Restaurant wants you to develop a program that simulates a simple cash register. The pro
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am