Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language is in C Problem 3: Student Management System In this problem you have to implement a system that keeps track of students, courses and

Language is in C

image text in transcribed

image text in transcribed

Problem 3: Student Management System In this problem you have to implement a system that keeps track of students, courses and enrollments. Your system should be able to have enrollment and unenrollment capability and it should be able to answer the queries described below What it means? Enroll the student in that course. If already enrolled do nothing Syntax enroll student firstname student lastname course_name unenroll student firstname student lastnameDrop that course for that student. If not enrolled course_name grade student firstname student lastname course_name grade ave course_name do nothing Grade that student for that course! If not enrolled already do nothing Ave grade of the class (ignore ungraded). If no one is graded, print 0 Compute the gpa of the student (assume every course has same number of credits). If not graded gpa student firstname student lastname rint 0 Total number of enrollments in the given class Find the top student of the class. If no one is graded, return the first student that was enrolled If more than one student are top students (same maximum grade), print them separated by commas Name of the students who take two or more classes together with the given student. Print first name and last names (with a space between them) separated by a comma List courses (one in a line) that the student is enrolled in. Separate each with a comma and a space (e.g. john smith, jane smith) Print all the first names that share the same givern last name (comma separated) count course_name topstudent course_name findmutual student firstname student_lastname listcourses student name findfirstnames student_lastname First, the number of students (N) and courses (M) is given in the first line (space separated). Then the name of the students is given in the next N following lines. First name and last name is given separated by space in each line. Then the name of the courses follows in M lines (a course name may contain spaces so the whole line will be the course's name) Then comes a series of queries with the syntax defined above. For each query, print the result in a newline (except enroll, unenroll and grade). Queries can be either upper or lower case. One way of handling this, is to change everything to lowercase first and have selection statements on lowercase string literals. In all cases, if there are multiple results (course or student names), print them separated by comma-space (e.g john doe, jane doe, john smith). Everything should be printed in lower case Problem 3: Student Management System In this problem you have to implement a system that keeps track of students, courses and enrollments. Your system should be able to have enrollment and unenrollment capability and it should be able to answer the queries described below What it means? Enroll the student in that course. If already enrolled do nothing Syntax enroll student firstname student lastname course_name unenroll student firstname student lastnameDrop that course for that student. If not enrolled course_name grade student firstname student lastname course_name grade ave course_name do nothing Grade that student for that course! If not enrolled already do nothing Ave grade of the class (ignore ungraded). If no one is graded, print 0 Compute the gpa of the student (assume every course has same number of credits). If not graded gpa student firstname student lastname rint 0 Total number of enrollments in the given class Find the top student of the class. If no one is graded, return the first student that was enrolled If more than one student are top students (same maximum grade), print them separated by commas Name of the students who take two or more classes together with the given student. Print first name and last names (with a space between them) separated by a comma List courses (one in a line) that the student is enrolled in. Separate each with a comma and a space (e.g. john smith, jane smith) Print all the first names that share the same givern last name (comma separated) count course_name topstudent course_name findmutual student firstname student_lastname listcourses student name findfirstnames student_lastname First, the number of students (N) and courses (M) is given in the first line (space separated). Then the name of the students is given in the next N following lines. First name and last name is given separated by space in each line. Then the name of the courses follows in M lines (a course name may contain spaces so the whole line will be the course's name) Then comes a series of queries with the syntax defined above. For each query, print the result in a newline (except enroll, unenroll and grade). Queries can be either upper or lower case. One way of handling this, is to change everything to lowercase first and have selection statements on lowercase string literals. In all cases, if there are multiple results (course or student names), print them separated by comma-space (e.g john doe, jane doe, john smith). Everything should be printed in lower case

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

Step: 3

blur-text-image

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago