تسجيل الدخول

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



ولد أبوه
08-05-2005, 10:47 PM
السلام عليكم


اناا طالبفي جامعة الملك فهد طلب مني المدرس اني اسوي مشروع في السي
وبصراحة ماعرفت بالضبط ايش المطلوب

هذا هو نص المشروع وابي منكم المساعدة
انا ماأطلب البنامج كاملا بس ابي hint يعني كيف ومن وين ابدأ

****************************************************
ICS 103 – Computer Programming in C
Second Semester 2004-2005 (042)
Lab Section-57
Lab Project

Write a system for keeping the count of number of ships on the port.

Data Entry:
User would enter the information of any ship arriving on the port, and departure of the ship from the port.

Information Report:
User wants to know the current state of the port, i.e. how many ships are there on the port at present, number of ships arrived since a given date, search for any particular ship to see if it is on the port or has already departed.

Constraints:
1) Total capacity of the port is 10 ships.
2) Program should not let user enter more than 10 ships on the port at any given state.
3) Program should not let user depart any ship that has not arrived or is not currently present at the port.
4) After executing each option, user should be shown the main menu again until he presses option 7 to exit the system.
5) Program should store ship information permanently i.e. even if the program is closed the ship information should be present in some text files. So that when the user re-runs the program he can see the record that was entered previously.

User Interface:
Your program should display the following menu to the user.

/*****Ship Data Entry*****/
1. Ship Arrival Information
2. Ship Departure Information
/*****Port Information Reports***/
3. Ships at the Port
4. History of Ship arrival
5. Find Ship
/******Administration*****/
6. Delete Ship information
/******Exit*****/
7. Exit

Format of Data Entry, Report and Administration Options:
Option 1 should take two inputs i.e. ship name and arrival date of that ship
Option 2 should take two inputs i.e. ship name and departure date of that ship
Option 3 should store the information in a text file (portships.txt) in the following format.

Sr. # Ship Name Arrival Date
1. Al Safeena 12-April-2005
2. Kota Teju 25-April-2005
Option 4 should store the information in a text file (shiphistory.txt) in the following format.

Sr. # Ship Name Arrival Date Departure Date

Option 5 should ask the user the ship and should tell the user if the ship is present on the port then its arrival date otherwise if it has already departed then its arrival and departure date and if the ship name is not found then tell the user that ship was never at this port.

Option 6 should ask the ship name and its arrival date from the user and should delete that ship from the records.

Option 7 should ask the user if he is sure to exit from the program, if the user approves then program should exit.


***********************************************************************************

MSB
14-05-2005, 09:11 AM
انا قراته على السريع

شوف بالبداية لازم تدور عن البيانات الي تحتاجها يعني السفن وبعدين تاخد الرقم الي بيعيطك اياه او عنونها وتم تقارن يعني تسوي
include <string.h>
وتستخدم ال strcmp هدي فكرته على ما اعتقد

Super Boy
17-05-2005, 07:48 AM
يا أخي انتو موضوعكم اسهل منا


شوف إيش موضوعنا

البروجكت حقنا تعمل أكاونت و انا إلى الآن ما بدأت فيها و يعتمد على الكورس كامل ....