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 (3rd Edition)
Additional Engineering Textbook Solutions
Programming in C
Web Development and Design Foundations with HTML5 (8th Edition)
Database Concepts (7th Edition)
Digital Fundamentals (11th Edition)
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
Concepts Of Programming Languages
- 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_forwardGeneral Instructions: Create a folder and name it Bank Account. Save all your files to the created folder. Methods definitions: deposit method make deposit into account Note: be sure the amount to be deposited is not less than zero withdraw method make withdrawal into the account this method returns false is current balance is less than the amount to be withdrawn and it returns true if there is enough balance and subtracts amount withdrawn with balance fundTransfer method transfers an amount to another account credits the amount to the account being transferred and debit to the account who transferred the amount calculateInterest compute for the annual interest of an account and update the new balance cashCheck cash check and debit balance use the attribute of class CheckingAccount the attribute minimum per check charge added if bal < minbal the attribute charge amount charged per check when bal < minbal Additional requirements: getter and setters…arrow_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_forward
- Implement 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_forwardHelp ASAP for error free. Codearrow_forwardRewrite code attach screenshot else will downvote surearrow_forward
- Please 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_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_forwardAs a consequence of this, users may opt to input data through the command line rather than the GUI.arrow_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_forwardBesides there is an options menu that includes two options in the main activity. These are: 1. New Student 2. Exit When you click on the “New Student” option, a “New Activity” opens and the teacher enters the Student ID, Visa, Final Number, Phone Number and clicks the Add button. Thus, the student's information is recorded in the database. In addition, the grade point average is calculated by taking 40% of the student visa and 60% of the final. Both the grade point average and this student's phone number are sent to MainActivity. When registration is complete, the main activity is updated to include the list of the currently added student. In addition, if the average score coming from the main activity to NewActivity is equal to or greater than 50, an SMS is sent directly to the student's phone number indicating that he or she has passed the course. For this process, necessary permissions are obtained by following the permission procedure. If the student's average is less than…arrow_forwardIf you have downloaded the source code from this book's companion web site, youwill find the following files in the Chapter 07 folder:• GirlNames.txt--This file contains a list of the 200 most popular names given togirls born in the United States from the year 2000 through 2009.• BoyNames.txt--This file contains a list of the 200 most popular names given toboys born in the United States from the year 2000 through 2009.Write a program that reads the contents of the two files into two separatelists, allows a user to input either a girl's name, a boy's name, orboth, then tells the user whether the name(s) was/were popular between 2000 and2009.First, the program should prompt the user to choose a girl's name, a boy's name,or both by entering either 'girl', 'boy', or 'both.'Once they have chosen, they should be able to input a name. If the name wasa popular name, like Jacob or Sophia, the program should print "Jacob was apopular boy's name between 2000 and 2009." or "Sophia was a popular…arrow_forward
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L