Page 1 of 1

PLEASE ANSWER ASAP !!! 1) Write a C++ program to determine tomorrow's date (next day's) if today's date is an input pro

Posted: Mon May 02, 2022 12:17 pm
by answerhappygod
PLEASE ANSWER ASAP !!!
1) Write a C++ program to determine
tomorrow's date (next day's) if today's date is an input
provided by the user. Your program should be able to accept any
date as input ( dd mm yyyy) and provide next day's date as an
output. You need to define Date class with the required
data members (day, month, year), Constructor(s) and other
member functions.
input: 27 04 2022
output: 28 04 2022
PLEASE USE:
int main()
{
Date today, tomorrow;
today.getDate();
tomorrow.findTomorrowDate(today);
tomorrow.showDate();
return 0;
}
2) Then write a C++ program to find the next
time if the time now is given (in 24 hours format). program should
be able to accept any time as input ( hh mm ss) and provide next
time as an output. You need to define time class with
the required data members (hour, minute, second ),
Constructor(s) and other member functions.
input: 23 59 59
output: 00 00 00