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: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
1. [after §2.7] Five Kingdoms- Pseudocode **:
The following rules describe how to categorize living organisms into one of five kingdoms – Monera, Protoctista, Plantae, Fungi, Animalia.
a) If the organism has no cell nucleus, then it’s in the Monera kingdom (more commonly known as bacteria).
b) If the organism does not fit into the above category, and it’s single celled, then it’s in the Protoctista kingdom (molds and algae).
c) If the organism does not fit into either of the above categories, and it’s photosynthetic, then it’s in the Plantae kingdom (plants).
d) If the organism does not fit into any of the above categories, and it has a nervous system, then it’s in the Animalia kingdom (animals).
e) Otherwise, if the organism does not fit into any of the above categories, it’s in the Fungi kingdom (fungus).
Provide a pseudocode algorithm that uses this categorization scheme to determine the kingdom for a particular living organism. More specifically, read in characteristics as needed (like whether the organism has a cell nucleus, whether it is single celled, etc.) that help to determine which kingdom a particular living organism fits into and then print the organism’s kingdom.
Hint: Use a series of nested “if, else” statements. Inside each else section, prompt for an additional characteristic and then start the next “if, else” statement. Here’s the first part of the solution:
print “cell nucleus? (y/n): ”
input cellNucleus
ifcellNucleus equals “n”
print “Monera”
else
print “single celled? (y/n): ”
inputsingleCelled
ifsingleCelled equals “y”
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll