You have been asked to write a program for the Duckie's Obstacle Race. The program calculates the total number of racers, the fastest race time, the slowest race time, and the overall average race time.

Ask user to enter the maximum number of racers allowed for the race
Use repetition structure (loop) to ask the user to enter race times (in minutes)
Exit the loop if the user specifies there are no more times to enter (sentinel value) or if the maximum number of racers allowed has been reached
At a minimum, within the loop, you should keep track of how many race times are entered, the fastest race time and the slowest race time.
After the loop is exited, display how many race times were entered, the fastest race time, the slowest race time and the overall average race time.
Format your output appropriately
Be sure to include all appropriate documentation at the start of the program and within the program body

Answers

Answer 1

The program illustrates the use of loops and conditional statements

Conditional statements are used to make decisionsLoops are used for operations that must be repeated until a certain condition is met.

The race program

The program written in Python, where comments are used to explain each action is as follows:

#This initializes the variables to 0

totalRaceTime = 0; minRaceTime = 0; maxRaceTime = 0; countTimes = 0

#This gets input for the number of race times

numTimes = int(input("Number of times: "))

#This opens a sentinel controlled loop

while countTimes < numTimes:

   #This gets the race time

   raceTime = int(input("Race time: "))

   if countTimes == 0:

       minRaceTime = raceTime

       maxRaceTime = raceTime

   #This determines the highest race time

   if raceTime > maxRaceTime:

       maxRaceTime = raceTime

   #This determines the leest race time

   if raceTime < minRaceTime:

       minRaceTime = raceTime

   #This determines the total race time

   totalRaceTime+=raceTime

   countTimes+=1

#This prints the highest race time

print("Maximum: ",maxRaceTime)

#This prints the least race time

print("Minimum: ",minRaceTime)

#This prints the average race time

print("Average: ",round(totalRaceTime/numTimes,2))

Read more about while loops and conditional statements at:

https://brainly.com/question/24833629


Related Questions

help meeeeeeeeeeeeeeeee

Answers

Answer:

The advantages include much access to photos, digital functions like games and contacts with friends, videos, and you can search questions to anything you like. Disadvantages include things like too much screen time affecting sleep, health, and other physical problems. There is also exposure to explicit content and hatred from strangers.

There are hundreds of editing software for you to try, and many are free to use and are even compatible offline. They can make content related to or look like something in a movie or can be used to make things look nicer and cooler.

deed of gift can be understood as:?

Answers

Answer:

a formal and legal agreement between the donor and the repository that transfers ownership of and legal rights to the donated materials.

Explanation:

a formal and legal agreement between the donor and the repository that transfers ownership of and legal rights to the donated materials.

Networking essentials

Answers

Answer:

Gain the essential knowledge and skills required to configure, troubleshoot, manage and protect a data network.

Explanation:

how do you create 2 dimensional array with c++?

Answers

2 dimensional arrays in C++ are arrays that have 2 dimensions i.e. rows and columns

How to create the array?

To create a 2-dimensional array in C++, you make use of the following syntax

data_type array_name[rows][columns];

Assume the following parameters:

The data type of the array is integerThe array name is StudentsThe array has 10 rows and 20 columns.

The declaration of an array with the above properties would be:

int Students[10][20];

Read more about arrays at:

https://brainly.com/question/22364342

RAM is like a computer’s ______________, while a hard drive is like a computer’s ______________

Answers

Explanation:

RAM is what the computer and the applications run on and hard drive is the type of memory all your files and apps are located on

why are images important in research assignments? A. Because they allow your work to be cited by others B. Because they can illustrate an argument C. Because they are required before having your item published in the library database D. Because they take up more space than words in a document.

Answers

Answer:

C

Explanation:

Everything else does not make sense

how has education technology evolved in schools over the past years​

Answers

More sophisticated software given to students

i need answer for multiple choice . Someone help me.....pls.....everyone have online?

Answers

Answer:

I believe that your correct answer to that question is C. Logistics Information System. The Logistics subsystem deals with activities such as purchasing, receiving inventory control, and distribution. This concept sometimes requires certain components of the organization to operate sub-optimally in order to achieve the maximum goals of the system.

Explanation:

I got my information for this answer from www.examveda.com. If there are any further questions, please put them below in the comments, and I will try my best to help you out. If not, please have a great rest of your day/night. :)

In C, What is the #line used for?

Answers

The #line is mainly used to reset the line number and also the filename in the code.

What does a line in C mean?

The c in code is written in lower-case. The c that has a line over it means "with".

The C preprocessor is known to be macro processor that is often used often by the C compiler to change one's program before actual compilation. This   #line means that one can do any reset any line of code to an arbitrary line number or a filename that is said to have been stated by the user.

Learn more about code from

https://brainly.com/question/25605883

In 1972, earlier designers built the
connecting major universities. The broke
communications into smaller chunks, or
and sent them in a first come, first serve
1
basis. The limit to the amount of bytes of data that can be moved is called line capacity, or
When a network is met its capacity the user experiences
When the
network is "slowing down", what is happening is users are waiting for their packet to leave the
To make the queues smaller, developers created
packets to move
L
1
1
data
:: ARPANET
:: bandwidth
:: packets
:: simultaneously
:: queue
:: mixed
:: unwanted pauses

Answers

The exercise is about filling in the gaps and is related to the History of the ARPANET.

What is the History of the ARPANET?

From the text:

In 1972, earlier designers built the ARPANET connecting major universities. They broke communication into smaller chunks, or packets and sent them on a first-come, first-serve basis. The limit to the number of bytes of data that can be moved is called line capacity, or bandwidth.

When a network is met its capacity the user experiences unwanted pauses. When the network is "slowing down", what is happening is users are waiting for their packet to leave the queue.

To make the queues smaller, developers created mixed packets to move simultaneously.

Learn more about the ARPANET at:
https://brainly.com/question/16433876

Similarities in off-site and On-site

Answers

Answer:

Off prevents the page from finding your easy search terms; basically what you search for, while On page will help you improve the quality of your newly designed web page.

▬▬▬Casual Terms▬▬▬

Off page means that you are not actively viewing a page; unlike On, it would mean the exact opposite.

▬▬▬Conclusion▬▬▬

I Hope you have a great day!

Answer:

onsite is on or at a site while offsite is away from a mail location in a place not owned by a particular organization.

The intent of a website query is to find information true or false

Answers

Answer:

the answer is true

Explanation:

obviously

The intent of a website query is to find information, is the true statement.

What is a query in a website?

A user puts a search query into an online search engine to find the information they are looking for. Web searches are unique since they frequently consist of plain text and boolean search directives are infrequently utilized.

An informational query is a search when the user's main objective is to find information or an answer to a particular inquiry. When there is a desire to learn anything, the search is informational.

The actual word or group of words that a search engine user types into the search box is known as a search query or search term.

Users enter search terms into search engines to find specific results. If you were looking for information on how to build a website, for instance, you might type "how-to-make-a-website" into the search bar.

Thus, it is the true statement.

For more information about query in a website, click here:

https://brainly.com/question/30020029

#SPJ2

The IT staff at a hospital shares genetic information about specific patients with a life insurance company. Which ethical standard was violated?

Answers

The ethical standard which was violated by the IT staff at a hospital is: confidentiality.

What is PHI?

PHI is an acronym for protected health information and it can be defined as any form of health information for a patient that mustn't be disclosed without the patient's knowledge, approval (consent) or used for the payment of health care insurance for employees.

This ultimately implies that, it is an ethical standard for all health workers to keep and protect protected health information under normal working conditions because they are confidential in nature with respect to Health Insurance Portability and Accountability Act (HIPAA).

Read more on PHI here: https://brainly.com/question/24439144

Is hacking always wrong? Creating viruses?

Answers

Answer:

yes

Explanation:

Answer:

Not every “hack” is bad, and not every hacker is a criminal. In fact, many hackers secure websites and companies from malicious actors.

creating viruses is done by negative intention hackers

What app or divice has a filter that you can have blackvalk in real life

Answers

Answer:

look in app store explanation:

look in-app store

Create a file using any word processing program or text editor. Write an application that displays the files, name, containing folder, size, and time of last modification. Save the file as FileStatisits.java

Answers

Answer:

below is a Shell I have ;

1.Import java.nio.file.*;

2.Import java.nio.file attribute.*;

3.Import java.10 Exception;

4.public class FileStatistics

5.{

6.public static void main(string []args)

7.{

8.path file=

9.

paths.get("C:\\Java\\chapter.13\\TestData.txt")

10.try

11.{

12.\\declare count and then display path, file, name and folder name.

13.

14.

15.

16.\\declare a BasicFileAttributes object, then add statements to display the file's size and creation time.

17.

18.}

19.

20.catch (10 Exception e)

21.{

22.\\add display 10 Exception

23.

24.}

25.}

What exactly is github?

Answers

GitHub is a code hosting platform for version control and collaboration.

It lets you and others work together on projects from anywhere.

Explanation:

Hope it helps you!!

Mr. Hicks is setting up a wiiſed office network for 10 computers. He needs to use a network topology
devices to be added later as required. Which topology should he use?
A. Star
B.tree
C.mesh
D.ring

Answers

Answer:

C. Mesh

Explanation:

Each device will be connected to the other 9 devices, making it the best topology to use.

Hope this helps!

Answer:

STAR

Explanation:

Does anyone who uses Visual Studios 2022 know what tool name it is for the pop up menu? Do not send me links please.​

Answers

Answer:

The Commands and Menu Bar

Explanation:

Answer:

are u using a laptop? if so click the window botton if u download the visual studio code 2022 if u didnt download it use the search bar at the bottom of your screen "type here to search" and type in visual studio code 2022 and it will show up so click on it.

b) Write a program to update the rate by increasing 10% from a sequential data file "Data.dat" that store item name, rate and quantity​

Answers

The update program is an illustration of the file manipulation processes, where files are read and updated

How to write the program?

The program written in QBASIC, where comments are used to explain each line is as follows:

REM This opens a new file for output

OPEN "NEW.DAT" FOR OUTPUT AS #2

REM This is repeated until the end of the file

WHILE NOT EOF(1)

   REM This inputs the item details

   INPUT #1, N$, R, Q

   REM This updates the rate by 10%

   NEWRATE = R + 10 / 100 * R

   REM This writes the inputs to the file

   WRITE #2, N$, NEWRATE, Q

WEND

REM This closes the files

CLOSE #1, #2

REM This deletes the Data.dat file

KILL "DATA.DAT"

REM This renames the NEW.DAT to the Data.dat file

NAME "TEMP.DAT" AS "DATA.DAT"

REM The program ends here

END

Read more about file manipulation at:

https://brainly.com/question/25324400

2. Choose four organizations in a particular industry and compare their strategies and analyze how the information system could be used for each organization to gain competitive advantage. 9.1 The first organization should follow the competitive strategy of lower cost across the industry,

Answers

The four organizations in a particular industry (Food industry) are:

Cargill Archer Daniels Midland (ADM) Company Nestle Sysco Corporation

What is Low-cost strategy?

The food industry is one that has been dominated by a lot of big companies. It is competitive in nature and it is advisable to have a Low-cost strategy.

This Low-cost strategy is one that helps the firm to sell its product or its service using a lower price when compared to its competitors as this will help them to have or win a competitive edge in the industry.

Learn more about Food industry from

https://brainly.com/question/11900425

My computer has been running slow for a few days I’m sure it’s a virus

Answers

Answer:

You try to clean it, dipping it in water 2-3 times will be fine.

Explanation:

ha ha I'm indian boy F...

Answer:

Don't put some water on it it will be break just clean it and tell your parents to fix it if you have a money you can fix it

what is the answer to 7.4.4: Length of User's Name codehs

Answers

The program that ask the user to type there first name and then print out how many letters that is in there name is as follows:

x = input("what is your first name: ")

y = len(x)

print(f"There are {y} letters in your name")

Code explanation;

The code is written in python.

Firstly, we store the users name in the variable x.Then, we find the length of the users inputted name and store it in a variable y.Finally, we print the length of the users name using the print function.

learn more on python here: https://brainly.com/question/26738945

When purchasing a security program, you must make sure that _____. Select 2 options.

it can be implemented quickly

it can be easily adopted

it hinders operational efficiency

the employees are not involved

it is complex and complicated

Answers

Answer:

1 ans 3

Explanation:

Answer:

- it can be implemented quickly

- it can be easily adopted

Explanation:

When selecting a security program to purchase, you should want to ensure its efficiency. Correct on Edge.

I hope this helped!

Good luck <3

This is an example of what type of formula? =AVERAGE(D1:D17) A. ADDITION
B.SUBTRACTION C.RANGE D.AVERAGE

Answers

Answer:

d average

Explanation:

average as it already shows it says average

An IT infrastructure manager is reviewing his company's computer assets, particularly the mean time to failure (MTTF) of the PC and server hard drives. The manufacturer of the hard drives typically used in the company states that the MTTF is approximately 11 years. Because servers and some high-priority workstations must operate continuously except for brief periods of maintenance, how many hours, on average, can these hard drives be expected to operate before failure

Answers

The numbers of  hours, on average, can these hard drives be expected to operate before failure is 24 hours a day, also seven days a week and 365 days a year.

How many hours can Hard drive last?

The total life-time of a hard disk is said to be 5 years" that is about 43,800 hours of been in constant use.

Note that a key  reliability-linked criterion for the selection of storage components is based on its operating duty that is the numbers of  many hours in a day a drive can be active for.

A lot of HDDs used by Enterprise-class applications are said to be optimized for constant use that is 24 hours a day, seven days a week, and 365 days a year.

Note that a Managed Service Provider (MSP) have to plan for a failure in every 1000 hours that is about 42 days.

Learn more about hard drives from

https://brainly.com/question/1558359

Use Advanced Filtering to restrict the data to only display full-time employees with at least one dependent. Place the results in cell A37. Use the criteria in the range H24:M25 to complete the function.

Answers

Answer:

Click cell H10, and enter an AVERAGEIFS function to determine the average salary of full-time employees with at least one dependent. Format the results in Accounting Number Format. Step 1: Open the excel and go to Insurance worksheet

A new robot is created to explore volcanoes on other planets. Which robot is
most likely to have been referenced in the design of the new robot?
A. Dante
B. Roomba
C. ASIMO
D. Sophia

Answers

Answer:

A

Explanation: Dante II is a unique walking robot that provides important insight into high-mobility robotic locomotion and remote robotic exploration. Dante's uniqueness stems from its combined legged and rappelling mobility system, its scanning laser rangefinder and its multi-level control scheme.

13. In cell B16, use the SUMIF function and structured references to display the total wins for teams in the Youth league.

Answers

Using the SUMIF function and structured references to display the total wins for teams in the Youth league is gotten as; 65

How to make use of the SUMIF Function?

The SUMIF function in excel combines a condition and a sum of the values which meets the stated condition. That is; SUMIF(row_range, condition)

From the attached image we can see the number of times youth won the league in column D. Also, we can see the total number of youth wins in column H under Total.

Thus, using SUMIF function for the total number of wins, we have;

B6 = SUMIF(SwimTeams[League], "youth",H3:H12

B6 = 21 + 16 + 12 + 9 + 7

B6 = 65

Read more about the SUMIF Function at; https://brainly.com/question/19595606

[ASAP!] Which of these can be a problem for people with accessibility issues? Select 4 options.

1. using all uppercase text
2. using left-aligned text
3. putting two spaces after a period
4. flashing images
5. using an image instead of text​

Answers

The answers are:

- Using all uppercase text

- Putting two spaces after a period

- Flashing images

- Using an image instead of text

Proof:

Using full capital text, inserting two spaces after a period, flashing pictures, and using an image in place of text are all accessibility issues. Options A, C, D and E are correct.

What are the accessibility issues?

When providing access to the product or service, the following accessibility concerns must be taken into account:

Visual problems including color blindness or poor vision.Similar to photosensitive epilepsy, seizures.Mobility or motor problems, such as those of wheelchair users.

Making information, activities, and/or surroundings understandable, relevant, and useable for as many individuals as feasible is the practice of accessibility. Architectural design is a typical instance of accessibility that we have all probably seen.

Accessibility concerns include utilizing all capital letters, adding two spaces after a period, flashing images, and replacing text with an image.

Therefore, option A, C, D and E are correct.

Learn more about the accessibility issues, refer to:

https://brainly.com/question/17351493

#SPJ2

Other Questions
Please help me ASAPI will mark brainliest! A company that makes and sells riding lawnmowers determines that the demand for lawnmowers is () = / + How many lawnmowers must be sold to maximize revenue and what price must be charged for the lawnmowers to maximize revenue?-use a representation(example step one, step two,-use verbal explaination explaining each step Asap help it's for an essay, 3 reasons why online learning is more beneficial than physical learning In the adjoining figure triangle PQR is similar to triangle PMN , PM= 2MQ And PN = 2NR . Determine ratio of MN/QR A bus route currently has an average of 1,275 riders per day. A transportation engineer estimates that there will be 5.7% more passengers riding the bus route next year and 6.5% more passengers the year after that. According to the engineers estimate, about how many passengers will ride the bus route two years from now rounded to the nearest whole? please help i. d. k what im doing- Find the area of the parallelogram shown below. Which equation can be used to solve for m1? m1 = one-half(a b) m1 = one-half(a b) m1 = one-half(c d) m1 = one-half(c d) A small company has $8,250,000 in (annual) revenue, spends 49% of its revenues on purchases, and has a net profit margin of 8. 5%. They would like to increase their profits and they are looking at focusing in one of two directions. First, they think they can save 2. 05% on their purchase expenses. Or second, they can focus on increasing sales. By how many dollars would they have to increase sales in order to equal a 2. 05% savings to purchasing expenses? (Display your answer as a whole number. ) Can u do these for me What changes occur in the atmosphere as you go higher?. Each of students reported the number of movies they saw in the past year. Here is what they reported.11,6 ,9 ,16 ,12 ,18 ,14 Find the mean number of movies that the students saw.If necessary, round your answer to the nearest tenth. 20 = (-10) = (-20) +101) Is the equation up there true or false?2) Support your decision below.Help quick Grave of the Fireflies Movie Reflection Instructions: You will write two paragraphs based on the film. The first paragraph you will write a summary of the film such as the main characters, the setting, and the plot. The second paragraph you will write what you liked and disliked about the movie. What emotions were going through your mind as you watched the film? What lesson or message did the movie portray? Did the movie change any perspective you see in life?PLEASE HELP! first to answer will receive brainliest. What are 'prokaryotic organisms'? What are some examples? guess this football playersporting cpmanchester unitedreal madrid juventusmanchester united Helpp me with my sister's math Question 16 of 30In Tallahassee, Florida, no building can be taller than the capitol building.What is the intended purpose of this law?O A. To protect buildersO B. To control wagesO C. To obtain revenueO D. To guide developmentSUBMIT _____ is considered to be the most persuasive and valuable method of promoting products and services. Group of answer choices Two unlinked loci affect mouse fur color. nn or nn mice are agouti. mice with genotype nn are albino because all pigment production is blocked, regardless of the phenotype at the second locus. at the second locus, the a allele (agouti coat) is dominant to the a allele (black coat). what would be the result of a cross between two agouti mice of genotype nnaa?