Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Program Specifications: You are to write a program what will input whole numbers between -50 and 100.The program will input numbers until the user...

Program Specifications:

You are to write a program what will input whole numbers between -50 and 100. The program will input numbers until the user enters -999. The -999 is the stopping point. As the user enters a number, the program will output:

·      The sum of all numbers to that point.

·      The highest number seen to that point.

·      The lowest number seen to that point.

·      The average of all numbers entered to that point.

·      How many numbers have been entered to that point?

·      If the number entered is even or odd

·      If the number entered is prime or not prime

·      The screen will PAUSE so the user can view the output.

·      Once the user presses any key, the screen will clear and another number will be entered by the user.

Example Run of Program

The user types in an 8:

The sum of the numbers is 8.

The highest of the numbers is 8.

The lowest of the numbers is 8.

The average of the numbers is 8.

You have entered 1 number.

The number 8 is an even number.

The number 8 is NOT a prime number.

The user then types in 7:

The sum of the numbers is 15.

The highest of the numbers is 8.

The lowest of the numbers is 7.

The average of the numbers is 7.

You have entered 2 numbers.

The number 7 is an odd number.

The number 7 is IS a prime number.

The user then types in 13:

The sum of the numbers is 28.

The highest of the numbers is 13.

The lowest of the numbers is 7.

The average of the numbers is 9.

You have entered 3 numbers.

The number 13 is an odd number.

The number 13 is IS a prime number.

The user then types in -898:

The program outputs: Invalid number, must enter between -50 and 100, please try again:

The user then types in -999:

        The program outputs: Thanks for using my program, have a nice day.

My code:

I need help with average, transfer variables, sum, and the amount of number being used.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question