Lab 3 – 2017

Slides: [ EST ] [ ENG ]

Homework (2p):

Write a program, which :

  • Contains current date (Day, Month, Year) as a variable (0.25p)
  • Asks user about the birthday (Day, Month, Year)
    • Store the numbers as a variables (0.25p)
  • Calculates User’s Age. (0.5p)
  • Checks for birthday:
    • If day and month match, print “Happy Birthday”
    • If date and month doesn’t match, calculate, how many days are left before birthday and print it. (1p)
      • Consider leap year as well.

Program should be uploaded to git under folder “lab3“.

2 thoughts on “Lab 3 – 2017

  1. Pingback: Lab 3 – iax058x

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.