السلام عليكم ورحمه الله وبركاته
بدون مقدمات لاني ما أعرفلها اصلا
المهم أن محتاجه مساعدكم لي والرجاء الرد علي لاني مره محتاجه وتعبت ما أقدر أفهم طريقه الوصول للحل
والمس الله يهديها أعطتنا الواجب قبل الاجازه وما فهمنا ايش تبغى كويس
وأبغى أتركم مع السؤال والله يخليكم أبغى شرح لجزئيه القراءه من الملف حسب ماهي طالبه في السؤال
وهي كانت طالبه في الواجب اللي قبله كلاس للطلاب وكلاس لعناوينهم
والله يخليكم ساعدوني خاصه جزئيه القراءه من ملف
A. Modify the last HW
- Delete the address class and all it features.
- Each students object should contain :
String firstName, lastName;
Long ID;
course [] S_course; // each student must take 4 courses maximum
- Each course object should contain :
String name;
int course_num;
Student [] students;// each course must have 10 students maximum
- Define 2 arrays in the main method that store all students' records in the department (size 30), and store the courses' records (size 10).
- The student's record and course record must be add to the array from 2 files contain all the information of all the students and courses in that department.
Note : make sure it does exceed the size( even if the files contains more than 30 students and more than 10 courses).
- print a menu as followed:
- Add student to a course.
- Add student to a course.
1. Enter student's Id and course's name (add the students object according to the Id to the particular course ( make sure the course is not full );
2. As the same time add the course object to the particular students, and make sure that the student doesn't exceed the limit of courses number.
- Delete student from a course.
- Delete student from a course.
1. use the same criteria of the addition method.
2. make sure before deletion that the course is not empty and that student was enrolled in that course.
- Print the courses of a particular student.
- Print students list of a particular course.
- Print the courses of a particular student.
Don't use ArrayList
تقبلوا تحياتي
:(