subject

Create a program to determine the largest and smallest number out of 15 numbers entered (numbers entered one at a time). This should be done in a function using this prototype: double larger (double x, double y); Make sure you use a for loop expression inside your function. Enter 15 numbers 11 67 99 2 2 6 8 9 25 67 7 55 27 1 1 The largest number is 99 Hints: o Read the first number of the data set. Because this is the only number read to this point, you may assume that it is the largest number so far and call it max. o Read the second number and call it num. Now compare max and num, and store the larger number into max. Now max contains the larger of the first two numbers. o Read the third number. Compare it with max and store the larger number into max. o At this point, max contains the largest of the first three numbers. Read the next number, compare it with max, and store the larger into max. Repeat this process for each remaining number in the data set using a for expression.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
Which of the following is not a source of sustainable raw materials? a) coal mine b) flick of sheep c) cotton plantation d) line forest.
Answers: 2
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
You know the right answer?
Create a program to determine the largest and smallest number out of 15 numbers entered (numbers ent...
Questions
question
Mathematics, 25.01.2021 07:40
question
Mathematics, 25.01.2021 07:40
question
Mathematics, 25.01.2021 07:40
question
Mathematics, 25.01.2021 07:40
Questions on the website: 13722362