Question: I was able to complete #5 and had some trouble with #6. Feel free to correct or improve any part that I've completed so far.



I was able to complete #5 and had some trouble with #6. Feel free to correct or improve any part that I've completed so far.
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). The user prompt must display the Days of the Week (see the sample output). Try to use a switch statement. 6. Calculate accurately (a real number) the daily average distance (in miles) walked by the user. (One mile = 5280 steps, declare a final variable for this value as well as USE it in your calculation) public static void main(String[] args) { Scanner input = new Scanner(System.in); String firstName; String lastName; String college; int age; final int DAYS_OF_WEEK = 7; int steps = 0; final int MILE IN STEPS = 5280; = 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 for(int i= 1;i
Step by Step Solution
There are 3 Steps involved in it
To complete the provided code and correctly compute the daily averag... View full answer
Get step-by-step solutions from verified subject matter experts
