Computers and Technology

Write a program that includes two functions named calcavg() and the calcavg() function should calculate and return the average of the values stored in an array named testvals. the array should be declared in main() and prompt the user for ten values. the variance() function should calculate and return the variance of the data. the variance is obtained by subtracting the average from each value in testvals, squaring the differences obtained, adding their squares, and dividing by the number of values in testvals. the values returned from calcavg() and variance() should be displayed using printf() function calls in sample output:
enter test score 1: 100
enter test score 2: 98

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:30, angeline2004
At an open or uncontrolled intersection, yield if a. the cross road has more lanes than yours b. the cross road has fewer land than yours c. you’re on a state highway and the cross road is a secondary road d. do you have three or more passengers in your vehicle
Answers: 2
image
Computers and Technology, 23.06.2019 08:30, Calirose
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
image
Computers and Technology, 23.06.2019 20:00, shaheedbrown06
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
image
Computers and Technology, 23.06.2019 20:30, batmandillon21
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
Do you know the correct answer?
Write a program that includes two functions named calcavg() and the calcavg() function should calcu...

Questions in other subjects:

Konu
Mathematics, 02.11.2020 20:20