[solved]-Ve Issues Getting Logic Repeat Summations Aren T Working Properly Help Appreciated Done C Q39024178
I’ve been having issues getting the logic to repeat. Mysummations aren’t working properly. Any help is appreciated. Thisis done in C Programming language. Thank you inadvance! The instructions are below.
You are to write a program what will input whole numbers between-50 and 100. The program will input numbers until theuser enters -999. The -999 is the stopping point. As theuser 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 andanother number will be entered by the user.
Example output:
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 primenumber.
The user then types in 7:
The sum of the numbers is 17.
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 primenumber.
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:
Theprogram outputs: Thanks for using my program, have a nice day.
Expert Answer
Answer to I’ve been having issues getting the logic to repeat. My summations aren’t working properly. Any help is appreciated. Thi… . . .
OR

