subject

Create a program named IntegerFacts whose Main() method declares an array of 10 integers.

Call a method named FillArray to interactively fill the array with any number of values up to 10 or until a sentinel value (999) is entered. If an entry is not an integer, reprompt the user.

Call a second method named Statistics that accepts out parameters for the highest value in the array, lowest value in the array, sum of the values in the array, and arithmetic average.

In the Main() method, display all the statistics in the following format: Note: The inputs were 1, 11, and 999

The array has 2 values
The highest value is 11
The lowest value is 1
The sum of the values is 12
The average is 6
using static System. Console;
class IntegerFacts
{
static void Main()
{
// Write your main here
}

public static int FillArray(int[] array)
{
}
public static void Statistics(int[] array, int els, out int high, out int low, out int sum, out double avg)
{
}

}

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:00, EinsteinBro
Kyle wants to access his school’s home page. how can he do this?
Answers: 1
image
Computers and Technology, 22.06.2019 22:30, raiapowell
I'll mark brainliest if answered right! with which feature or menu option of a word processing program can you make an image like this? you can get this image using the option of a word processing program.
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, bri2008
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
image
Computers and Technology, 23.06.2019 20:30, kaylee2828
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
You know the right answer?
Create a program named IntegerFacts whose Main() method declares an array of 10 integers.

Questions in other subjects:

Konu
Mathematics, 05.05.2021 19:30