top of page

Week 2: Taking control

  • Writer: leprik9
    leprik9
  • Nov 18, 2015
  • 1 min read

This week is more focused on the if-else statements. The first task was to get user input for minutes and hours and print them into 12 hour clock notation, and then extend the task to print the minutes as the approximate time correct to the nearest 15 minutes. Also to catch errors as if user add hours less than 0 and more than 24 and the same check for the minutes.

Next task was to convert two charts two if and elif statements. Below you will see the charts and both of the solutions

Solution to (a) chart:

Solution to (b) chart:

 
 
 

Comments


Featured Posts
Recent Posts
Archive
Search By Tags
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square

Email:
kabadzhg@uni.coventry.ac.uk

bottom of page