The problem requires the use of parallel arrays, methods, reading the data from the file and the use of proper formatting techniques. This is a java program. You have been asked to write an analysis of the Mice population by town in New Jersey. The accompanying file contains data about each town. The format of the file is the name of the town, square miles and the number of Mice counted. You will need to produce the report as follow: Township Square Mice Mice Per Mice/Flea Flea Threat Name Miles Population Square Mile Coefficient Indicator Green Town 158.98 9865 62.05 0.39 ORANGE The Mice/Flea coefficient is calculated by dividing the number (Mice per square mile)/Square miles. The higher the coefficient the denser the Mice population and the greater the threat of Flea infestation to humans. The Flea threat is indicated by a color to indicate the danger to human for diseases such as Murine typhus disease as follows: Flea Threat Threat Indicator Less than equal to 0.35 RED Greater Than 0.35 and less than or equal to 0.50 ORANGE Greater Than 0.50 or less than or equal to 0.65 YELLOW Greater Than 0.65 or less than or equal to 0.75 GREEN Greater Than 0.75 BLUE You will create program to offer the user the ability to produce the report as show about in alphabetical order by township name or in size order by township square mile. The program will also allow the user to send the report to the screen, to a file or to both. You program must also allow the user to type in the name of the township to look up the above data for the selected township. An example of menu may be: New Jersey Health Services 1 - Mice Report by Town 2 - Mice Report by Town Size 3 - Town Look up 0 - Exit Your program must use parallel arrays or an array of objects to process the data. Do not use the class.
The problem requires the use of parallel arrays, methods, reading the data from the file and the use of proper formatting techniques. This is a java program.
You have been asked to write an analysis of the Mice population by town in New Jersey. The
accompanying file contains data about each town. The format of the file is the name of the town, square miles and the number
of Mice counted. You will need to produce the report as follow:
Township Square Mice Mice Per Mice/Flea Flea Threat
Name Miles Population Square Mile Coefficient Indicator
Green Town 158.98 9865 62.05 0.39 ORANGE
The Mice/Flea coefficient is calculated by dividing the number (Mice per square mile)/Square miles.
The higher the coefficient the denser the Mice population and the greater the threat of Flea
infestation to humans. The
Flea threat is indicated by a color to indicate the danger to human for diseases such as Murine
typhus disease as follows:
Flea Threat Threat Indicator
Less than equal to 0.35 RED
Greater Than 0.35 and less than or equal to 0.50 ORANGE
Greater Than 0.50 or less than or equal to 0.65 YELLOW
Greater Than 0.65 or less than or equal to 0.75 GREEN
Greater Than 0.75 BLUE
You will create program to offer the user the ability to produce the report as show about in
alphabetical order by township name or in size order by township square mile. The program will also
allow the user to send the report to the screen, to a file or to both. You program must also allow
the user to type in the name of the township to look up the above data for the selected township.
An example of menu may be:
New Jersey Health Services
1 - Mice Report by Town
2 - Mice Report by Town Size
3 - Town Look up
0 - Exit
Your program must use parallel arrays or an array of objects to process the data. Do not use the <Array> class.
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 6 images