Question: Without using Try and Catch. It is the inputting of non-integers and numbers less than 0 that have me stumped. Write a program called StatisticsCalculator

Without using Try and Catch. It is the inputting of non-integers and numbers less than 0 that have me stumped.

Write a program called StatisticsCalculator that calculates the mean (average) and standard deviation for a set of integer values entered by the user. Your program should

Prompt the user for the number of values, n. (n must be 1 or greater!) Output "You must enter an integer greater than 0" and reprompt the user if the number of values is not an integer value greater than 0.

Create an array to store the values.

Prompt the user for each value and store it in the array. Output "Invalid value" and reprompt if the user enters something other than an integer.

Calculate and output the mean of the values with 2 decimal places.

Calculate and output the standard deviation of the values (with 2 decimal places) using the formula given below:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!