Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
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
Do you believe officer involved shootings should be reviewed by the same attorneys who they work alongside
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 with the French?
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 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 or do you think the US will see its position as a world leader reduced because of these changes?
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?
Writer editing essays for errors in punctuation would look for
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? Why not? Has science truly disproved religious belief as Dawkins contends? If so, how?
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
What tenets of realism are evident in Zitkala-Sa's "The School Days of an Indian Girl"? How does Zitkala-Sa's realistic representation
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!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd