Youth Calculator

Line: Input Line
Easy Difficulty Input Learning Outcome One Exercise
Type: Exercise
You should have completed: Retirement Planner This topic leads to:

Paint Problem

Console Menu

Summary

You should now have enough knowledge to write a program to do some calculations yourself.

Task

  1. Create a new console application
  2. Create a program that
    1. asks the user for their age in years
    2. asks the user for their name
    3. displays how much younger than Ian they are (43, last time I checked) in a neatly formatted and clear message
  3. Run the program and try it with a few different ages.
  4. What happens if you enter 65?
  5. Modify the program so it asks for the comparison age as well
  6. Modify the program so it calculates and displays the age difference in months (to the nearest year).