[Solved]Lab 112 Course Info Class Course Information Class 20 Points Design Details Design Course Q37045117
Please write a C++ program
Lab 11.2 Course Info Class Course information as a class (20 points) Design Details: Design a Course class. A Course is a representation of a Rowan University course. Your Course class must have two data attributes 1. id (string): 5 digits1 char for semester. You can assume 3 semesters: fall (), spring (s) and summer (u) that starts on september 1st, january 21 and june 10th, respectively. For example, 70302 o must consist of 6 characters o first 5 characters are digits o last character is either F, S, or U 2. dayofWeek: implement this as an enumerated data type Day o enumerators are defined by you. 3. department: implement this as an enumerated data type Department that contains 5-10 entries of your choice. o enumerators are defined by you. 4. timeOfMeeting: implement this as an enumerated data type TIME o enumerators are defined by you. CANCELLED . if number of enrolled students is less than 20% of maximum enrollment 5. credits: number of credits the course is worth o number of credits must be more than O but less than or equal to 15 6. maxEnroll: maximum number of slots available for the course. o max enrollment must be in the range of 15 and 120 students 7. numEnroll: current number of enrolled students. o current number of enrolled students must be between 0 and maxEnroll 8. instructor: implement this as a structured data type called Name with a two string member named first and last. o instructor’s first and last names may not be the empty string 9. status: implement this as an enumerated data type Status, with the following enumerators. . Note: status is a very special attribute that cannot be set or modified by the user. This attribute depends on the number of students currently enrolled. Therefore, each time the number of student in the class changes you need to check to see if the status needs to be changed as well. ·OPEN- if number of enrolled student is less than maximum number of enrollments but more than 20% of maximum enrollment CANCELLED ” if number of enrolled students is less than 20% of maximum enrollment CLOSED-if number of students is equal to the maximum enrollment The operations that you need to perform on the Course are: a. Default constructor: sets all attributes to default values. o it is a good idea to have such values as NO-DAY, NO-TIME, NO-DEPT, and UNKNOWN for the enumerated data types for the enumerated data Day, Time, Department and Status. o any other attributes your at liberty to choose their default value. b. Class constructor: takes the following parameters and sets the rest to the default values previously mentioned o course id o number of credits o maximum course enrollment C. Class constructor: o takes parameters for all the data members of the class (except status)aximum course enrollment o None of the data member of the class are set to the defaults. d. display: prints all of the course information in the order you choose e. For each data attribute except for status write a input function which retrieves the corresponding value from user input responses (I/O) f. For each data attribute except for status write a set function which sets the corresponding value based on argument passing g. For each data attribute write a get function which returns the corresponding value. h. You may want to implement supporting functions for input and displaying the values of each enumerated data type. Show transcribed image text Lab 11.2 Course Info Class Course information as a class (20 points) Design Details: Design a Course class. A Course is a representation of a Rowan University course. Your Course class must have two data attributes 1. id (string): 5 digits1 char for semester. You can assume 3 semesters: fall (), spring (s) and summer (u) that starts on september 1st, january 21 and june 10th, respectively. For example, 70302 o must consist of 6 characters o first 5 characters are digits o last character is either F, S, or U 2. dayofWeek: implement this as an enumerated data type Day o enumerators are defined by you. 3. department: implement this as an enumerated data type Department that contains 5-10 entries of your choice. o enumerators are defined by you. 4. timeOfMeeting: implement this as an enumerated data type TIME o enumerators are defined by you. CANCELLED . if number of enrolled students is less than 20% of maximum enrollment 5. credits: number of credits the course is worth o number of credits must be more than O but less than or equal to 15 6. maxEnroll: maximum number of slots available for the course. o max enrollment must be in the range of 15 and 120 students 7. numEnroll: current number of enrolled students. o current number of enrolled students must be between 0 and maxEnroll 8. instructor: implement this as a structured data type called Name with a two string member named first and last. o instructor’s first and last names may not be the empty string 9. status: implement this as an enumerated data type Status, with the following enumerators. . Note: status is a very special attribute that cannot be set or modified by the user. This attribute depends on the number of students currently enrolled. Therefore, each time the number of student in the class changes you need to check to see if the status needs to be changed as well. ·OPEN- if number of enrolled student is less than maximum number of enrollments but more than 20% of maximum enrollment CANCELLED ” if number of enrolled students is less than 20% of maximum enrollment CLOSED-if number of students is equal to the maximum enrollment The operations that you need to perform on the Course are: a. Default constructor: sets all attributes to default values. o it is a good idea to have such values as NO-DAY, NO-TIME, NO-DEPT, and UNKNOWN for the enumerated data types for the enumerated data Day, Time, Department and Status. o any other attributes your at liberty to choose their default value. b. Class constructor: takes the following parameters and sets the rest to the default values previously mentioned o course id o number of credits o maximum course enrollment C. Class constructor: o takes parameters for all the data members of the class (except status)aximum course enrollment o None of the data member of the class are set to the defaults. d. display: prints all of the course information in the order you choose e. For each data attribute except for status write a input function which retrieves the corresponding value from user input responses (I/O) f. For each data attribute except for status write a set function which sets the corresponding value based on argument passing g. For each data attribute write a get function which returns the corresponding value. h. You may want to implement supporting functions for input and displaying the values of each enumerated data type.
Expert Answer
Answer to Lab 11.2 Course Info Class Course information as a class (20 points) Design Details: Design a Course class. A Course is … . . .
OR

