The objectives of this assignment are to reinforce and help teach:
In this lab you will develop a program that is playfully called the "Number Wizard." The Number Wizard is named such because it can look at a series of integers entered and then astound you and your friends by providing interesting insights into the integer series.
To help you sharpen your text output formatting skills, the output of the program is purposfully "chatty", taking on a persona of sorts.
Your program will ask the user how many integers are in the series (any positive number is allowed for that, ask again if the user enters a negative or 0) and then ask the user to enter the integers that make up the number series, one at a time, until the program has asked for all the integers in the series.
Lastly, your program will print out statistics about the integer series including:
Following are the instructions and you should follow them carefully:
public static final int MAX_INT = Integer.MAX_VALUE;
public static final int MIN_INT = Integer.MIN_VALUE;
Following is the desired output format:
Greetings!
I am the "Number Wizard" and I will astound you with my ability
to analyze an integer series.
How many integers are in your series? 15
Your integer # 1 is? 22
Your integer # 2 is? 18
Your integer # 3 is? 4
Your integer # 4 is? 17
Your integer # 5 is? 3
Your integer # 6 is? 3
Your integer # 7 is? 3
Your integer # 8 is? 19
Your integer # 9 is? -8
Your integer # 10 is? 0
Your integer # 11 is? 4
Your integer # 12 is? 4
Your integer # 13 is? 4
Your integer # 14 is? 4
Your integer # 15 is? 12
Thank you for your 15 entries.
The "Number Wizard" has reviewed your series and conjured the
following:
Maximum integer in series.................22
Minimum integer in series.................-8
Number of 0s in series....................1
Number of even integers in series.........10
Number of odd integers in series..........5
Average of all integers in series.........7.27
Total of all integers in series...........109
This lab must be AutoLab submitted to the instructor by 11:59pm on the Monday a week after it was assigned. Check AutoLab for the specific due date.