مساء الخير للجميع ...هذه أول مشاركة لي و أتمنى من الله أن أجد المساعة عندكم
لدي بروجيكت في مادة البرمجة يتكون من ثلاثة أسئلة و هناك سؤال لم أتمكن من حله لذا أتمنى أن يوفقني الله في هذا المنتدى و أجد الجواب الشافي
أتمنى أن أجد الإجابة في أقرب وقت لأن آخر موعد لتسلبم الحل هو يوم السبت
سوف أقوم بكتابة السؤال باللغة الانجليزية كما وارد في ورقة الأسئلة
Define a stuctur,MenuItemType, with two components:menuItem of the type string,and menuPrice of the type double.
Now,we are going to use this structure difinition to solve the following problem.
Write C++ program to help a local restaurant automate its billing system,The program should do the following:
A) Show the coustomer the different items offered by the restaurant.
b)allow the customer to select more than one item from the menu.
c)Calculate and print the bill.
Assum that the restaurant offers the following items with the price:
Item Name Price
Plain Egg 3.5 Dh
Rice & Meat Dish 10.0 Dh
Grilled Chicken 12.0 Dh
Bread 1.5 Dh
Tea 2.0 Dh
Coffee 3.0 Dh
Cold drink 2.0 Dh
Use an aaray menuList of the struct menuItemType,your program must contain at least the following functions:
* Function GetData: This function loads the data into the array menuList
*Function showMenu: this function shows the different items offered by the restaurant and tells the user how to select the items.(hint:define a window and design an iterative selection process).Assume that only one quantity of each item is selected.
A sample out put (report screen) should look like this :
Welcome to Dubai Restaurant
Rice&Meat Dish 10.0 Dh
Bread 1.5 Dh
Cold Drink 2.0 Dh
Total Amount Due 13.5 Dh

