Exercise 1:
Write a program using Python that:
• asks the user to enter their year of birth
• asks the user to enter a year in the future
• calculates the age the user will be in the second year entered
• outputs this age in an appropriate message
Exercise 2:
Write a program using Python that:
• takes a distance as input in miles (allow a decimal input)
• converts the distance to kilometres (include decimal places)
(kilo = miles x 1.609344)
• outputs the calculated distance in an appropriate message
Exercise 3:
Write a program using Python that:
• asks the user to enter width of rectangle
• asks the user to enter height of rectangle
• calculates the perimeter and area of rectangle
• outputs in an appropriate message
Exercise 4:
Write a program using Python that:
• asks the user to enter the price of item
• asks the user to enter the quantity of that item
• calculates the total cost of item
• outputs this total cost in an appropriate message
Exercise 5:
Write a program using Python that:
• asks the user to enter their weight in kilograms
• asks the user to enter their height in meters
• calculates the Body Mass Index (BMI) using the formula:
BMI = weight / (height * height)
• outputs this BMI value in an appropriate message