Question: Input food order - quit Write ctt program of each output. code List of food Price A Cheezy grill chicken (special promo ) RM8.50 B
Input food order
- quit
Write ctt program of each output.
| code | List of food | Price |
| A | Cheezy grill chicken (special promo ) | RM8.50 |
| B | Bolognese, carbonara, auglio olio | RM 9.60 |
| C | Mushroom soup | RM4.90 |
| D | Tuna mayo, egg mayo | RM6.80 |
| E | Kaya, peanut butter, garlic bread | RM3.50 |
| F | Mix salad, seafood salad | RM5.80 |
| G | Sausage, nugget | RM5.00 |
| H | French fries, chicken nugget | RM5.00 |
Examples output:
Food Order : List of food with price
Enter food code : A, B, C
Cheezy grill chicken (special promo ) RM8.50
Bolognese, carbonara, auglio olio RM 9.60
Mushroom soup RM4.90
Write ctt program of each output.
| Code | Number of seat |
| 1 | 5 |
| 2 | 8 |
| 3 | 10 |
| 4 | 6 |
| 5 | 6 |
| 6 | 7 |
| 7 | 1 |
| 8 | 3 |
| 9 | 4 |
| 10 | 6 |
| 11 | 7 |
| 12 | 7 |
| 13 | 5 |
| 14 | 4 |
| 15 | 6 |
Example output:
List of table :
| Code | Number of seat |
| 1 | 5 |
| 2 | 8 |
| 3 | 10 |
| 4 | 6 |
| 5 | 6 |
| 6 | 7 |
| 7 | 1 |
| 8 | 3 |
| 9 | 4 |
| 10 | 6 |
| 11 | 7 |
| 12 | 7 |
| 13 | 5 |
| 14 | 4 |
| 15 | 6 |
Enter tables code : 8, 7
Number of seats
Code 8 3 seats
Code 7 1 seat
Write ctt program of each ouput
| code | List of food | Price |
| A | Cheezy grill chicken (special promo ) | RM8.50 |
| B | Bolognese, carbonara, auglio olio | RM 9.60 |
| C | Mushroom soup | RM4.90 |
| D | Tuna mayo, egg mayo | RM6.80 |
| E | Kaya, peanut butter, garlic bread | RM3.50 |
| F | Mix salad, seafood salad | RM5.80 |
| G | Sausage, nugget | RM5.00 |
| H | French fries, chicken nugget | RM5.00 |
Payment method debit card or cash
Example output :
Enter payment method : cash
Food Order
Code Food Quantity Price
A Cheezy grill chicken (special promo ) 1 RM8.50
B Bolognese, carbonara, auglio olio 1 RM 9.60
Enter amount : RM18.10
Successful paid
Enter payment method : debit card
Food Order
Code Food Quantity Price
A Cheezy grill chicken (special promo ) 1 RM8.50
B Bolognese, carbonara, auglio olio 1 RM 9.60
Enter PIN No : 6digit number
Enter amount : RM18.10
Successful paid
Enter receipt : Iffah
Surya Western Restaurant
Code food quantity of food price total amount
RM18.10
Quit
then combine all coding in one ctt program . complete program
ouhh sorry. write ctt program...and combine all
can less the detail list of food or other detail in tables maybe if too length....if can....
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
