Master Computers and Technology with Fun Quizzes & Brain Teasers!
1. Ask and get the user's first name and last name2. Ask and get the user's college that he/she attends3. Ask and get the user's age4. 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 walkseach 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 = 5280steps)7. Display the information gathered so far: First name, last name, college attending, age, and thenthe 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 willbe added. If you use the DecimalFormat class and format the daily average distance to 2 decimalpoints, another 1 point will be added.