برامج

ابي مساعده جزاكم الله خير [الأرشيف] - برامج نت

المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ابي مساعده جزاكم الله خير


wahdawy10
04-24-2007, 01:07 PM
السلام عليكم

عندي برنامج

ما عرفتله

اطلب منكم مساعده

ارجوكم

انا محتاج

هذا المطلوب
في سي بلس بلس

PROBLEM:


The College of Science distributes student textbooks through an office that employs three (3) staff members [represented by the letters A, B and C]. The office keeps daily information about the service, particularly with regards to timing (in hours, and minutes). The collected data, which contains a maximum 100 records stored in a file named records.txt, where each record consists of a student’s ID, his/her arrival time, the exact time the student was served, and the staff who served him/her.

Write an interactive (a menu driven) C++ program that would help the college analyse the collected data and produce (on demand) statistics about the daily textbook distribution operation.

When executed, the program should provide the following choices and consequent statistics for the user:

[1 point each]
• A list of all available records
• The average waiting time for all students
• A list of all available records for an individual student [prompt to enter a student’s ID]
• The average waiting time for individual students [prompt to enter a student’s ID]
• A list of served students by individual staff [prompt to select the staff]
• The average serving time by individual staff [prompt to select the staff]


Your program must [2 points]
• Be modular, for example: functions to/for:
o Repeatedly display the above choices
o Sorting
o Searching
o Various time calculations
o Displaying information on screen

And [1 point]
• Display all listings in ascending order (sorted according to the user’s choice of field)
• Exit (with a smile) when the user ends the program


There is no sample input/output, so BE CREATIVE [1 point]


This is what in file records .txt


65456 11 40 11 50 B
55363 11 30 11 56 C
64645 08 13 09 23 B
45467 10 15 10 17 A
46795 12 24 12 43 A
67877 11 10 11 41 B
66665 09 50 10 20 C
67344 10 20 10 30 C
80666 13 30 13 40 B
34644 14 20 14 21 A
35566 15 30 15 44 B
52934 12 50 13 40 A
42456 14 50 15 30 B
55342 11 56 11 59 C
52433 14 00 12 00 B
34444 10 14 10 46 A
67344 11 00 11 06 C
35566 12 22 12 35 B
35566 11 35 12 20 A
80666 09 00 09 33 B
70720 10 05 10 20 A

طبعا الاول للرقم والثاني لوقت الدخول والثالت لوقت الخدمة والرابع لموظف المكان


انتظر الرد

بسرعهه