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 x=1
Declare Real y=3.4
Display x,"", y
Call changeUs (x,y
Display x,"", y
End Module
Module changeUs(Integer a, Real b)
Set a=0
Set b=0
Display a,"", b
End Module What will the following pseudocode program display?
Module main()
Declare Integer x=1
Declare Real y=3.4
Display x,"", y
Call changeUs(x, y)
Display x,"", y
End Module
Module changeUs(Integer Ref a, Real Ref b)
Set a=0
Set b=0.0
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 10.
Examine the following pseudocode module header, and then write a statement
that calls the module, passing 12 as an argument.
Module showValue(Integer quantity)
Look at the following pseudocode module header:
Module myModule(Integer a , Integer b , Integer c )
Now look at the following call to myModule:
Call myModule(3,2,1)
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 display(Integer arg1, Real arg2, String arg3)
Display "Here are the values:"
Display arg1,"", arg2,"", arg3
End Module
Algorithm Workbench Assume that the same program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!