ظل القمر حنين
23-05-2005, 01:05 AM
بسم الله الرحمن الرحيم
هاي شباب كيفكم ان شاء الله بخير
شباب أبي فزعتكم عندي واجب في الجامعة في ال ++C
وأبغاه بطريقة الفانكش function الله يخليكم عشان لازم أسلمه للدكتورة
وهذا السؤوال :
--------------------------------------------------------------------------------------
write a program for a fast food restaurant.
the program will contain the followingt menu.
1- food menu.
2- Calculate daily prfits. (أرباح).
3- Quit.
when the user chooses the first choixe Food Menu the following menu will appear :
choixes Prices
1- Beef Burger . 10 SR
2-French fires. 4 SR
3-Pepsi. 2 SR
4-Pizza. 15 SR
When the user chooses any of the above the program will ask hem if he wants to add
another order (Y,N) . If the user chooses Y as a yes answer that means he wants to
continue to add another order so the program will wiew the menu again to enable the user
to choose another order .
That process continues tell the user press N as a no answer for the question.
DO YOU WANT TO CONTINUE ?
After letter N is pressed by the user the program will calculate the total price of the things
he has chosen and then wiew the first menu.
After the first menu appears the user will be anle to choose the second choice Calculate
daily profits , if so the program will ask the user about the day outcome and income . After
that, the program will be be able to calculate.
Day profit = income - outcome
Print the Day Profit for the user on the screen then return to the first menu.
if the user chooses the third choice Quit the program terminates.
ومشكورين مقدما
بليز الله يوفقكم يااااااارب وياليت باسرع وقت
باااااااااااااااااااااااااااااااااااااااااااااااي
هاي شباب كيفكم ان شاء الله بخير
شباب أبي فزعتكم عندي واجب في الجامعة في ال ++C
وأبغاه بطريقة الفانكش function الله يخليكم عشان لازم أسلمه للدكتورة
وهذا السؤوال :
--------------------------------------------------------------------------------------
write a program for a fast food restaurant.
the program will contain the followingt menu.
1- food menu.
2- Calculate daily prfits. (أرباح).
3- Quit.
when the user chooses the first choixe Food Menu the following menu will appear :
choixes Prices
1- Beef Burger . 10 SR
2-French fires. 4 SR
3-Pepsi. 2 SR
4-Pizza. 15 SR
When the user chooses any of the above the program will ask hem if he wants to add
another order (Y,N) . If the user chooses Y as a yes answer that means he wants to
continue to add another order so the program will wiew the menu again to enable the user
to choose another order .
That process continues tell the user press N as a no answer for the question.
DO YOU WANT TO CONTINUE ?
After letter N is pressed by the user the program will calculate the total price of the things
he has chosen and then wiew the first menu.
After the first menu appears the user will be anle to choose the second choice Calculate
daily profits , if so the program will ask the user about the day outcome and income . After
that, the program will be be able to calculate.
Day profit = income - outcome
Print the Day Profit for the user on the screen then return to the first menu.
if the user chooses the third choice Quit the program terminates.
ومشكورين مقدما
بليز الله يوفقكم يااااااارب وياليت باسرع وقت
باااااااااااااااااااااااااااااااااااااااااااااااي