Over a 5 day period, a jogger wants to figure out the average number of miles she runs each day.

Use the following information to create the necessary code. You will need to use a loop in this code.

1.The following variables will need to be of type “double:” miles, totalMiles, and average

2. Show a title on the screen for the program.

3. Ask the user if they want to run the program.

4. If their answer is a capital or a lowercase letter ‘Y’, do the following:

- Set totalMiles to 0.
Do five times (for loop)

{

- Show which day (number) you are on and ask for the number of miles for this day.
- Add the miles to the total

}

5. Show the total number of miles

6. Calculate the average

7. Show the average mileage with decimals

8. Use attractive displays and good spacing.

This question still have no answer summary yet.

This Question: "Jogger-For Loops" No answers yet.

Did this answer your question? If not, ask a new question.

- Jogger-For Loops
Jogger-For Loops...

- Dave the jogger runs the same route every day (about 2.2 miles)
Dave the jogger runs the same route every day (about 2.2 miles)...

- A slow jogger runs 2.5 miles in 29 minutes
A slow jogger runs 2.5 miles in 29 minutes...

- A jogger runs 109yd in 10.00 seconds. what would be his time for a 405 m run at
A jogger runs 109yd in 10.00 seconds. what would be his time for a 405 m run at ...

- Dave the jogger runs the same route every day (about 2.2 miles)
Dave the jogger runs the same route every day (about 2.2 miles)...

- jerry and jean jogger start at the same time from point A
jerry and jean jogger start at the same time from point A...

- A jogger jogs around a circular track with a diameter of 225 m in 11 minutes. What was the...
A jogger jogs around a circular track with a diameter of 225 m in 11 minutes. Wh...

- A cyclist and a jogger start from a town at the same time and head for a destination 6 mi away
A cyclist and a jogger start from a town at the same time and head for a destina...

- A jogger begins her workout by jogging to the park, a distance of 12 miles
A jogger begins her workout by jogging to the park, a distance of 12 miles...

- A cyclist and a jogger start from a town at the same time and headed for a destination 24 mi away
A cyclist and a jogger start from a town at the same time and headed for a desti...