answersLogoWhite

0


Best Answer

#include

using std::cin;
using std::cout;
using std::endl;

int main()
{
int arrSize = 10;
double arr[10] = {0.0};

cout << endl << "Enter " << arrSize << " numbers:";
for (int i = 0; i < arrSize; i++)
{
cout << endl << "Enter " << (i + 1) << " number :";
cin >> arr[i];

}

double avr = 0.0;
for (int j = 0; j < arrSize; j++)
{
avr += arr[j];

}
avr /= arrSize;

for (int k = 0; k < arrSize; k++)
{
cout << endl << (k + 1) << " result: " << (arr[k] - avr);

}

cout << endl;
system("PAUSE");
return 0;

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you design the logic for a program that allows a user to enter 10 numbers the displays each and its difference from the numeric average of the numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between numeric data and non-numeric data?

Numeric data are numbers (like age, cost, etc.), while non-numeric data are not numbers (like name, address, etc.).


Show numeric numbers?

"Numeric" means "related to numbers", so basically all numbers are "numeric".


Can you show me an example of numeric numbers?

The term numeric number is redundant. All numbers are numeric, since numeric means composed of numbers.


What is the difference between numeric array and associative array?

Numeric array has numbers(+integers) that represent the values Associative array has strings that represent the values


Can you show me an example of a numeric number?

The term numeric number is redundant. All numbers are numeric, since numeric means composed of numbers.


How do you write 1263 and16 in numeric numbers?

They are already expressed as numeric numbers.


How do you write 17 in numeric numbers?

You have written 17 in numeric numbers in your question.


What is a numeric or non-numeric sequence?

A numeric sequence is a list of numbers in a particular order. A non-numeric sequence is an ordered list of something other than numbers.


My cell phone says I can send a numeric page but I don't even know what it is so I tried looking it up on Google but that didn't work so what is a numeric page?

It means that you can send a message to a pager that only displays numbers (like a phone number).


How do you write 1995 in numeric numbers?

1995 in "numeric numbers"(?) is 1995. In Roman numerals it would be MCMXCV.


How do you write 8 in numeric number?

8 in numeric numbers is VIII.


What is alpa numeric?

alpha numeric refers to the keypad on your cell phone...it is the keypad which has numbers and letters of the alphabet-thus alpha being the alphabet and numeric being the numbers.