رحاب
15-12-2005, 07:19 PM
Airline Reservation System:
A small airline has just purchased a computer for its new automated reservation system. You have been asked to program the new system. You are to write a class-based C++ program (create a suitable class using the C++ keyword class with public and private sections and use it through the function main) to assign seats on each flight of the airline's only plane (capacity: 100 seats).
Your program should display the following menu of alternatives-Please type 1 for "First Class" and Please type 2 for "Economy Class". If the person types 1, your program should assign a seat in the first class section (seats: 1-25). If the person types 2, your program should assign a seat in the economy section (seats: 26-100). Your program should print a boarding pass indicating the person's seat number and whether it is in the first class or economy class of the plane.
Your program should, of course, never assign a seat that has already been assigned. When the first class section is full, your program should ask the person if it is acceptable to be placed in the economy section (and vice versa). If yes, then make the appropriate seat assignment. If no, then print the message "Next flight leaves in 3 hours". If the plane is full, then print an appropriate message
دا البروجكت المطلوب مني عمله
يعني مشيت بالشغل بس بالأراي
الان طبعا هو طالبه كلاس
فسؤالي أدري بتلطشوني عليه
بس وش اسوي:$ كل الكلاسبيعطونا هو دائما جاهز ماغير احنا نقعد نعمل الفانكشون تبعه
مين أحط public ومين ؟private
يعني جى على بالي المقاعد تكون برايفت هي ودرجة الرحلة؟
صح الكلام ولا مو؟؟
اتمنى أدخل الليل والقى الاجابة لأنه الله يسلمكم الأحد يبغاه الدكتور
ودمتم بلا برمجة توجع الراس:178:
A small airline has just purchased a computer for its new automated reservation system. You have been asked to program the new system. You are to write a class-based C++ program (create a suitable class using the C++ keyword class with public and private sections and use it through the function main) to assign seats on each flight of the airline's only plane (capacity: 100 seats).
Your program should display the following menu of alternatives-Please type 1 for "First Class" and Please type 2 for "Economy Class". If the person types 1, your program should assign a seat in the first class section (seats: 1-25). If the person types 2, your program should assign a seat in the economy section (seats: 26-100). Your program should print a boarding pass indicating the person's seat number and whether it is in the first class or economy class of the plane.
Your program should, of course, never assign a seat that has already been assigned. When the first class section is full, your program should ask the person if it is acceptable to be placed in the economy section (and vice versa). If yes, then make the appropriate seat assignment. If no, then print the message "Next flight leaves in 3 hours". If the plane is full, then print an appropriate message
دا البروجكت المطلوب مني عمله
يعني مشيت بالشغل بس بالأراي
الان طبعا هو طالبه كلاس
فسؤالي أدري بتلطشوني عليه
بس وش اسوي:$ كل الكلاسبيعطونا هو دائما جاهز ماغير احنا نقعد نعمل الفانكشون تبعه
مين أحط public ومين ؟private
يعني جى على بالي المقاعد تكون برايفت هي ودرجة الرحلة؟
صح الكلام ولا مو؟؟
اتمنى أدخل الليل والقى الاجابة لأنه الله يسلمكم الأحد يبغاه الدكتور
ودمتم بلا برمجة توجع الراس:178: