Question: Question 2 [ 2 5 marks ] Write a program that allows the user to enter integers between - 5 0 and 5 0 until

Question 2[25 marks]
Write a program that allows the user to enter integers between -50 and 50 until a sentinel value of -999 is read, which will stop the input process. The program should use different variables to count each category. The categories are the total number of integers entered, the number of negative integers, the number of positive integers, the number of integers outside the range (-50 to 50), the number of odd integers, and the number of even integers. Display all the counts with descriptive text labels.
Question 2 [ 2 5 marks ] Write a program that

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 Programming Questions!