Question: PROGRAMMING QUESTION (10 points) Write three classes: Date class with year, month, and day member variables Time class with hour, minute, and second member variables
PROGRAMMING QUESTION (10 points) Write three classes: Date class with year, month, and day member variables Time class with hour, minute, and second member variables Date Time class, which computes the number of seconds between two Date Time objects . a composite of the Date and Time classes, with a redefined operator Add constructors and get/set member functions to these classes, as needed. Write a main program that e creates two Date Time objects, using user input (not hard-coded) displays the number of seconds between them, using the redefinedoperator To simplify your solution Assume all months have 30 days and all years have 360 days Implement Time with a 24-hour clock (no AM and PA) Identify months by numer (1 to 12), not name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
