Question: PLEASE PROVIDE A CODE IN JAVA A Personal Fitness Tracker is a wearable device that tracks your physical activity, calories burned, heart rate, sleeping patterns,

PLEASE PROVIDE A CODE IN JAVA

A Personal Fitness Tracker is a wearable device that tracks your physical activity, calories burned, heart rate, sleeping patterns, etc. One common physical activity that most of these devices track is the number of steps you take each day.

The steps.txt file (provided in the assignment folder) contains the number of steps a person has taken each day for a year. There are 365 lines in the file, and each line contains the number of steps taken during a day. (The first line is the number of steps taken on January 1, the second line is the number of steps taken on January 2, and so forth.). Write a program that reads the file into an ArrayList, and then displays the average number of steps taken for each month. (The data is from a year that was not a leap year, so February has 28 days.) Also, display the month with most and least average steps.

To can look up in the book how to read from a file or search it online.

Sample output:

Average steps for January:

Average steps for February:

(display it for all twelve months)

Most average steps taken in :

Least average steps taken in :

Additional Notes/Requirements:

Always use variables instead of hardcoded values.

Add comments.

Format the program properly e.g. indentation, brackets line up, etc. similar to the examples in the book.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!