Anybody! please helpme or give me some hint about the following program. Write a
ID: 3608394 • Letter: A
Question
Anybody! please helpme or give me some hint about the following program.
Write a program which willask the user to enter time in seconds (integer input) and printthe
text (“Assignment is very easy”).
A): Print this statement till the time (seconds) entered byuser.
(Hint: This time will be real time. Above statement will getprinted till entered time)
B): Along with each print statement also print the “remainingtime”.
C): After printing above two (Statement and remaining time). Itshould prompt for any key to be
pressed while the time behind will kept running.
Output:
Please enter time in second: 11 (For example)
Assignment is very easy the remaining time is 11 Press any key
Assignment is very easy the remaining time is 7 Press any key
Assignment is very easy the remaining time is 6 Press any key
Assignment is very easy the remaining time is 4 Press any key
Assignment is very easy the remaining time is 3 Press any key
Assignment is very easy the remaining time is 0 Press anykey
waiting anxiously.
It is urgent.
Thanks
Explanation / Answer
please rate - thanks #include #include using namespace std; int main() {int seconds,counter,done; coutcounter; seconds=time(NULL); done=seconds+counter; //coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.