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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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