Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment Deliverables - You will make a CCourse class, CStudent class, and a CRegistrar class. - Create dynamic arrays of CStudent and CCourse objects. -
Assignment Deliverables - You will make a CCourse class, CStudent class, and a CRegistrar class. - Create dynamic arrays of CStudent and CCourse objects. - You will then test your new classes by creating a course, giving students a reference to the course they are taking and having the registrar store all information about students and courses in the university (using dynamic arrays) - A1 should help as starter code. - Your code should test your connections by calling functions like printRegistrarInfo. Grading The assignment is essentially broken into two parts: code quality and code functionality. 50% Code functionality is indicated by compiling code (20%), correct code outputs (20%) and passing given tests of your code (10\%) 50% : Code quality is determined by examining each function written and evaluating code based on clarity, comments, and correctness (even if the code running gives the right answer the code could be wrong). Longer or more complicated functions will be worth more. Stage 1: Basic Classes You will make two classes (using a .h and .cpp file as shown in class) which have only private member variables and include getter and setter methods (aka mutator and accessor methods). You should also use the string class and cout statements when appropriate (since we are now doing C++ ). Task 1: CCourse (30 points) Make a class CCourse that has private member variables and public functions 1. The member variables are: - String name - Unsigned int maxEnrollment - Double average 2. Provide a blank (no parameter) constructor for the CCourse class. Notice that this should set all member variable to SAFE values like " "or 0 . 3. Write getter and setter functions for EACH member variable. Setter methods should always check to make sure new values are acceptable. For example, the average can't be
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started