What does the program do? Explain the purpose of each of the following statements in the pseudocode: Declare, Input, Set, Write, Call. Also, identify the global variable(s) and the local variable(s) and explain how they are used differently. Main Module Declare FirstName As String Declare LastName As String Call Get Names Module Call Output Results Module End Program Get Names Module Write "Enter the person’s first name:" Input FirstName Write "Enter the person’s last name:" Input LastName Output Results Module Declare FullName As String Set FullName = FirstName + " " +
Can anyone answer this? I would very much appreciate it.
What exactly is there to explain? Where is your difficulty?
Just need the question at the top answered for the code under it.
Still doesn't tell me what your difficulty is!
I apologize if I'm not getting what you're not understanding about my post. I simply need the answer to this question: "What does the program do?" Here is the program: Main Module Declare FirstName As String Declare LastName As String Call Get Names Module Call Output Results Module End Program Get Names Module Write "Enter the person’s first name:" Input FirstName Write "Enter the person’s last name:" Input LastName Output Results Module Declare FullName As String Set FullName = FirstName + " " + Then, I need you to explain the purpose of each of the following statements in the pseudocode: Declare, Input, Set, Write, Call. Then, I need you to identify the global variable(s) and the local variable(s) in the code and explain how they are used differently. This is a project given to us in my Programming class and I just wanted the answers to the above problem.
"Just wanting the answers" is not what this site is for. Please be willing to work with others in figuring out exactly what you don't understand, and be prepared to engage in learning to help figure out problems yourself.
The program should be easy enough to follow, assuming you know english; it is basic pseudo. Declare means to "make a variable for the first time", input means have the user enter something. Set means to set a variable equal to " " (whatever follows the equals sign. Write means put this statement to the output, such as the screen. Call means to go to a function, and use the code in that function. A global variable means the whole program can access it. A local variable means only a certain part of the program can access it. This should help you on your way some more.
Thank you so much. That was very helpful.
Join our real-time social learning platform and learn together with your friends!