Average Steps Taken
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.
If you have downloaded this book’s source code from the companion Web site, you will find a file named steps.txt in the Chapter 05 folder. (The companion Web site can be found at www.pearsonhighered.com/gaddis.) The steps.txt file 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, 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.)
Want to see the full answer?
Check out a sample textbook solutionChapter 7 Solutions
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Additional Engineering Textbook Solutions
Database Concepts (8th Edition)
Electric Circuits. (11th Edition)
Starting Out with Python (4th Edition)
Modern Database Management
Starting Out with C++ from Control Structures to Objects (9th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)
- GUI using tkinker (Python) - Challenge Activity 1: Student Information Display ToolWrite a Python program (GUI App) that requests the following information from user and displays it: ∙ Student name∙ Student address, with suburb, state, and post code∙ Student telephone number ∙ Student Coursearrow_forwardPlease create a random quote generator Java GUI. Please attach all code snippets Your Java GUI should include: ● A text window to show the random quote ● Randomize button to generate quote ● Authorbutton to show who said the quote ● Exit button to exit the programarrow_forwardPlease create a random quote generator Java GUI. It should include: 1. A button to perform randomizing function 2. A text area to display the quote.arrow_forward
- As a result, users may choose to utilise the command line instead of the GUI to input data.arrow_forwardPlease do not give solution in image format thanku Method: addOneMinute() Description: This method adds one minute to the current time. Method Signature: void addOneMinute() Parameters: This method does not take any parameters. Return Value: This method does not return anything. Instructions: Check the value of getMinute(). If it is between 0 and 58 inclusive, add 1 to it and call setMinute() with the new value. If getMinute() is 59, set minutes to 0 by calling setMinute(0), and then call addOneHour() to add one hour to the time. Note: You may change things around in your program, but for now please make this method work with the existing method signatures. ________________________________________________________________________________________________--- /*** Adds one minute*/void addOneMinute() {/**assume you have working getMinute(), setMinute(m), and addOneHour()* Feel free to change these in your program, but for now please get things to work with* these function signatures.* if…arrow_forwardImplement the using Windows form App(.NET Framework) c# : 1- creat a Form titled “ Students ” 2- Add text box with max 100 letter, where student can enter his name 3- Add Grade combobox where student can select his grade (A-B-C-D-E-F) 4- Add button “Add”, when clicked the name and grade are added to the data view5- Add button “Stat” when clicked another form appears6- A data grid appears with grade vs count statistic (ex : A ,3 ) (please respond with screenshots )arrow_forward
- That answer is wrong. Can you please read the instructions.arrow_forwardDirections: The column on the left tells what to search for. On the second column, you will write on the search box what will you type to achieve the task. Apply the use of symbols and tip you've learned. The first one is done for you. Write your answer on a separate sheet of paper. Task Search Term Find web pages Google Atlantis continent that have... all these words: Atlantis continent Google Atlantis continent –shuttle -film –movie But don't show pages that have..any of these unwanted words: shuttle film movie Find web pages Google that have... all these words: | Atlantis Find web pages Google that have... all these words: Waterbury But don't show pages that have... any of Google these unwanted words: Connecticu t CT Find web pages Google that have.. all these words: Waterbury this exact wording or Google phrase: San Diego State University Find web pages Google that have.. the song title of this lyrics: Mama "something'arrow_forwardHelp me answer thankssarrow_forward
- Getting Bigger.pdf PDF O File | C:/Users/19377/Downloads/Getting%20Bigger.pdf + Purpose To review more advanced aspects of user interfaces and event handlers Directions Create an interface for a program that looks like the one in the first image below. Then add an event handler to the JSlider that changes the font size of the text in the JTextArea according to the value on the slider, as illustrated in the second image. Note: These directions are intentionally vague. Use the internet and whatever other resources you have available to try to piece together how to do this. Be sure to cite any sources you use as comments in your code. Text Decorator Type here.. Font Size: 25 50 75 100 Text Decorator Type here... Туре Font Size: 25 50 75 100 11:35 AM e Type here to search 28°F Cloudy 2/23/2022 (8)arrow_forwardLab Tasks: You are going to develop a simple application which has two screens: • Screen1 contain four controls: TextView show "Enter your email address and password", Edittext1 to get email address and Edittext2 to get password from the user and Button to take user to next screen Screen2 contains only one control – TextView which displays greet messagearrow_forwardmobile programing,android studio,javaarrow_forward
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L