مشاهدة النسخة كاملة : نداءء للاحبة ورجاااااااااااااااااااء


طيور النورس
13-11-2007, 10:12 PM
السلام عليكم ورحمة الله وبركاته
اهنيكم على الموقع الاكثر من رائع واهني الموقع بكم بما حظى باعضاء متميزين وراقين
واتمنى ان تقبلوني تلميذة عندكم وتتحملوني وتتحملوا اسئلتي فانا اعلم ان اسئلتي ستكون تافهة لديكم فانا مبتدئة في البرمجة فاتمنى مساعدتكم لي وانا كلي امل بكم
واول الاسئلة وهذه محاولتي وان تقيموها لي الليلة لانها مطلوبة غدا وشكراااااااا
واعرف انكم تقولون تو الناس بدري ولكن حصل ظروف =======
==================
Write a complete C++ that display a menu to reserve a room in a hotel. There are three types of rooms single with 100 R.S, double with 200 R.S, and Suite with 300 R.S. if the room is double ask for number of child and charge 50 R.S for each one, and if the room is suite ask for number of person and charge 150 R.S for more than 4 person. (Use switch)

The output should be as following:
``````````````````Menu``````````````````````
1- Reserve Single
2- Reserve Double
3- Reserve Suite
`````````````````````````````````````````````````
Enter you choose: 3

Enter number of person: 5

Total cost is 450 per night
================================
Include iostream.h
Class hotel room
**
Int room num;
Int num of person;
Double rate;
Puplic:
Cout<<''enter the num of room"<<end1<<''enter num of person''<<end1<<''enter numofrate''<<end1;
Cin.>>room num>>num of person>>rate;
};
Int main{
Switch(x)
X=100;
Case1:cout<<''total cost''<<x;
Break;
Case2:cout<<''num of childern'';
Cin>>n;
X=n*50
Break;
Case3:cout<<''enter of person'';
Cin.>>z;
If(z.>=4)
X=150+x;
Cout<<x<<x;
Else
X=300;
}