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

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter13: Structures
Section13.1: Single Structures
Problem 5E
icon
Related questions
Question

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

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning