Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

The three following must be done with reasonable applicable tags, generated uml diagrams, class diagrams and links to the source_code for each file. 1.) Design

The three following must be done with reasonable applicable tags, generated uml diagrams, class diagrams and links to the source_code for each file.

1.) Design a class Date in C or C++

2.) Design a class Student in C or C++

3.) Design a class CourseRegistration in C or C++

All documents of Date.h, Date.cpp, DateDriver.cpp, Student.h, Student.cpp, StduentDriver.cpp, and CourseRegistration.h, CourseRegistration.cpp, CourseRegistrationDriver.cpp.

Please help answer and provide codes. 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 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 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 ) - 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:12345 678 Bnter first name: John Bnter last name: smith Bnter address: 12316th Street, St Cloud, M 56377 Bnter the date of first enrollment: Enter day, or cr to end: 23 Bnter 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 get/set all data members - Input and output operators to read CourseRegistration frelds 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 course ID, or cr to end: 33164 Bnter student ID: 12345678 Bnter number of credit hours: 3 Bnter course grade: A. The output of this courseRegistration object may look like this: 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 finctions 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 file. - 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 with AI-Powered 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