Use a client code to test the course ADT: 1. Declare 2 course instances courseOne, and course Two ("CS 115", 01, 3, "Monday, Wednesday", "04:30 - 05:20", "CL", 126, 8, "Dr. X"). 8 is the maximum course enrolment. 2. Set the values of courseOne to ("CS 210", 02, 3, "Tuesday, Thursday", "10:30 - 11:20", "CL", 128, "Dr. Y"). The maximum course enrollment, which is 5, remains unchanged. 3. Display the values of courseOne and courseTwo. Also, use displayStudent List function to display IDs of students in each course. 4. Write a non-member function named course Compare that compares two course instances to check if any of the corresponding fields (excluding students Id) are the same and displays the result of the comparisons. For example, it could print "different course id number", ... "same number of credits", and so on. 5. Prompt user to enter a unique student id and then enroll it in courseOne 6. Use a loop to repeat step 5, 4 more times. 7. Prompt user to enter a unique student id and then enroll it in course Two 8. Use a loop to repeat step 7, 7 more times. 9. Use displayStudent List function to display IDs of students in each course. 10. Display the course status of both instances. 11. Prompt user to enter another unique student id and then try to enroll it in courseOne. If not possible, an error must be displayed indicating the course status. 12. Prompt user to enter another unique student id and then try to enroll it in courseTwo. If not possible, an error must be displayed indicating the course status.
Use a client code to test the course ADT: 1. Declare 2 course instances courseOne, and course Two ("CS 115", 01, 3, "Monday, Wednesday", "04:30 - 05:20", "CL", 126, 8, "Dr. X"). 8 is the maximum course enrolment. 2. Set the values of courseOne to ("CS 210", 02, 3, "Tuesday, Thursday", "10:30 - 11:20", "CL", 128, "Dr. Y"). The maximum course enrollment, which is 5, remains unchanged. 3. Display the values of courseOne and courseTwo. Also, use displayStudent List function to display IDs of students in each course. 4. Write a non-member function named course Compare that compares two course instances to check if any of the corresponding fields (excluding students Id) are the same and displays the result of the comparisons. For example, it could print "different course id number", ... "same number of credits", and so on. 5. Prompt user to enter a unique student id and then enroll it in courseOne 6. Use a loop to repeat step 5, 4 more times. 7. Prompt user to enter a unique student id and then enroll it in course Two 8. Use a loop to repeat step 7, 7 more times. 9. Use displayStudent List function to display IDs of students in each course. 10. Display the course status of both instances. 11. Prompt user to enter another unique student id and then try to enroll it in courseOne. If not possible, an error must be displayed indicating the course status. 12. Prompt user to enter another unique student id and then try to enroll it in courseTwo. If not possible, an error must be displayed indicating the course status.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
(In C++) and please try using Occam’s razor law.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education