Create a program that allow the user enter number of seconds then convert to hours, minutes and seconds.

1.      Create a program that will allow the user to input a number in seconds. The program will then display the total number of hours, minutes, and seconds from the input. – 80 points

Example:  Input is 80. The output should be, 0 Hour/s, 1 Minute/s, 20 second/s.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

As this is clearly homework, else why would it be worth 80 points, you have to make a first attempt at the program and ask questions about where you're getting stuck.
William FulksSystems Analyst & WebmasterCommented:
This should help - [competing site linke removed as per EE policy]
William FulksSystems Analyst & WebmasterCommented:
Oops! Sorry about that. Totally forgot about that rule.
William FulksSystems Analyst & WebmasterCommented:
See if this helps - it will give you the basic structure of calculating the numbers. Basically, you're just taking the input (seconds) and dividing by 60 for minutes, and dividing by 3600 for hours, then use the % command to give you the remainder.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.