A Personal Fitness Tracker is a wearable device that tracks your physical activity, calories burned, heart rate, sleeping patterns, and so on. One common physical activity that most of these devices track is the number of steps you take each day. The file “steps.txt” at the following web link 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 1st, the second line is the number of steps taken on January 2nd, and so forth.) Write a program that reads the file, 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.)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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

 

  • The file “steps.txt” at the following web link 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 1st, the second line is the number of steps taken on January 2nd, and so forth.)



  • Write a program that reads the file, 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.)

 

https://drive.google.com/file/d/1fBVZlrVC69MMkN- y1ICdUk2JVt4ia4L0/view?usp=sharing




A successful test run of the program is as shown in the screenshot below:



Major
← → CO
G Google ▸YouTube
E
Assignment
X
ST1_ST1_G_MajorAssignment_20% X
New Tab
X
+
https://docs.google.com/document/d/1zQA07ffHK8aNqAuN5tKG7pJuu6NkWAEi/edit
Word M 36 Discord Current Students... Alocate time table
MATLAB Online R2...
===Fitness Tracker Program===
The average steps taken in January was 5,246.1
The average steps taken in February was 4,851.9
The average steps taken in March was 5,777.6
The average steps taken in April was 5,802.1
The average steps taken in May was 4,711.5
The average steps taken in June was 4,792.3
The average steps taken in July was 5,638.2
The average steps taken in August was 5,759.6
The average steps taken in September was 6,114.6
The average steps taken in October was 5,411.0
The average steps taken in November was 4,268.8
The average steps taken in December was 5,138.1
File Edit View Tools Help
p2.jpg
16°C
Clear
Proiect 3 Emplovee Management System
■
OI
19
myJob Sf Woolsworth group
ΟΜ
GO
iLovePDF | Online P...
A
+
ENG
IN
1
ㅁ
X
Update:
Notes
+ Take a note...
Related
===Fitness Tracker Progra
The average steps taken
The average steps taken i
The average steps taken i
The average steps taken i
The average steps taken i
The average steps taken i
The average steps taken i
The average steps taken 1
The average steps taken
The average steps taken i
The average steps taken i
The average steps taken i
Recent
Hi Josh, Cam Mas
Are you able to ja
dinner...
Show all
X
22:16
19
29-04-2022
Transcribed Image Text:Major ← → CO G Google ▸YouTube E Assignment X ST1_ST1_G_MajorAssignment_20% X New Tab X + https://docs.google.com/document/d/1zQA07ffHK8aNqAuN5tKG7pJuu6NkWAEi/edit Word M 36 Discord Current Students... Alocate time table MATLAB Online R2... ===Fitness Tracker Program=== The average steps taken in January was 5,246.1 The average steps taken in February was 4,851.9 The average steps taken in March was 5,777.6 The average steps taken in April was 5,802.1 The average steps taken in May was 4,711.5 The average steps taken in June was 4,792.3 The average steps taken in July was 5,638.2 The average steps taken in August was 5,759.6 The average steps taken in September was 6,114.6 The average steps taken in October was 5,411.0 The average steps taken in November was 4,268.8 The average steps taken in December was 5,138.1 File Edit View Tools Help p2.jpg 16°C Clear Proiect 3 Emplovee Management System ■ OI 19 myJob Sf Woolsworth group ΟΜ GO iLovePDF | Online P... A + ENG IN 1 ㅁ X Update: Notes + Take a note... Related ===Fitness Tracker Progra The average steps taken The average steps taken i The average steps taken i The average steps taken i The average steps taken i The average steps taken i The average steps taken i The average steps taken 1 The average steps taken The average steps taken i The average steps taken i The average steps taken i Recent Hi Josh, Cam Mas Are you able to ja dinner... Show all X 22:16 19 29-04-2022
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY