
3.17 Programming Activity 2: Using Predefined Classes
In this Programming Activity, you will write a short program using some of
the classes and methods discussed in this chapter. Plus, given the API of a
method of an additional class, you will determine how to call the method.
Your program will perform the following operations:
1. a. Prompt the user for his or her first name
b. Print a message saying hello to the user
c. Tell the user how many characters are in his or her name
2. a. Ask the user for the year of his or her birth
b. Calculate and print the age the user will be this year
c. Declare a constant for average life expectancy; set its value to ...