app development.
The class I am taking it Intro to app development.
Assignment is to choose one of two option and write a pseudocode for one.
I chose option 2 Monitoring System, here is whats needed:
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
Here is my pseudocode:
_______________________________________________________________
Function monitorHabitat():
DISPLAY monitoring options
Animal
Habitat
GET user input
IF user chooses Animal THEN
DISPLAY options
Lion
Tiger
Bear
Giraffe
IF user chooses Habitat THEN
DISPLAY options
Habitat
Penguin
Bird
Aquarium
End IF
GET user input
READ file (from above)
DISPLAY file contents (information about animal or habitat)
IF any string contains “*****” THEN
DISPLAY “Abnormality detected”
END IF
ASK user for additional options or “q” to quit
IF yes THEN
Return to Start
IF q THEN
END
END
_______________________________________________________________
Any advise on changes, additions, deletions, would be helpful. THANKS
"Looking for a Similar Assignment? Order now and Get 10% Discount! Use Code "Newclient"
