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

  1. 👍 0
  2. 👎 0
  3. 👁 390
  1. to find the average, just add up all the numbers and divide by how many there are.

    That means you have to count them as you read them.

    1. 👍 0
    2. 👎 4

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

    A monochromatic light source used in a diffraction experiment has a wavelength of 4.60 x 10- 7 m. (a) What is the frequency of this light? When you input large numbers such as those in this problem, then input the numbers with

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

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

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

    don break a 4x7 array into a 2x7 array and another array. what is the fact for dons second array? write a number sentence that models the relationship of the 4x7 array to the other two arrays.

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

  2. CIS/Visual Logic

    Design an application that accepts 10 numbers and displays them in descending order. Us an array to store the numbers and Bubble Sort to sort the numbers.

  3. Computers(Java Programming)

    Service Class: Lottery Write a Lottery class that simulates a lottery. The class should define an array of five integers named lotteryNumbers. The constructor should use the Random class (see the Java API) to generate a random

  4. programming Please respond

    input a list of positive numbers terminated by 0 into a array. find the mean of the numbers in the array and output the result. use a subprogram to input numbers a function to find the mean and a subprogram to output the result.

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