Question: Algorithm Workbench Assume that the same program has a main module with the following variable declarations: Declare Integer age Declare Real income Declare String name
Algorithm Workbench Assume that the same program has a main module with the following variable
declarations:
Declare Integer age
Declare Real income
Declare String name
Write a statement that calls the display module and passes these variables to it
Design a module named getNumber, which uses a reference parameter variable to
accept an Integer argument. The module should prompt the user to enter a
number and then store the input in the reference parameter variable.
What will the following pseudocode program display?
Module main
Declare Integer
Declare Real
Display x y
Call changeUs
Display x y
End Module
Module changeUsInteger a Real b
Set
Set
Display b
End Module What will the following pseudocode program display?
Module main
Declare Integer
Declare Real
Display x y
Call changeUsx y
Display x y
End Module
Module changeUsInteger Ref a Real Ref b
Set
Set
Display a b
End Module
Design a module named timesten. The module should accept an Integer
argument. When the module is called, it should display the product of its
argument multiplied times
Examine the following pseudocode module header, and then write a statement
that calls the module, passing as an argument.
Module showValueInteger quantity
Look at the following pseudocode module header:
Module myModuleInteger a Integer b Integer c
Now look at the following call to myModule:
Call myModule
When this call executes, what value will be stored in a What value will be stored
in b What value will be stored in c
Assume that a pseudocode program contains the following module:
Module displayInteger arg Real arg String arg
Display "Here are the values:"
Display arg arg arg
End Module
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
