Part 4: Write an average-of-three-numbers program This program will get three integers from the user and then print the average of them (using integer division). Here is a sample run of what the program should look like when you run it and type in 7, 10, and 15: solution g++ -std=c++17 avg.cpp -o avg + solution ./avg Type the first number: 7 Type the second number: 10 Type the third number: 15 The average is 10. + solution So you need to output the prompts "Type the first number: " and so on, and the user will type in the 7 and press enter. Make sure your output looks exactly like this for those inputs. Make sure to test it with other inputs too! Compile your code with g++ -std=c++17 avg.cpp -o avg

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.5: A Closer Look: Loop Programming Techniques
Problem 12E: (Program) Write a program that tests the effectiveness of the rand() library function. Start by...
icon
Related questions
Question
100%
Screen Shot
f 2021-05..8.59 PM
angel retirement
kandy pdf.pdf
Part 4: Write an average-of-three-numbers program
awtonsclass.co...
Screen Shot
2021-05...3.54 PM
This program will get three integers from the user and then print the average of them
(using integer division). Here is a sample run of what the program should look like when
you run it and type in 7, 10, and 15:
+ solution g++ -std=C++17 avg.cpp -o avg
→ solution ./avg
Type the first number: 7
Type the second number: 10
Type the third number: 15
The average is 10.
+ solution
rminal.
HERO8 BLACK
Screen Shot
2021-05..8.40 PM
So you need to output the prompts "Type the first number: " and so on, and the user
will type in the 7 and press enter. Make sure your output looks exactly like this for
those inputs. Make sure to test it with other inputs too!
99
rminal.
Compile your code with g++ -std3c++17 avg.cpp -o avg
CodeBlocks..Jnk
Screen Shot
MinGW
2021-05...4.22 PM
Installer.Ink.
17,614
AUG
18
W
X
Transcribed Image Text:Screen Shot f 2021-05..8.59 PM angel retirement kandy pdf.pdf Part 4: Write an average-of-three-numbers program awtonsclass.co... Screen Shot 2021-05...3.54 PM This program will get three integers from the user and then print the average of them (using integer division). Here is a sample run of what the program should look like when you run it and type in 7, 10, and 15: + solution g++ -std=C++17 avg.cpp -o avg → solution ./avg Type the first number: 7 Type the second number: 10 Type the third number: 15 The average is 10. + solution rminal. HERO8 BLACK Screen Shot 2021-05..8.40 PM So you need to output the prompts "Type the first number: " and so on, and the user will type in the 7 and press enter. Make sure your output looks exactly like this for those inputs. Make sure to test it with other inputs too! 99 rminal. Compile your code with g++ -std3c++17 avg.cpp -o avg CodeBlocks..Jnk Screen Shot MinGW 2021-05...4.22 PM Installer.Ink. 17,614 AUG 18 W X
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Datatypes
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning