Question: How can I modify the program below with this prompt asking How many minutes from now do you expect to be home?, and output a

How can I modify the program below with this prompt asking "How many minutes from now do you expect to be home?", and output a sentence saying "You will get home at HH:MM". ??

It's very URGENT!! Thank you

How can I modify the program below with this prompt asking "HowHow can I modify the program below with this prompt asking "How many minutes from now do you expect to be home?", and output a sentence saying "You will get home at HH:MM". ?? It's very URGENT!! Thank you

#include #include using namespace std; int mainO f time_t t; struct tm now t = time ( 0 ); now - localtime (&t) int hour now->tm hour; II retrieve current hour int min = now->tm-min; // retrieve current min // get current time // adjust for local timezone

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!