subject
Engineering, 22.02.2020 00:39 laurenec49

Find the error in the following pseudocode.

Module main()

Call raiseToPower(2, 1.5)

End Module

Module raiseToPower(Real value, Integer power)

Declare Real result

Set result = value^power

Display result

End Module

2. Find the error in the following pseudocode.

Module main()

Call getNames()

End Module

Module getNames()

Declare Sting name

Display "What is the name of the first student?"

Input name

Declare String name

Display "What is the name of the second student?"

Input name

End Module

Find the potential error in the following pseudocode.

Module main()

Call setDouble(10.5)

End Module

Module setDouble(Int Ref num)

Set num = num*2

Display num

End Module

Find the error in the following pseudocode.

Module main()

Declare Integer month

Call getMonth()

Display "Your birthday is in month ", month, "."

End Module

Module getMonth()

Display "Enter the month of your birthday"

Input birthMonth

End Module

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 19:30
When using the ohmmeter function of a digital multimeter, the leads are placed in what position relative to the component being tested? a. parallel b. control c. series d. line
Answers: 3
question
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26Β°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70Β°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
Answers: 1
You know the right answer?
Find the error in the following pseudocode.

Module main()

Call raiseToPower(...
Questions
question
Physics, 12.02.2021 23:30
question
Mathematics, 12.02.2021 23:30
question
English, 12.02.2021 23:30
Questions on the website: 13722360