Lab must be completed and reviewed
by Peer Instructor Seth Peery no later than Wed, Sept 26 during lab class.
You are to write a nicely documented
Ada program that will:
- ask the user to input their first
and last initials,
- ask the user to input their age,
- if they are over 40, the program
should output their initials (capitals-no matter what they entered!),
and the statement " - you are old enough to recognize truth when you
see it."
- if they are over 20 and less than
or equal to forty, the program should output their initials (capitals-no
matter what they entered!), and the statement " - you are old enough
to recognize truth and young enough to take action."
- If they are less than or equal
to 20, the program should output their initials (capitals-no matter what
they entered!), and the statement " - you are young enough to pursue
truth without the preconceived notions that come with age and experience."
Sample 1
Program outputs: |
What is your first
initial? |
User inputs: |
J |
Program outputs: |
What is your last
initial? |
User inputs: |
d |
Program outputs: |
How old are you? |
User inputs: |
45 |
Program
outputs: |
JD - you
are old enough to recognize truth when you see it. |