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,

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
Get step-by-step solutions from verified subject matter experts
