Click here to Skip to main content
15,923,845 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Design an application using methods that convert an integer number of seconds into an equivalent number of hours, minutes, and seconds. Use methods for entering the initial seconds, performing the computa- tions, and displaying the results. You should have separate methods for each computation. Results should be formatted and printed in a tabular display with the values number aligned.


What I have tried:

not sure how to start it pls help
Posted
Updated 1-Jul-20 16:46pm
Comments
Patrice T 1-Jul-20 19:42pm    
Have a talk with your teacher.
t778987 1-Jul-20 19:49pm    
sure thanks.

1 solution

Have a look here for how to get started C# Class[^]

Your question has 'hints'
Quote:
Use methods for entering the initial seconds, performing the computa- tions, and displaying the results. You should have separate methods for each computation.


So you could have method(s) to getTotalSeconds, performCalculation, getHours, getMinutes, getSeconds, displayHMSToConsole etc
 
Share this answer
 
Comments
CPallini 2-Jul-20 7:21am    
5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900