Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Elise got a step tracker for Christmas last year and has recorded all her steps taken for the entire year (365 days). That data

image

Elise got a step tracker for Christmas last year and has recorded all her steps taken for the entire year (365 days). That data is stored in a file named steps.txt. She would like to see statistics on her activity. Your goal is to provide a count and percentage of high activity days (10,000 steps or higher), medium activity days (5,000-9,999), and low activity days (less than 5,000). The example output shows the result for low activity days only (so that you may use that for verification), but your output will show the statistics for high, medium, and low ranges. This output should be written to a file named activityResults.txt. Specific requirements: Create a Javadoc comment above your class. Include a description, your name, your section, and the code creation date Open the steps.txt file and read in every step count Calculate types and averages for each activity range Create a file containing the report with the counts for each of the three activity ranges as well their percentages (to two decimal places) Your output for your lab report will be the contents of your activity Results.txt file. (and then your source code copied under that) Grading Rubric: 1. Correctness (meets specification) 2. Design (well-constructed solution) 5 points 2 3. Validation & Verification (Testing) Total 9 points 2 Example output: ***Activity Results*** High Activity Days: (you determine) Medium Activity Days: (you determine) Low Activity Days: 173, 47.40%

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals of Case Management Practice Skills for the Human Services

Authors: Nancy Summers

5th edition

1305094765, 130509476X, 9781305544833 , 978-1305094765

More Books

Students also viewed these Programming questions

Question

Name this molecule. -CC

Answered: 1 week ago