How do I rewrite the following statement a two statements without usingcompund or increment operators
count += k++
How do I solve these programs for C++
An integer contant dayofWeek1 has a value between 0 and 6 and represnts the day of the week for Janurary 1st (0 = Sunday, 1 = Monday, etc.). A variable day has a value between 1 and 31 an represents a day in Januray. How do I write and expression that calculates the day of the week for any given value of day. For example, if dayofWeek1 = 0 (Janurary 1st is a Sunday) and day = 13 (Janurary 13t), then dayofWeek, the day of week for Janurary13th, should get a value of 5(Friday).
int dayofWeek = ________________________
Another program I am clueless on:
curHour and curMi representthe current time and depHour, depMin represent the departure time of the bus; both are between 1 and 11 p.m. How do I solve it if I already have the following statements. This has to display the remaining wastin time in hours and minute:
int____________=
______________________________________
______________________________________
cout <<_________________<< " hours and "
<<_________________<< " minutes.\n";
