Question: im not sure what im doing wrong but my output doesnt match the example given please help. Write a C++ program, which prompts the user

im not sure what im doing wrong but my output doesnt match the example given please help.  im not sure what im doing wrong but my output doesnt
match the example given please help. Write a C++ program, which prompts

Write a C++ program, which prompts the user to enter a time in seconds and converts that value to days, hours minutes and seconds. It should then print an appropriate message to the user. Here is a sample run: Enter your time in seconds: 3691 3691 seconds is o day(s) 1 hour(s) 1 minute(s) 31 seconds) Enter your time in seconds: 720000 720000 Seconds is 8days 8 hours 0 minute(s) 0 second(s) 8 #include 9 using namespace std; 10 11 int main() { 12 const int min = 60; 13 const int hour = 3600; 14 const int day = 86400; 15 int seconds = 0; 16 int time = @; 17 18 time = time % day; 19 time = time % hour; 20 time = time % min; 21 22 cout > time; 24 cout

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!