This is a normal expression of the time form:
It is said to be in the normal form if Days > 0, 0 < Hours
< 24, 0 < Minutes < 60, and 0 < Seconds < 60.
The following expression is not in the normal expression of time
form:
Create a java program with four (4) non negative integers as
input representing the days, hours, minutes, seconds (separated by
spaces), and format it in the normal form.
Input
The first line is the number of test cases (1 <= T <= 10).
Followed by 4 non negative integers separated by spaces in Days,
Hours, Minutes, Seconds format.
Output
The normal form expression of time.
Sample Input
2
4 49 0 33
1 0 67 120
Sample Output
6 Days, 1 Hours, 33 Seconds
1 Days, 1 Hours, 9 Minutes
This is a normal expression of the time form: It is said to be in the normal form if Days > 0, 0 < Hours < 24, 0 < Minut
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am