Question: Question #2: Write a script that prompts the user to enter numerical data until they click OK with an empty string input. The program displays

Question #2: Write a script that prompts the user to enter numerical data until they click "OK" with an empty string input. The program displays the following results: The total number of values entered. . The number of odd values entered. . The number of even values entered. The program should only accept positive integer values and ignore other values. If the user clicks cancel, then it should ignore all values entered and output zeroes for all results. Here is a sample to illustrate the expected behavior of your program if you enter 10, 15, 14.5, 21, A,-17 and then an empty string: This page says Please enter a number OK Cancel . You entered a total of 3 numbers. . You entered 2 odd numbers. . You entered 1 even numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
