Question: I need help creating this Java file. I have tried everything and cant get the correct output. Here are the assignment instructions, text files and

I need help creating this Java file. I have tried everything and cant get the correct output. Here are the assignment instructions, text files and my approved pseudocode. Can someone please help creating a Java file using the instructions, text file and pseudocode?

INSTRUCTIONS:

As a zookeeper, it is important to know the activities of the animals in your care and to monitor their living habitats. Create a monitoring system that does all of the following:

Asks a user if they want to monitor an animal, monitor a habitat, or exit

Displays a list of animal/habitat options (based on the previous selection) as read from either the animals or habitats file o Asks the user to enter one of the options

Displays the monitoring information by finding the appropriate section in the file Separates sections by the category and selection (such as Animal - Lion or Habitat - Penguin)

Uses a dialog box to alert the zookeeper if the monitor detects something out of the normal range (These will be denoted in the files by a new line starting with *****. Do not display the asterisks in the dialog.)

Allows a user to return to the original options

TEXT FILES:

Animals.txt

Details on lions

Details on tigers

Details on bears

Details on giraffes

Animal - Lion Name: Leo

Age: 5

*****Health concerns: Cut on left front paw

Feeding schedule: Twice daily

Animal - Tiger

Name: Maj

Age: 15

Health concerns: None

Feeding schedule: 3x daily

Animal - Bear

Name: Baloo

Age: 1

Health concerns: None

*****Feeding schedule: None on record

Animal - Giraffe

Name: Spots

Age: 12

Health concerns:

None Feeding schedule: Grazing

Habaitats.txt

Details on penguin habitat

Details on bird house

Details on aquarium

Habitat - Penguin

Temperature: Freezing

*****Food source: Fish in water running low

Cleanliness: Passed

Habitat - Bird

Temperature: Moderate

Food source: Natural from environment

Cleanliness: Passed

Habitat - Aquarium

Temperature: Varies with output temperature

Food source: Added daily

*****Cleanliness: Needs cleaning from algae

Pseudocode

function doMonitoringSystem

RUN script

DISPLAY Welcome, Would you like to monitor an animal, monitor a habitat or exit? Choose A, H Or E = userCat

READ user input

IF userCat is A

DISPLAY Would you like details on Lions, Tigers, Bears Or Giraffes? Choose L, T, B or G = userAnimal

IF userAnimal = L

DISPLAY Animal Lion Name: Leo Age: 5

HEALTH CONCERNS: CUT ON LEFT FRONT PAW

Feeding schedule: Twice daily

IF userAnimal = T

DISPLAY Animal Tiger

Name: Maj

Age: 15

Health concerns: None

Feeding schedule: 3x daily

IF userAnimal = B

DISPLAY Animal Bear

Name: Baloo

Age: 1

Health concerns: None

FEEDING SCHEDULE: NONE ON RECORD

If userAnimal = G

DISPLAY Animal Giraffe

Name: Spots

Age: 12

Health concerns: None

Feeding schedule: Grazing

ELSE return to userAnimal input

IF userCat = H

DISPLAY Welcome, Would you like details on the penguin habitat, bird house or aquarium? Choose P,B or A = userHab

IF userHab = P

DISPLAY Habitat = Penguin

Temperature: Freezing

FOOD SOURCE: FISH IN WATER RUNNING LOW

Cleanliness: Passed

IF userHab = B

DISPLAY Habitat Bird

Temperature: Moderate

Food source: Natural from environment

Cleanliness: Passed

IF userHab = A

DISPLAY Habitat Aquarium

Temperature: Varies with output temperature

Food source: Added daily

*****CLEANLINESS: NEEDS CLEANING FROM ALGAE

ELSE return to userHab input

IF userCat = E

DISPLAY Good Bye !!!

EXIT

IF userCat = anything else

RETURN to userCat input

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 Databases Questions!