Starting from:

$29

Assignment 2 University Management System

Homework Assignment 2 
Scope: University Management System
You are expected to develop university management system. Main Problem: Course Enrollment Problems: 1. Students need to enrol courses. It is not allowed to enrol too much courses where sum of their credits is more than the credit right of student. It is allowed them to equal. 2. Students mustn’t enrol courses whose most hours are overlapped. For example, a course with 3 hours can be overlapped on one hour with another course, Student can enrol these both courses. But if they are overlapped on 2 hours, it cannot enrol one of them. 3. Students can extract their schedule into .txt file. Models: 1. Student: Keeps student information and performs functionality of students. (Class) Information: Name, surname, student_no, level Functionality: o enrollCourse(Course):int - the student enrolls course, return credit remained o disenroll(Course):int - the student disenrolls course, return credit remained o extractSchedule():string - o enterClassroom(Classroom):void - student enters classroom o quitClassroom(Classroom):void - student quits classroom 2. Course: keeps course information. (Struct) Information: id, name, code, credit, total hours, lecture dates, field 3. Classroom: keeps classroom information. (Struct) Information: id, c_no, capacity, student_inroom
Test Scenarios 1. Read txt file for courses and classrooms. Student will enter his information. It selects from course lists. If it is not allowed to enrol course, program display reason and expect new course. When enrolment finish, program will assign classroom to courses and show time table on day of week. (input) -ns Murat Boz 111 4 (input) -ns Seda Akyol 112 1 (input) -ns Zafer Çalış 113 2 (input) -list (ouput) (1) Türkçe (2) SosyalBilgiler (3) BedenEğitimi (4) Müzik (input) -e 111 1 (output) DONE! [ || (OR)] (output) BLOCK! Because of (credits [||] Overlap ) [||] (output) ERROR: NO STUDENT (enroll) (input) -de 111 1 (output) DONE! [ || (OR)] (output) BLOCK! Because of (credits [||] Overlap ) [||] (output) ERROR: NO STUDENT (disenroll) (input) -o 111 (output) Murat Boz: [courses which Murat boz enrolled are listed with their credits] total credits: [total credits] credit right: [credit right for 4. Level student] 23 (input) -o (output)Murat Boz: [] total credits:0 credit right: 23 Seda Akyol: [] total credits:0 credit right: 20 Zafer Çalış: [] total credits:0 credit right: 21 (input) -o -f 111 file.txt (output) DONE! file.txt (input) -o -f file.txt
(output) DONE! file.txt (input) exit 2. All information needed is assigned in main function. Program will calculate three value; a. At most How many courses should be opened according to number of student and capacity of classrooms? b. At most How many students can enrol courses according to number of courses and capacity of classrooms? 3. All functions in the program will be executed and tested with 3 different values.
Remarks • Do not use any elements which is not covered in class. • Do not submit your code without testing it with several different scenarios. • Write comments in your code.
Turn in: • Source code of a complete C++ program. Name of the file should be in this format: <full_name_<id.cpp. • Example: gokhan_kaya_000000.cpp. Please do not use any Turkish special characters. • You don’t need to use an IDE for this assignment. Your code will be compiled and run in a command window. • Your code will be compiled and tested on a Linux machine(Ubuntu). GCC will be used • Make sure you don’t get compile errors when you issue this command : g++ <full_name_<id.cpp. • A script will be used in order to check the correctness of your results. So, be careful not to violate the expected output format. • Provide comments unless you are not interested in partial credit. (If I cannot easily understand your design, you may loose points.) • You may not get full credit if your implementation contradicts with the statements in this document.

More products