Question about ArcMedia JavaScript Source Code 3000 Pro (gar448) for PC

# Code of array that calculates the sum and average of the five input values?

Posted by on

• Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

• Master

For int i=0; i< array.count; i++
{
sum+= array[i];

}

average = sum/5

Posted on Dec 30, 2009

Hi,
a 6ya Technician can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repair professionals here in the US.
Goodluck!

Posted on Jan 02, 2017

×

my-video-file.mp4

×

## Related Questions:

### How can I find the mean absolute deviation?

Mean absolute deviation.
Let's break it down into its components.
Mean - Average
Absolute - absolute value - sign doesn't matter - if negative, make positive
Deviation - difference from the mean

Let's do an example. Population 3 7 4 2. Total 16. Mean (Average) 16/4 = 4.

Deviations
3 - 4 = -1 absolute value 1
7 - 4 = 3
4 - 4 = 0
2 - 4 = -2 absolute value 2

Sum of these deviations 1 + 3 + 0 + 2 = 6
Mean (average) of these deviations is 6 / 4 = 1.5.

Good luck,

Paul

Apr 05, 2016 | Texas Instruments TI-30Xa Scientific...

### I need to find the mean of 6 6 11 and 12 and i don't now what to divide by.

Mean=Average =(Sum of data values)/(number of data in set)
Sum of data values =6+6+11+12=35
Number of data =4
Average =Mean =35/4=8.75

Mar 13, 2014 | Office Equipment & Supplies

### Write a program c that declares an array of 100 elements to hold these values. Read the values in from the file and store them in successive elements of the array. Keep track of how many numbers are read...

That appears to be an intermediate question in a programming class. Best read the book, the answer is not what is important the process of getting the answer is what you are trying to learn.

May 17, 2017 | Office Equipment & Supplies

### Create javascript code whose function is to compute the sum of two inputs?

Hello,
The following code will dynamically calculate the some of the first two fields:

Enter first number:
Enter second number:
Their sum is:

Best Regards, Ben

Jun 29, 2011 | Computers & Internet

### Declare 2 arrays with 5 as index value of each. the user will input values to the first array(user-defined). Transfer value of the first array to the second array.Get the sum of the second...

You could do this by creating two arrays as such:
int firstArray[5]; int secondArray[5]
and then the sum variable:
int sum = 0;
then you could do a for loop to find the sum of the second array:

Feb 22, 2011 | Microsoft Visual C++ Professional Edition...

### I would like some help in solving some TVM problems using the BA II Plus calculator. i.e. How to solve: I invested a lump sum of \$2400 in an investment that returns 6% annually. How much will the...

2nd [CLR TVM] (clear TVM registers)

2 4 0 0 +/- PV (\$2400 initial investment, negative because you're paying it out)

6 I/Y (6% annual interest)

1 N (one year)

CPT FV (compute future value, see 2544.00, the value after one year)

5 N (five years)

CPT FV (see 3211.74, the value after five years)

1 0 N (ten years)

CPT FV (see 4298.03, the value after ten years)

Feb 19, 2011 | Texas Instruments BA II PLUS Financial...

### How do I put my calculator in statistics mode?

The TI-30XA does not have to be switched to a statistics mode, the operations are available all the time. The choice of operations are somewhat limited; the calculator offers statistics functions for one dimensional data sets only (no linear interpolation of (x,y) value pairs, for example):
• [2nd] [CSR] - erase statistics data
• [] - add a number to the sample set
• [2nd] [] - remove a number from the sample set
• [2nd] [FRQ] - multiple entry of the same sample value
• [2nd] [n] - sample set size
• [2nd] [] - sum of all sample elements
• [2nd] [] - sum of the squares of all sample elements
• [2nd] [] - average of the sample set
• [2nd] [] - standard deviation (sample set is a complete set)
• [2nd] [] - standard deviation (sample set is a subset of a larger set)
The calculator displays "STAT" if the current sample set is non-empty.

Example: calculate the average and standard deviation of the set { 3, 4, 5, 5, 5, 5, 6 }.
1. [2nd] [CSR] - erase stat memory
2. 3 [] 4 [] 5 [2nd] [FRQ] 4 [] 6 [] - enter the data, note the use of [2nd] [FRQ] to enter the four occurrences of "5". Entering 5 [] four times would have done the same.
3. [2nd] [] - display the average of the set, (4.714...)
4. [2nd] [] - display the standard deviation of the set (0.8806...)

Jan 25, 2011 | Texas Instruments TI-30XA Calculator

### C++ poker program

Hi.

I suggest creating an Array of Cards (cardOne,cardTwo,etc. to five)

If you can enter them in one at a time, after declaring the array, assign the values to the array.

cin < cardOne; (Psuedo code by the way, hope you don't mind)

Afterwards, you'll have an array with 5 cards.

Declare what full houses, flushes, etc would require.
Use an if statement (If you don't mind lots of code) to compare the entered Array against possible hands.

I didn't necessarily give you any specific C++ code. However, if you Google C++ user input, you should find plenty of commands that may help you.

Good Luck

(And not sure about Linear search to be honest, you can use a Linear search, but if you did it the way I explained, you just have to compare hand to a series of conditionals.)

Sep 23, 2009 | Computers & Internet

### I am java beginner and I want a help in writing a java program to calculate the variance for an array of numbers

the best thing to do here is to separate the steps for calculating the variance into different functions. To compute the variance the first thing to do is to compute the mean or the average of the numbers in the array. so your first function will loop through each of the numbers and divide it by the length of your array. the output is the returned. The next thing to do is create another function for the variance. loop through each of the numbers again and subtract to each number the mean. square the value then add to the previous. so that means you have another variable that starts from zero and just adds the answer. after that divide it by the length of the array again and what you are going to get is the value for the variance.

May 13, 2009 | Computers & Internet

### A Program using an array that culculates the sum and average of the five input values?

Hi,
I am writing in C code here
#include<stdio.h>
#include<conio.h>
void main()
{
int a[5],i,sum=0;
float avg=0;
printf("enter the five values");
for(i=0;i<5;i++)
scanf("%d",&a[i]);
for(i=0;i<5;i++)
sum+=a[i];
printf("Sum=%d",sum);
avg=sum/5;
printf("Average=%f",avg);
getch();
}

Mar 18, 2009 | ArcMedia JavaScript Source Code 3000 Pro...

## Open Questions:

#### Related Topics:

105 people viewed this question

Level 3 Expert

Level 3 Expert