Question: Problem # 1 ( 5 marks ) Write an application that reads values representing a time in seconds and then prints the equivalent time in
Problem # marks
Write an application that reads values representing a time in seconds and then prints the equivalent time in hours, minutes, and seconds. For example, seconds is equivalent to hour, minutes, and seconds.
Write a header file comment here. It should look like:
Title: CMPT Assignment # Problem #
File: TimeConversion java
Description: To convert seconds to hours, minutes, and seconds
@author your name
@version optional
Student ID: your student number
Date: January
import java.util. Scanner,
public class TimeConversion
I Write your comment for the main method.
public static void mainString args
int inputSecond, hour, minute, second;
Scanner scan new ScannerSystem in;
System out.printHow many seconds? ;
inputSecond scan nextIntO;
Write your code here.
System out.printlninputSecond seconds is equivalent to hour hours minute "minutes and second seconds is ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
