First off I posted my code here http://www.sourcepod.com/kxddow34-12176. This si
ID: 3659036 • Letter: F
Question
First off I posted my code here http://www.sourcepod.com/kxddow34-12176. This site does not space correctly so it looks like one giant mess. This program is supposed to allow a user to enter Military Hours and that will be converted to standard time. For example 1500 hours, is equivalent to 3:00 pm standard time. The problem is when the user inputs the hours,minutes, and seconds, it doesn't come out correctly in standard time. If I enter 1500 hours, 23 minutes, and 45 seconds the program outputs 1523 and no seconds and 3 alone in standard time, which is correct hour wise but the minutes and seconds do not display at all. How do I fix this?Explanation / Answer
Sorry you didn't keep an if loop for minutes. You had an if loop for hour and seconds but not for minutes..... please have a look at it :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.