# computer science

Input a list of positive numbers (terminated by 0) into an array, find the mean (average) of the numbers in the array, and output the result. Use a subprogram to input the numbers, a function to find the mean, and a subprogram to output the result.

1. 👍 0
2. 👎 0
3. 👁 136

## Similar Questions

1. ### math

The Sum of 2 positive numbers is 151. The lesser number is 19 more than the square root of the greater number.What is the value of the greater number minus the lesser number? The list of numbers 41,35,30,x,y,15 has a median of 25

asked by Anonymous on February 17, 2019
2. ### computer science

9.10: Reverse Array Write a function that accepts an int array and the array’s size as arguments. The function should create a copy of the array, except that the element values should be reversed in the copy. The function should

asked by Cheryl on February 18, 2012
3. ### Math

Question: 1 The product of two positive numbers is 15876 and the large one is 9 times the other. Find the numbers. Question:2 Th sum of the squares of two positive whole numbers is 794. If one of the numbers is 13 , find the

asked by Noor on August 29, 2015
4. ### programming concepts

Input a list of positive numbers ( terminated by 0) into an array, find the mean ( average) of the numbers in the array, and output the result. Use a subprogram to input the numbers, a function to find the mean, and a sub-program

asked by marian on March 27, 2015
1. ### programming concepts

Input a list of employee names and salaries stored in parallel arrays. The sal-aries should be floating point numbers in increments of 100. For example, a salary of \$ 36,000 should be input as 36.0 and a salary of \$ 85,900 should

asked by marisol on December 13, 2014
2. ### programming

how do I write a pseudocode to find and display the largest list of positive numbers entered by the user. The user should indicate that he/she has finished entering numbers by enter a

asked by Jackie on August 28, 2011
3. ### programming

Using Raptor, create a condition loop that will ask the user for input of two numbers. The numbers should be added and the sum displayed. The loop should also ask the user if he or she wishes to enter two more numbers and perform

asked by Chris on November 28, 2012
4. ### Physics

15 At a particular location and time, sunlight is measured on a 1 m2 solar collector with an intensity of 500.0 W. If the peak intensity of this sunlight has a wavelength of 5.60 x 10-7 m, (a) What is the frequency of this light?

asked by hannah on February 9, 2012
1. ### econ

Suppose the production function for widgets is given by: Q = KL - 0.8K^2 - 0.2L^2 where Q represents the quantity of widgets produced, K represents the annual capital input and L represents annual labor input. (a) For K = 10, what

asked by Vincy on February 18, 2007
2. ### Programming

Input a list of positive numbers (terminated by 0) into an array, find the mean (average) of the numbers in the array, and output the result. Use a subprogram to input the numbers, a function to find the mean, and a subprogram to

asked by Darlene on September 21, 2011
3. ### pseudo code algorithm

Write a pseudo code algorithm which: • Determines the average weight of a person over a particular year. • For each month, your algorithm should input the person's weight for that month (a positive real number). Your algorithm

asked by husanpreet on April 27, 2016
4. ### ALGEBRA

List the conditions when the sum of a positive number and several negative numbers will be positive. Include an example that represents your answer.

asked by LOGAN on August 10, 2012