subject

Create a program named IntegerFacts whose Main() method declares an array of ten integers. Call a method named FillArray to interactively fill the array with any number of values up to ten or until a sentinel value (999) is entered. If an entry is not an integer, re-prompt 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: 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 The inputs were 1, 11, and 999 Grading When you have completed your program, click the Submit button to record your score.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Write a program that uses a widgetviewer object to do the following: generate two random integers between 1 and 9 (inclusive). name one of them x, the other y. display them to the user using jlabel objects. create a jlabel object displaying the text "enter an operation number." create a jtextfield for the user's input. create a jbutton displaying the text "press here when you've entered your operation." use addandwait to add it to the widgetviewer object. when the user clicks the jbutton, evaluate operation in the following order to determine the one and only mathematical operation to perform on x and y. use a jlabel to display the result. if operation is between 1 and 10 inclusive, add x and y. if operation is evenly divisible by 4, subtract y from x. if operation is evenly divisible by 5, use integer division to divide y into x. if operation is an even number, use floating point division to divide y into x. if none of the other tests on operation apply, multiply x and y. note: operation can be negative or zero.
Answers: 2
question
Computers and Technology, 22.06.2019 08:00
Aplan to budget time for studying and activities is referred to as a study routine. study habits. study skills. a study schedule.
Answers: 1
question
Computers and Technology, 24.06.2019 01:10
Create a program that will take in a single x and y coordinate as the origin. after the input is provided, the output should be all of the coordinates (all 26 coordinates read from the โ€œcoordinates.jsonโ€ file), in order of closest-to-farthest from the origin.
Answers: 1
question
Computers and Technology, 24.06.2019 16:30
Which program can damage your computer?
Answers: 1
You know the right answer?
Create a program named IntegerFacts whose Main() method declares an array of ten integers. Call a me...
Questions
question
Chemistry, 25.02.2022 04:50
question
Mathematics, 25.02.2022 04:50
question
Social Studies, 25.02.2022 04:50
Questions on the website: 13722362