Wendy P.
asked 06/04/20NEED HELP ASAP!!!!
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
verb is the verb
... where noun and verb are the user’s inputs.
All input instructions must appear in the main module and the only output instructions allowed in the main are for prompts.
Develop three additional modules, one for the each of the output messages noted above. Use proper parameter passing to provide each output module the input value or value s it needs. Do not pass an input value to a module that does not need it.
1 Expert Answer

Patrick B. answered 06/04/20
Math and computer tutor/teacher
using namespace std;
#include <iostream>
void OutputSentence( char * noun, char * verb)
{
cout << noun << " " << verb << " is a simple sentence." << endl;
}
void OutputSubject( char * noun)
{
cout << noun << " is the subject. " << endl;
}
void OutputVerb( char * verb)
{
cout << verb << " is the verb. " << endl;
}
int main()
{
char noun[125];
char verb[25];
cout << "Please input the noun :>";
cin >> noun;
cout << "Please input the verb :>";
cin >> verb;
OutputSentence( noun, verb);
OutputSubject(noun);
OutputVerb(verb);
}
Wendy P.
I need this formatted in pseucode, as if it were to be put onto a Microsoft Word document.06/05/20
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Wendy P.
I need this formatted in pseucode, as if it were to be put onto a Microsoft Word document.06/05/20