Read in a time such as 3 pm and print the equivalent military hour. Validate the input.
a) Read the time and print it without converting to military time.
b) Read the time, convert it to military time, and print the result.
c) Validate the input to ensure it is in the correct time format.
d) Both b and c.