
Week runners log
Coding in Python and mainly using loops;create a program base on the following;
Five runners are preparing for an upcoming marathon. Each day of the week, they run a certain number of miles and write them into a notebook. At the end of the week, they would like to know the number of miles run each day, the total miles for the week, and the average miles run each day, Write a program to help them analyze their data. Your program should create a two-dimensional list of five rows and seven columns to store the number of miles run by each runner each day.
User should be able to input the names and miles for seven days(1 week).
The final result should look something like this.
Result Sample Output
Name Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7 Average
=============================================
Mike 10.00 15.00 20.00 25.00 18.00 20.00 26.00 19.14
Tina 15.00 18.00 29.00 16.00 26.00 20.00 23.00 21.00
Jason 20.00 26.00 18.00 29.00 10.00 12.00 20.00 19.29
Vicky 17.00 20.00 15.00 26.00 18.00 25.00 12.00 19.00
Tammy 16.00 8.00 28.00 20.00 11.00 25.00 21.00 18.43

Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 3 images

- PuTTY/Ocelot Assignment #2 Instructions: (using C language in the UNIX environment, Systems Programming) Through this programming assignment, the students will learn to do the following: Usage: mortgagepmt [-s] -r rate [-d downpayment] price In this assignment, you are asked to perform a mortgage payment calculation. All information needed for this will be passed to the program on the command line. There will be no user input during the execution of the program You will need a few pieces of information. The price of the home and the amount of the down payment. You will also need to know the interest rate and the term of the mortgage. To figure your mortgage payment, start by converting your annual interest rate to a monthly interest rate by dividing by 12. Next, add 1 to the monthly rate. Third, multiply the number of years in the term of the mortgage by 12 to calculate the number of monthly payments you'll make. Fourth, raise the result of 1 plus the monthly rate to the…arrow_forwardIn Python using Visual Code.arrow_forward4arrow_forward
- in c++arrow_forwardSolve In Python Provide Screenshots of input and output You have been asked by the Olympic committee to write a program for scoring the Olympic diving events. In an Olympic diving event, each dive has a degree of difficulty (DD). The dives are evaluated by a panel of 7 judges who can award 0 to 10 points. To determine an athlete's final score for a dive, the highest and lowest judges scores are discarded and then the average of the rest of the scores are calculated. The average is then multiplied by the DD, resulting in the final score for the dive. Write a program that will read in the attached data file that contains the event information. Each tab separated line will contain in order: -A diver name -The DD -7 scores for the dive Your program should parse this file and output the divers name, the dive DD, and the score for that dive. REMEMBER to submit your source code, and a screenshot of your output. The input file should be attached to this dropboxarrow_forwardComputer Science Write correct Python code to complete the following task. Document all assumptions. Solutions that do not incorporate a loop will receive a grade of 0. Obtain a positive integer greater than 1 but less than 20 from the user. Calculate the product of all numbers starting from the user's number up to, and including 100. If the number is evenly divisible by 7, do not include it in the product. If the product is more than or equal to 5000 stop the loop early and show the message "a big product". When the loop ends, if the product is less than 5000 show the product to the user.arrow_forward
- Write a Python code This lab requires you to write a complete program using a condition controlled loop, a counter controlled loop, and an accumulator. The program is as follows: Write a program that will allow a grocery store to keep track of the total number of bottles collected for seven days. The program will calculate the total number of bottles returned for the week and the amount paid out (the total returned times .10 cents). The output of the program should include the total number of bottles returned and the total paid out. The program will ask the user if they have more data to enter and will end the program if they do not. Step 1: In the pseudocode below, declare the following variables under the documentation for Step 1. A variable called totalBottles that is initialized to 0 This variable will store the accumulated bottle values A variable called counter and that is initialized to 1 This variable will control the loop A variable called todayBottles…arrow_forwardpython onlystart from here: def ask_for_age(): age = int(input('Enter the age of a family member: ')) return agearrow_forwardPYTHON!!! The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5% of the listed purchase price, minus the down payment. Write a program that takes the purchase price as input. The program should display a table, with appropriate headers, of a payment schedule for the lifetime of the loan. Each row of the table should contain the following items: The month number (beginning with 1) The current total balance owed The interest owed for that month The amount of principal owed for that month The payment for that month The balance remaining after payment The amount of interest for a month is equal to balance × rate / 12. The amount of principal for a month is equal to the monthly payment minus the interest owed. An example of the program input and output is shown below: Enter the puchase price: 200 (SEE IMAGE FOR PURCHASE PRICE CHART) Results you should get: Input: 200 Output: Purchase price: 200…arrow_forward
- using loops in C++ Write a program that will predict the size of a population of organisms. The program should ask the user for the starting number of organisms, their average daily population increase (as a percentage, expressed as a fraction in decimal form: for example 0.052 would mean a 5.2% increase each day), and the number of days they will multiply. A loop should display the size of the population for each day.Prompts, Output Labels and Messages .The three input data should be prompted for with the following prompts: "Enter the starting number of organisms: ", "Enter the average daily population increase (as a percentage): , and "Enter the number of days they will multiply: " respectively. The population sizes displayed should appear on separate lines, each of the form "On day D the population size was P." where D is the day number (starting with 1) and P is the population you calculated for that day.Input Validation.Do not accept a number less than 2 for the starting size of…arrow_forwardPython Assignment 4-4 Write a program to create a list of employees in various departments Input The number of departments The number of employees in in the departments NOTE: Each department has the same number of employees Processing Get the number of departments Get the number of employees per department Create a loop to enter the department names For each department list the names of the employees Output Sample below: Department 1: Accounting ========================== Employee 1: Sam Smith Employee 2: Amy Adams Employee 3: Charles Cook Department 2: Human Resources ========================== Employee 1: Betty Blake Employee 2: Mary Miller Employee 3: Sally Smitharrow_forwardprogram must include a processing loop that allows multiple sets of data to be processed and the program should be terminated when there is no more data to process Develop a program in python that allows the user to enter a start value of 1 to 4, a stop value of 5 to 12 and a multiplier of 2 to 8. The program must display a multiplication table with results using these values. For example, if the user enters a start value of 3, a stop value of 7 and a multiplier value of 3, the table should be displayed as follows: Multiplication Table 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 Run the program with the following values: Start Stop Multiplier 2 10 4 4 12 6arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





