#include using namespace std; lprototypes should go here - you don't need to write them int main) { int num1, num2, num3, lowest, highest; double average; getNumbers( A. findLowHigh( B. c. findAverage(D. ): printResults( E. return 0; F. getNumbers(G. cout << "Enter the first number: "; cin >> n1; cout << "Énter the second number: "; cin >> n2; cout << "Enter the third number: “; cin >> n3; Н. findLowHigh( I. `Ilfinds the lowest number if(n1 < n2) l/compare the first 2 numbers low = n1; else /l n1 >= n2 low = n2; if(n3 < low) llcompare the third number to the less of the first two low = n3;
#include using namespace std; lprototypes should go here - you don't need to write them int main) { int num1, num2, num3, lowest, highest; double average; getNumbers( A. findLowHigh( B. c. findAverage(D. ): printResults( E. return 0; F. getNumbers(G. cout << "Enter the first number: "; cin >> n1; cout << "Énter the second number: "; cin >> n2; cout << "Enter the third number: “; cin >> n3; Н. findLowHigh( I. `Ilfinds the lowest number if(n1 < n2) l/compare the first 2 numbers low = n1; else /l n1 >= n2 low = n2; if(n3 < low) llcompare the third number to the less of the first two low = n3;
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
using pass by refrence and pass by value

Transcribed Image Text:#include <iostream>
using namespace std;
llprototypes should go here – you don't need to write them
int main()
int num1, num2, num3, lowest, highest;
double average;
getNumbers( A.
);
findLowHigh( B.
C.
findAverage(D.
);
printResults( E.
):
return 0;
F.
_getNumbers(G.
cout << "Enter the first number: ";
cin >> n1;
cout << "Enter the second number: ";
cin >> n2;
cout << "Enter the third number: ";
cin >> n3;
}
Н.
findLowHigh( I.
lfinds the lowest number
if(n1 < n2) llcompare the first 2 numbers
low = n1;
else /l n1 >= n2
low = n2;
if(n3 < low) llcompare the third number to the less of the first two
low = n3;
lifinds the highest number
if(n1 > n2) l/compare the first 2 numbers
high = n1;
else Il n1 >= n2
high = n2;
if(n3 > high) llcompare the third number to the larger of the first two
high = n3;
}

Transcribed Image Text:findAverage( K.
J.
0.
avg = (num1 + num2 + num3)/3.0;
P.
printResults( M.
L.
cout << "The lowest number is " << low« " and the highest number is " << high << endl;
cout << "The average number is " << avg < endl;
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY