Implement a system that keeps track of students and courses

Assignment Help Other Subject
Reference no: EM132268523

Assignment -

In this assignment you are to implement a system that keeps track of students, courses and enrollments. Your system should be able to have enrollment and un-enrollment capability and it should be able to answer the queries described below:

Syntax

What it means?

enroll student_firstname student_ lastname course_name

Enroll the student in that course. If already enrolled do nothing.

unenroll student_firstname student_ lastname course_name

Drop that course for that student If not enrolled do nothing.

grade student_firstname student_lastname course_name grade

Grade that student for that course! If not enrolled already do nothing.

ave course_name

Ave grade of the class (ignore ungraded). If no one is graded, print 0.

gpa student_firstname student_lastname

Compute the gpa of the student in their current courses (assume every course has same number of credits). If not graded print 0.

count course_name

Total number of enrollments in the given class.

topstudent course_name

Find the top student of the class. If no one is graded, print WA". If more than one student are top students (same maximum grade), print them separated by comma and space.

findmutual student_firstname student_lastname

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 (and space). If no one is found print "N/A".

listcourses student_fname student_lastname

List courses that the student is enrolled in. Separate each with a comma and a space (e.g. "programming in c, java fundamentals"). Print "N/A" if not enrolled in any.

findfirstnames students_lastname

Print all the students' first names that share the same last name (comma space separated). Print 'A" if no one matches the last name.

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 an 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) in a newline. Everything should be printed in lower case. All the floating point numbers must be printed to exactly two decimal places. Exit the program if command "quit" is given in input.

Attachment:- Assignment File.rar

Reference no: EM132268523

Questions Cloud

Discuss possibilities to advocate for the clients : For this assignment, you are expected to identify a sub-population within the field agency, then research and discuss with your field coordinator the state.
Create one scatter plot of the data : Create one scatter plot of the data, and apply an exponential model in Excel®. Include the equation, R2 value, and prediction value on the visual.
What is important to know and when is it important to know : What is important to know and when is it important to know it? To intervene in a problem, a social worker must first identify the problem.
Description of the known explanations or causes of the issue : A description of the known explanations or causes of the issue you selected in your Social Issues paper in Week 3 (Youth Gang Culture)
Implement a system that keeps track of students and courses : You are to implement a system that keeps track of students, courses and enrollments. Your system able to have enrollment and un-enrollment capability
What is cultural globalization : What are the main arguments of Samuel P. Huntington in the Clash of Civilizations? Please, discuss in the context of cultural globalization.
Prepare presentation on unesco workshop : Now, you will bring together the research you have completed during the duration of this course. Your final deliverable for this project with be a multimedia.
What did you learn about federal or state relations : What did you learn about federal/state relations from this article? Briefly EXPLAIN what the conflicts are.
Discrimination against immigrants : Analyze the situation in your country and what solutions we can apply to stop this phenomenon from social and political point of view.

Reviews

Write a Review

Other Subject Questions & Answers

  What ethical dilemmas might arise due to these relationships

Do you believe officer involved shootings should be reviewed by the same attorneys who they work alongside

  What the implications of the changing patterns of remarriage

In Note 1, Bumpass et. al. mentioned the problem of "truncation by interview". What is the problem here? What is the solution? What are the major subgroup variations in the remarriage rate? What are the implications of the changing patterns of remarr..

  Why were jacques offenbach''s operettas so popular

Why were Jacques Offenbach's operettas so popular with the French?

  Explain environment as modern societies of ancient societies

Do you believe ancient societies were as concerned about environment as modern societies are today? Do you believe they took care of environment better.

  Impact on knowledge and attitudes

Impact on competency - Impact on knowledge and attitudes and relationship to professional certification - Relationship to ANA Scope and Standards of Practice

  Do you believe the us stands to benefit

Do you believe the US stands to benefit or do you think the US will see its position as a world leader reduced because of these changes?

  The monarchs of the middle ages

Some historians have argued that the monarchs of the Middle Ages in Western Europe enjoyed more success than the church or past emperors. Do you agree or disagree?

  Editing essays for errors in punctuation

Writer editing essays for errors in punctuation would look for

  Compare group underwriting with individual underwriting

Compare group underwriting with individual underwriting of insurance. Be as specific as possible, discussing the key differences between the two approaches.

  Why is dawkin correct that religious belief is dangerous

Why is Dawkin correct that religious belief is dangerous? Why? Why not? Has science truly disproved religious belief as Dawkins contends? If so, how?

  Briefly describe what you find particularly interesting

Please do not attempt to summarize these readings and talk, but rather briefly describe what you find particularly interesting/surprising/confusing in these. Readings- Charting the Economic Life Cycle by Ronald Lee Sang-Hyop Lee and Andrew Mason

  Define what tenets of realism are evident in zitkala-sas

What tenets of realism are evident in Zitkala-Sa's "The School Days of an Indian Girl"? How does Zitkala-Sa's realistic representation

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd