Texts: Python and Pseudocode
Proper parameter passing is the key to a correct, complete solution!
Design a modular program that allows the user to enter two words as separate inputs, one a noun and the other a verb. Then display the following three messages: "noun verb is a simple sentence," "noun is the subject," and "verb is the verb." where noun and verb are the user's inputs. For example, if "dog" and "barks" are entered as the inputs, the following output is to be produced: "dog barks is a simple sentence," "dog is the subject," and "barks is the verb."
Use the main module for getting user input. Then have the main module call other modules to do the work. Develop three modules in addition to main, one for each of the output messages noted above. Use proper parameter passing to provide each output module the input value or values it needs. The noun and verb values must be passed to the simple sentence module as separate arguments. Do not pass an input value to a module that does not need it.
Main:
All of the input instructions must appear in the Main.
Display Sentence:
Display Subject:
Display Verb:
Upload the pseudocode design, Flowgorithm design (fprg file), and the Python.py file.