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 output the result.

  1. 👍 0
  2. 👎 0
  3. 👁 339
  1. In what language do you program, and could you post where you have a problem?

    1. 👍 0
    2. 👎 0

Respond to this Question

First Name

Your Response

Similar Questions

  1. 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

  2. Math

    Tony broke a larger array into 2 x 9 array and a 4 x 9 array. What did the larger array look like? Draw picture. Write a number sentence to show the relationship between the large array and the two smaller arrays.

  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

  4. 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

  1. 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

  2. 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

  3. 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?

  4. 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

  1. programming

    • (Workers) Name Hours per day John 5 6 4 7 8 Jack 7 3 5 7 4 Jill 2 9 4 3 5 James 6 6 2 4 5 Jacob 5 6 6 3 3 Jeremy 5 5 5 8 8 Jim 8 8 4 7 4 Jerry 6 4 5 6 7 Jamie 3 2 6 7 4 • If worker payment is $6.50 per hour, write methods to

  2. Programming

    Name Hours per day John 5 6 4 7 8 Jack 7 3 5 7 4 Jill 2 9 4 3 5 James 6 6 2 4 5 Jacob 5 6 6 3 3 Jeremy 5 5 5 8 8 Jim 8 8 4 7 4 Jerry 6 4 5 6 7 Jamie 3 2 6 7 4 If worker payment is $6.50 per hour, write methods to calculate:

  3. Math. NEED HELP ASAP.

    Im very confused on this. List all the numbers from the given set that are: a. Natural numbers, b. Whole numbers, c. Integers, d. Rational numbers, e. Irrational numbers, f. Real numbers. {-3, -2/5, 0, 0.3, ✓3, 5.8, ✓100} list

  4. Computer Programing

    Input a list of pepole ages from the user (terminated by 0) and find the avarage?

You can view more similar questions or ask a new question.