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
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++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 20PE
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb385463a-f269-40db-bb4d-1e452c918c42%2Fc68ef0b6-a8e4-41da-9910-62474c6559ad%2Fy5ap8pq_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
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 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning