මචන් මේ Program එක කරන්න පොඩි idea එකක් දෙන්නකෝ මේකේ එකතුව අරගෙන discount එකත් ගන්න විදිහ තේරෙනවා but details bill එකක් print කරන්න තේරෙන්නේ නැ
Point of Sales System for a Sandwich Bar
The sandwich bar offers the varieties summarized in the table shown below.
Type of Bread Chicken Sea Food Vegetarian
Baguette 200 300 100
Foccacia 250 350 150
Ciabatta 225 325 125
The prices shown above are for a small sandwich. Sandwiches are available in 3 sizes, small medium and large. The price of a medium sandwich is 10% higher than a small sandwich. The price of large sandwich is 20% higher than a small sandwich.
The following toppings are available as extras
Cheese: Rs. 50
Mayonnaise: Rs. 25
Special Sauce: Rs. 100
Your system should allow the following questions to be answered
1. What is the type of bread required (B, F, C)?
2. What is the filling you require (C, S, V)?
3. What is the size you require (S, M, L)?
4. What are the toppings required? – A customer may opt for all 3 toppings
5. How many sandwiches of the specified type do you require?
The system should continue to prompt cashier to define sandwich types until the order is terminated.
A detailed bill should be printed out on the termination of the order. A 10% discount will be given to all orders above Rs. 1000.00 and paid by Visa credit cards.
Assume that you have been given enough filling for 5 sandwiches for each type of filling. You must prompt the user when a type of sandwich is unavailable.
Basic Requirements:
Accept orders according to the requirements given above
Print out a detailed invoice indicating bread, filling, size & toppings
Print out a detailed bill indicating any discounts
You may design the system in any way you feel that meets the system’s requirement. You may include menus that you feel are relevant to navigate around the system. There should be a mechanism to exit the system.
You may use structures, arrays, loops, decision structures and files in your program. You may include any extra features e.g. sorting by type of sandwich, which you may feel relevant and that adds value to the system.
Point of Sales System for a Sandwich Bar
The sandwich bar offers the varieties summarized in the table shown below.
Type of Bread Chicken Sea Food Vegetarian
Baguette 200 300 100
Foccacia 250 350 150
Ciabatta 225 325 125
The prices shown above are for a small sandwich. Sandwiches are available in 3 sizes, small medium and large. The price of a medium sandwich is 10% higher than a small sandwich. The price of large sandwich is 20% higher than a small sandwich.
The following toppings are available as extras
Cheese: Rs. 50
Mayonnaise: Rs. 25
Special Sauce: Rs. 100
Your system should allow the following questions to be answered
1. What is the type of bread required (B, F, C)?
2. What is the filling you require (C, S, V)?
3. What is the size you require (S, M, L)?
4. What are the toppings required? – A customer may opt for all 3 toppings
5. How many sandwiches of the specified type do you require?
The system should continue to prompt cashier to define sandwich types until the order is terminated.
A detailed bill should be printed out on the termination of the order. A 10% discount will be given to all orders above Rs. 1000.00 and paid by Visa credit cards.
Assume that you have been given enough filling for 5 sandwiches for each type of filling. You must prompt the user when a type of sandwich is unavailable.
Basic Requirements:
Accept orders according to the requirements given above
Print out a detailed invoice indicating bread, filling, size & toppings
Print out a detailed bill indicating any discounts
You may design the system in any way you feel that meets the system’s requirement. You may include menus that you feel are relevant to navigate around the system. There should be a mechanism to exit the system.
You may use structures, arrays, loops, decision structures and files in your program. You may include any extra features e.g. sorting by type of sandwich, which you may feel relevant and that adds value to the system.
Last edited:



