Project Description - You have been hired by a hypermarket chain as a program developer. The chain plans to deploy an online shopping platform. Your first job is to use C++ to write a prototype. This prototype program shoul
ENAP150 Computer Algorithms and Programming Lab Assessment 2026 | University of Dubai
| Academic Year | 2026 |
|---|
ENAP150 Assessment
Course Learning Outcomes (CLO)
- Use the fundamental programming constructs.
- Solve Computing Problems using flowcharts and pseudo-codes.
- Implement Algorithms using programming concepts.
- Develop a computer program to solve problems using functions.
Project Description [Total 8 Marks]
You have been hired by a hypermarket chain as a program developer. The chain plans to deploy an online shopping platform. Your first job is to use C++ to write a prototype. This prototype program should be able to do the following:
Q1)[2 Marks]
Prompt the customer to start shopping or to exit from the program.
If the customer chooses to start shopping, a list of grocery items should be displayed to choose from. Each item should have a different price, for example:
1-Milk (6 AED)
2-Fruit (14 AED)
3-Bread (25 AED)
Q2)[2 Marks]
After choosing an item, the customer should be asked to confirm whether they wish to add it to their cart or not. If he adds it to the cart, the total sum should be updated.
Q3) [2 Marks]
After the customer has chosen to add the item to the cart or otherwise, he should be prompted as to whether he wishes to continue shopping or proceed to checkout.
Q4) [2 Marks]
If the customer wants to check out, ask if he wishes to donate to charity. The donation amount (5 AED) should be added to the final bill. The final bill should include a tax amount (10% of the total) and the amount of charity donated, if any. Make sure to display the final bill amount.
You need to implement at least one function in your program. For example, a function to find the final bill amoun