Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Please look at the code I have done already in order to understand what I want to have my code like. Make changes to

1. Please look at the code I have done already in order to understand what I want to have my code like. Make changes to the code if u want but ONLY IN SIMPLE PYTHON I did not learn CLASS so dictionaries is good

2. my assignment is attached this is what is required and my code is not done it is missing other sections but please add to it and look at how I want it.

3. also please with the functions u make show how u would call the function. -

assignemnt:

Objective: To design and construct simple software in Python programming language that implements the student registration process at universities. The program must be able to store and manage a list of each student courses through all the academic years. In addition, the program must be able to perform various functions related to student registration as detailed below.

System Functional Requirements:

1. Add student(s) with the associated list of courses for fall semester, spring semester, and summer semester.

Should store this for each academic year for the student(s).

2. Register a new course for the student.

Check pre-requisites courses before registration for a new course.

3. Remove a student from the system.

4. Display how many courses are left until graduation for a student.

5. Display the repeated courses for all years for a student.

Instructions and Required Validations:

1. The program should have a file that contains a list of all courses for all years. The file should be in text format and should be loaded into the program when it starts.

Hint: use any appropriate format, from your choice, for the data structure within the text file.

2. The software should have a menu-driven interface that allows the user to perform various functions related to student registration.

3. When a student is added, the program should validate the student's information and check whether the student is already registered or not. If the student is already registered, the program should display an appropriate error message.

4. When a student is removed, the program should validate the student's information and check whether the student is already registered or not. If the student is not registered, the program should display an appropriate error message.

5. The pre-requisites courses should be checked before registration for a new course. The program should check whether the student has completed the pre-requisites courses or not. If the student has not completed the pre-requisites courses, the program should display an appropriate error message.

Hint: the pre-requisites courses should be loaded from a text file.

6. You program should be modularized by encapsulating the

code I wrote:

def add(studentID,AcademicYear,course_list): while True: o1='1. Computer Science' o2='2. Business Management' o3='3. Interior Design' o4='4. Pscyhology' print(o1,' ',o2,' ',o3,' ',o4) options=int(input("Enter Student Major (1-4): ")) if options>4: print("Invalid Major") again= input("Would you like to try again? Y/N") if again.upper()=='Y': True else: break else: studentID = int(input('Enter the student ID: ')) #str() converts int to a string if studentID in studentRecord: return "Error: student "+str(studentID)+"is already registered" else: course_list = {'FallCourse': set(), 'Spring_Course': set(), 'Summer_Course': set()} #Fall num=int(input("Enter the amount of courses you would like to add for fall: ")) fall=[] for i in range(num): fallCourse=input("Enter the course ID for Fall: ") while True: try: fall_course = input('Please enter a fall course: ') if fall_course in course_dictionary: fall_courses.add(course_dictionary[fall_course]) fall.append(fallCourse) break except KeyError: return 'Course not found'

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions