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 14:10
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
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
question
Engineering, 04.07.2019 18:10
Determine whether or not it is possible to compress air adiabatically from k to 140 kpa and 400 k. what is the entropy change during this process?
Answers: 3
question
Engineering, 04.07.2019 18:10
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
You know the right answer?
Find the error in the following pseudocode.

Module main()

Call raiseToPower(...
Questions
Questions on the website: 13722361