Java Read value Represent a Time Duration in Hour, Minute, and Second

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) {

	}
}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.