Question: Computer language is C++ Answer saved Question 19 Married out of 25.00 Flag question A program is to loop: prompt the user for an integer,

Computer language is C++  Computer language is C++ Answer saved Question 19 Married out of
25.00 Flag question A program is to loop: prompt the user for

Answer saved Question 19 Married out of 25.00 Flag question A program is to loop: prompt the user for an integer, accept that integer, and display a message stating whether that integer is even or odd. The program should exit when the user enters a negative value. That negative value is not to be tested. The program should then state the number of integers that were processed, both even and odd, but not including the negative number that terminated the loop. A sample program run (with user input in bold): Welcome to Integer Test! Please enter an integer: 44 44 is even. Please enter an integer: 42 42 is even. Please enter an integer: 77 77 s odd. Please enter an integer: 0 O even Please enter an integer: -5 You tested 4 integers! Number of even integers: 3 Number of odd integers: 1 Thank you for playing Integer Test

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!