Download Solution: Click to Download Solution
Solution File Name: ReadRepresentTimeDuration.docx
Unzip Password: prestobear.com
1.MainProgram.java
import java.util.Scanner;
public class MainProgram {
/*
* PP 2.8 – Write a program that requests and reads values
* representing a time duration in hours, minutes, and seconds
* and then prints the equivalent total number of seconds.
* (For example, 1 hour, 28 minutes, and 42 seconds is equivalent to 5322 seconds.)
*/
public static void main(String[] args) {
}
}