Question: Write an application that can be used to test input values to ensure they fall within an established range. Use an array to keep a

Write an application that can be used to test input values to ensure they fall within an established range. Use an array to keep a count of the number of times each acceptable value was entered. Acceptable values are integers between 0 and 10.

Your program should display the total number of valid values inputted as well as the number of invalid entries. Show not only the number of values outside the range, but also the number of non-numeric invalid values entered. For your final display, output a list of distinct valid entries and a count of how many times that entry occurred. Provide your listing in a tabular format, with values number aligned. Do not display the value unless it was entered.

Use the following test data:

7 2 4 2 q 87 4 6 4 4 7

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 Systems Analysis Design Questions!