Complete the following program that finds which of the time points comes first. The time is expressed as "hh:mm" where hh is the hour (00-23) and mm is the minutes (00-60). timel = "01:00" time2 = "00:55" hh1, mm1 timel.split (":") hh2, mm2 = time2.split (":") if print ("time2 comes first") elif : if mm1 > mm2: elif mml == mm2: print ("both times are the same") else: else: print ("timel comes first") print("time1 comes first") mm1 > mm2 hh1 > hh2 hh1 < hh2 hh1 == hh2 print("time2 comes first")

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 13E
icon
Related questions
Question
Time left 1:12:57
Question
Complete the following program that finds which of the time points comes first. The time is expressed as "hh:mm" where hh is the
9.
hour (00-23) and mm is the minutes (00-60).
Not yet
answered
timel
"01:00"
Marked out of
4.00
time2
"00:55"
P Flag
hh1, mm1
timel.split(":")
question
hh2, mm2 =
time2.split(":")
if
:
print ("time2 comes first")
elif
:
if mm1 > mm2:
elif mm1
mm2:
==
print ("both times are the same")
else:
else:
print ("timel comes first")
print("time1 comes first")
mm1 > mm2
hh1 > hh2
hh1 < hh2
hh1 == hh2
print("time2 comes first")
Transcribed Image Text:Time left 1:12:57 Question Complete the following program that finds which of the time points comes first. The time is expressed as "hh:mm" where hh is the 9. hour (00-23) and mm is the minutes (00-60). Not yet answered timel "01:00" Marked out of 4.00 time2 "00:55" P Flag hh1, mm1 timel.split(":") question hh2, mm2 = time2.split(":") if : print ("time2 comes first") elif : if mm1 > mm2: elif mm1 mm2: == print ("both times are the same") else: else: print ("timel comes first") print("time1 comes first") mm1 > mm2 hh1 > hh2 hh1 < hh2 hh1 == hh2 print("time2 comes first")
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning