Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help answer and provide codes in language C or C++. PLEASE make sure the code is correct and can compile correctly with results in

Please help answer and provide codes in language C or C++. PLEASE make sure the code is correct and can compile correctly with results in any programs used. Please also do all Requirements listed. Thank you. (Ps. do not copy and paste answers from anywhere else onto this. Ty)

image text in transcribed

image text in transcribed

image text in transcribed

Objectives: - apply structured principles and good practices to the task of developing software systems. - communicate both technical and non-technical aspects of their work in formal and informal situations. Problem Description: - Design a class Date. Each object represents information about a date. The class should contain the following data members and methods: Data members: - Day - Month - Year Methods - Constructors to initialize data members. Use default arguments so that users can omit some fields. - Methods to get/set all data members - Assignment operator (overload operator ) - Comparison operators (overload operator ) - Input and output operators to read date field values from an input stream and to write the fields of an object to an output stream, nicely formatted. You may want to prompt a user to enter the field values as follows: Enter day, or cr to end: 23 Enter month: 8 Enter Year: 2022 The output of this date object may look like this: 8/23/2022 - Design a class Student. Each object represents information about a single student. The class should contain the following data members and methods: Data members: - Identifier - First name, last name - Address - Date of first enrollment - Use Date class defined in item 1. - Number of credit hours completed - Constructors to initialize data members. Use default arguments so that users can omit some fields. - Methods to get/set all data members - Assignment operator (overload operator ) - A method to increment the number of credit hours - Input and output operators to read student fields values from an input stream and to write the fields of an object to an output stream, nicely formatted. You may want to prompt a user to enter the field values as follows: Bnter student ID, or cr to end:12345678 Bnter first name: John Enter last name: Smith Bnter address: 12316ch Street, St Cloud, M 56377 Bnter the date of first enrollment: Enter day, or or to end: 23 Brter month:8 Bnter year:2022 Bnter the number of credit hours completed: 88 The output of this student object may look like this: 12345678 John Smith 12316th Street, St Cloud, MN 56377 8/23/2022 88 Design a class CourseRegistration. Each object represents the enrollment of a student in a course. Data members: - Course identifier - Student identifier - Number of credit hours - Course grade Methods - Constructors to initialize data members. Use default arguments so that users can omit some fields. - Methods to getiset all data members - Input and output operators to read CourseRegistration fields values from an input stream and to write the fields of an object to an output stream, nicely formatted. You may want to prompta user to enter the field values as follows Bnter course ID, or cr to end: 33164 Bnter student ID: I2345678 Bnter number of credit hours: 3 Bnter course grade: A The output of this courseRegistration object may look like this: 33164 12345678 3 A. Requirements - Define each class in a header file (className.h) and implement the member functions in an implementation file (className.cpp), and compile it separately from a client program (test driver). - Write a test driver for each class to demonstrate the correctness of all member functions and operators. Specifically, - In the test driver for the class Student, read a group of student data from the keyboard and output the data in a file - In the test driver for the class CourseRegistration, read course registration information for a group of students from the keyboard and output the data in a flle. - Use the Doxygen literate programming system to create a PDF document for all your programs. Your PDF document must include: - all reasonably applicable tags - generated UML diagrams - class diagrams - links to the source_code for each file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions