Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help answer and provide codes. Thank you. (Ps. do not copy and paste answers from anywhere else onto this. Ty) Objectives: - apply structured

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 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 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: Enter student ID, or cr to end:12345678 Enter first name: John Bnter last name: Smith Bnter address: 12316th Street, St Cloud, MN 56377 Enter the date of first enrollment: Bnter day, or cr to end: 23 Enter month:8 Bnter year: 2022 Enter 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 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 Enter student ID: 12345678 Enter number of credit hours: 3 Bnter course grade: 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 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 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

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago

Question

13-1 How does building new systems produce organizational change?

Answered: 1 week ago