Question: Exercise 4 Develop a menu program to print the following between two given numbers inclusive: Sum of numbers Count of positive numbers strictly greater than

Exercise 4
Develop a menu program to print the following between two given numbers inclusive:
Sum of numbers
Count of positive numbers strictly greater than 0
Sum of positive numbers
Sample Input/Output 1
Enter n1:-2
Enter n2: 5
Press 1 for Sum, 2 for Count Positive, 3 for Sum Positive
Your Choice? 1
Sum =12
Sample Input/Output 2
Enter n1: -2
Enter n2: 5
Press 1 for Sum, 2 for Count Positive, 3 for Sum Positive
Your Choice? 2
Count of Positive =5
Sample Input/Outpore 3
Enter n1: -2
Enter n2: 5
Press 1 for Sum, 2 for Count Positive, 3 for Sum Positive
Your Choice? 3
Sum of Positive =15
Sample Input/Output 4
Enter n1:-2
Enter n2:5
Press 1 for Sum, 2 for Count Positive, 3 for Sum Positive
Your Choice? 5
Invalid Choice! Try again
Exercise 4 Develop a menu program to print the

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!