Question: Could you write this in C++? Write a program that prompts users to enter a sequence of positive integer numbers till a non-positive one (negative

Could you write this in C++?

Write a program that prompts users to enter a sequence of positive integer numbers till a non-positive one (negative or 0) is typed in.

Count and output the total number of even numbers; and then show the percentage of even number.

Save all the input integers (including both even and odd number) whose values are between 100 and 200 into the DYNAMIC array. The size of the DYNAMIC array is 100 (you need to take care of out-of-bound issue). At the end compute the average of integers whose value is between 50 and 150 (you need to take care of divided-by-0 issue).

Could you include a flow chart and allocation and releasing of dynamic array?

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!