TORONTO KIDS COMPUTER CLUB | Aurora Saturday 14:30 Python Homework 20.03.21.(2)
17257
post-template-default,single,single-post,postid-17257,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Aurora Saturday 14:30 Python Homework 20.03.21.(2)

27 Mar Aurora Saturday 14:30 Python Homework 20.03.21.(2)

Question:
Create a Time class and initialize it with hours and minutes.

  • Make a method addTime which should take two time object and add them. For example: (2 hour and 50 min) + (1 hr and 20 min) is (4 hr and 10 min)
  • Make a method displayTime which should print the time.
  • Make a method DisplayMinute which should display the total minutes in the Time. For example: (1 hr 2 min) should display 62 minute.

No Comments

Sorry, the comment form is closed at this time.