Question: 1. Ask and get the user's first name and last name 2. Ask and get the user's college that he/she attends 3. Ask and get
1. Ask and get the user's first name and last name
2. Ask and get the user's college that he/she attends
3. Ask and get the user's age
4. Declare a constant and assign the value 7 to it.
5. Use a loop that runs 7 times (use the final variable) to ask and get how many steps the user walks
each day of the seven days in a week (Monday, Tuesday, etc until Sunday)
6. Calculate accurately the daily average distance (in miles) walked by the user. (One mile = 5280
steps)
7. Display the information gathered so far: First name, last name, college attending, age, and then
the daily average distance walked. All the information should be displayed nicely formatted.
8. Declare a constant that contains your own threshold value for minimum daily exercises.
9. If the daily average is at or above the threshold, praise the user (profusely if you want);
otherwise, tell the user what to do (as you please).
10. Extra: if you add an outer loop that allows different users to enter their information, 1 point will
be added. If you use the DecimalFormat class and format the daily average distance to 2 decimal
points, another 1 point will be added.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
