Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need Java code for my pseudocode on NetBean IDE 8.2 Option 2: Monitoring System As a zookeeper, it is important to know the activities of

Need Java code for my pseudocode on NetBean IDE 8.2

Option 2: Monitoring System

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

You are allowed to add extra animals, habitats, or alerts, but you may not remove the existing ones.

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
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

Zookeeper Pseudocode

Method main () {

Define options // Prompt user to enter an option

TO monitor an animal

TO monitor an animals habitat

EXIT

IF user wants to monitor an animal

PRINT which animal to monitor

IF user want to monitor habitat

PRINT which habitat to monitor

ELSE user exit

END IF

WHILE user to monitor which animal

DETAIL on lions

DETAIL on tigers

DETAIL on bears

DETAIL on giraffes

END WHILE

IF animal chosen

PRINT Animal:

IF name chosen

PRINT Animal Name:

IF age chosen

PRINT Animal Age:

IF health concern chosen

PRINT ***** Health Concern

IF feed schedule chosen

PRINT Feeding Schedule

UNTIL conditions

WHILE user to monitor habitat

DETAIL penguin habitat

DETAIL bird house

DETAIL aquarium

END WHILE

IF habitat chosen

PRINT Habitat:

IF temperature chosen

PRINT Temperature:

IF food source chosen

PRINT ***** Food Source:

IF cleanliness chosen

PRINT Cleanliness:

UNTIL condition

IF food sources not normal Range

PRINT on a new line Food sources need attention:

IF health Concerns not safe Conditions

PRINT on a new line Safety issue, needs attention immediate:

IF habitat Care not acceptable Range

PRINT on a new line Habitat needs to be cleaned:

IF temperature Range not Normal temperature

PRINT on a new line temperature is OK

ELSE

ELSE IF

RETURN

}

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

11. Discuss the four components of language.

Answered: 1 week ago

Question

2. Enrolling employees in courses and programs.

Answered: 1 week ago

Question

1. Communicating courses and programs to employees.

Answered: 1 week ago