Question: using System; class IntegerFacts { static void Main ( ) { int [ ] numbers = new int [ 1 0 ] ; int count
using System;
class IntegerFacts
static void Main
int numbers new int;
int count FillArraynumbers;
int highest, lowest, sum;
double average;
CalculateStatsnumbers count, out highest, out lowest, out sum, out average;
Console.WriteLine$"The numbers entered are: stringJoin numberscount;
Console.WriteLine$"The statistics are:";
Console.WriteLine$"The highest value is: highest;
Console.WriteLine$"The lowest value is: lowest;
Console.WriteLine$"The sum of the values is: sum;
Console.WriteLine$"The average is: average:F;
static int FillArrayint numbers
int count ;
while count
Console.Write$"Enter an integer or to stop: ;
if intTryParseConsoleReadLine out int value
if value
break;
numberscount value;
else
Console.WriteLineInvalid entry. Please try again.";
return count;
static void CalculateStatsint numbers, int count, out int highest, out int lowest, out int sum, out double average
if count
highest lowest sum ;
average ;
return;
highest lowest numbers;
sum ;
for int i ; i count; i
if numbersi highest
highest numbersi;
if numbersi lowest
lowest numbersi;
sum numbersi;
average doublesum count;
How do I add a pause function or fix it so that it shows the output without returning me to the code instead?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
