Ask the user for number of runners For each runner: Ask the user the name of the runner Ask the user for number of runs For each run, ask the user What the distance was in miles (in decimal format, e.g. 3.1 miles is acceptable) What the time was in minutes (in decimal format, e.g. 23.9 minutes is acceptable) After gathering all the info from ste

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Hello, I am having trouble with a coding problem I am working on. I was wondering if an expert could help me with this coding problem. Its in four parts. Please let me know if you can answer this question. Thank you.

Write a program that:

  1. Ask the user for number of runners
  2. For each runner:
    1. Ask the user the name of the runner
    2. Ask the user for number of runs
    3. For each run, ask the user
      1. What the distance was in miles (in decimal format, e.g. 3.1 miles is acceptable)
      2. What the time was in minutes (in decimal format, e.g. 23.9 minutes is acceptable)
    4. After gathering all the info from steps 1 & 2 above, output a summary in 3 sections:
      1. The name of each runner along with the average pace of each runner
      2. The average pace of all runs for all runners
      3. The total number of runners & runs
Expert Solution
Step 1: Introduction

They are as much a test of logic as they are of patience and grit. But worry not! Together, we'll embark on this coding journey, step by step. This problem is a delightful mix of loops, user input, data storage, and data presentation. Let's begin by discussing a broad strategy, and then we'll plunge right into the solution.

steps

Step by step

Solved in 3 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Do you know if you can paste the code in eclpise format?

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education