Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I already have part A if needed let me know ! This homework assignment gives you the opportunity to practice structures, classes, member variables, member

I already have part A if needed let me know ! image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
This homework assignment gives you the opportunity to practice structures, classes, member variables, member functions, static member variables and static member functions and object composition. It builds upon Hw4-2. There are two parts in this assignment: part A and part B. If you implement part A only, you can earn up to 100 points out of 100. If you implement part A and part B, you can earn up to 120 points out of 100. Make sure you have part Aworking before you attempt part B. You need part A for part B to work. HW4-3 Part A Your program should implement the following: 1. Date class Implement a Date class that has the following private member variables: month of type int day of type int year of type int and the following public member functions: set (month day year mutator that sets the variables month, day and year to the parameter values overloaded relational operator. (dl d2) is true if and only if date d2 comes after date dl chronologically. For example, (3/8/2017) (3/9/2017). overloaded relational operator. (dl d2) is true if and only if date d2 is equal to dl overloaded relational operator. (d1 d2) is true if and only if (dl d2) is true, or (dl d2) is true print 0:Prints the date in the format month/day/year. For example, 3/9/2017. Do not write a constructor, 2. Driver for the Date class (in main function) For consistency in the submissions to make the grading task more efficient, copy and paste this code into your program: const int NUM DATES 4; string date Array NUM DATES) 02/12/2017 02/12/2018 02/13/2017 "03/12/2017" Driver for the Date class This homework assignment gives you the opportunity to practice structures, classes, member variables, member functions, static member variables and static member functions and object composition. It builds upon Hw4-2. There are two parts in this assignment: part A and part B. If you implement part A only, you can earn up to 100 points out of 100. If you implement part A and part B, you can earn up to 120 points out of 100. Make sure you have part Aworking before you attempt part B. You need part A for part B to work. HW4-3 Part A Your program should implement the following: 1. Date class Implement a Date class that has the following private member variables: month of type int day of type int year of type int and the following public member functions: set (month day year mutator that sets the variables month, day and year to the parameter values overloaded relational operator. (dl d2) is true if and only if date d2 comes after date dl chronologically. For example, (3/8/2017) (3/9/2017). overloaded relational operator. (dl d2) is true if and only if date d2 is equal to dl overloaded relational operator. (d1 d2) is true if and only if (dl d2) is true, or (dl d2) is true print 0:Prints the date in the format month/day/year. For example, 3/9/2017. Do not write a constructor, 2. Driver for the Date class (in main function) For consistency in the submissions to make the grading task more efficient, copy and paste this code into your program: const int NUM DATES 4; string date Array NUM DATES) 02/12/2017 02/12/2018 02/13/2017 "03/12/2017" Driver for the Date class

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 Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

Students also viewed these Databases questions