The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 6 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
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
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly