programming
posted by rj .
Prompt the user to enter a number of seconds. Return to the user the hours, minutes and seconds.Example:
Enter seconds: 1000
1000 seconds = 0 hour, 16 minutes, 40 seconds
Hint: use the modulus operator.
Respond to this Question
Similar Questions

math
If Steven can mix 20 drinks in 5 minutes, Sue can mix 20 drinks in 10 minutes, and Jack can mix 20 drinks in 15 minutes, how much time will it take all 3 of them working together to mix the 20 drinks? 
math
If Steven can mix 20 drinks in 5 minutes, Sue can mix 20 drinks in 10 minutes, and Jack can mix 20 drinks in 15 minutes, how much time will it take all 3 of them working together to mix the 20 drinks? 
precalc
Write a formula for converting a measure of degrees in degrees, minutes, and seconds to a decimal number of degrees. The formula should convert, for example, 39º 5’ 34” to 39.093º. The model includes the assumption that a full … 
precal
Write a formula for converting hours, starting with midnight as zero, to a decimal number of degrees. Assume that a full day equals 360º, 60 minutes equals one hour, and 60 seconds equals one minute. Use x, y, and z to represent hours, … 
let's try this again  precal
Write a formula for converting hours, starting with midnight as zero, to a decimal number of degrees. Assume that a full day equals 360º, 60 minutes equals one hour, and 60 seconds equals one minute. Use x, y, and z to represent hours, … 
Geomatics
After shooting the trailing edge of the Sun on 11 April 2008, the observed clockwise angle from the mark to the edge of the sun is 259 degrees 44 minutes 51 seconds, the latitude is 32 degrees 47 minutes 54 seconds North, the longitude … 
Math
1 mintue 25 seconds converted into seconds. I know there are 60 minutes in an hour and seconds 60 in a minute. Am I just dividing by 60? 
trigonometry
how to express radians to degrees, minutes, and seconds? 
java programming
1. Time Calculator Write a program that asks the user to enter a number of seconds. • There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number … 
Python Programming
Given a time in the 12 hour format with the suffix, either AM/PM, convert that into a 24 hour format. 12 hour format is hours:minutes:seconds followed by AM or PM, where the hours range is from 0 to 12, minutes range is from 0 to 59, …