Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Intro to C++ Code : #include #include using namespace std; int main() { int a[20], n, i = 0; cout>n; cout>n; cout Error Message :

Intro to C++

image text in transcribed

Code :

#include

#include using namespace std;

int main() { int a[20], n, i = 0; cout>n; cout>n; cout

Error Message :

image text in transcribed

Take the average of some numbers. Show all the numbers that are below average You can assume that there will not be more than 20 numbers entered For example Enter a weight (0 to stop): 1 Enter a weight (0 to stop): 2 Enter a weight (0 to stop): 3 Enter a weight (0 to stop): 4 Enter a weight (0 to stop) 5 Enter a weight (0 to stop): 6 Enter a weight (0 to stop) 7 Enter a weight (0 to stop) 8 Enter a weight (0 to stop): 9 Enter a weight (0 to stop): 10 Enter a weight (0 to stop): 0 The total was 55 The average is 5.5 Here are all the numbers less than the average: 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions

Question

13-1 How does building new systems produce organizational change?

Answered: 1 week ago