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

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 16:10, Arealbot
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
image
Engineering, 04.07.2019 18:10, yasminothman02
An air conditioning system consist of a 5 cm diameter pipe, operating at a pressure of 200 kpa. the air initially enters the pipe at 15°c with a velocity of 20 m/s and relative humidity of 80%. if the heat supply throughout the process is 960 w, determine the relative humidity and the temperature at the outlet
Answers: 3
image
Engineering, 04.07.2019 18:10, colin774
The higher the astm grain size number, the finer the gran is. a)-true b)-false
Answers: 2
image
Engineering, 04.07.2019 18:10, 0436500
Aturning operation is performed with following conditions: rake angle of 12°, a feed of 0.35 mm/rev, and a depth of cut of 1.1 mm. the work piece is aluminum alloy 6061 with t6 heat treatment (a16061-t6). the resultant chip thickness was measured to be 1.0 mm. estimate the cutting force, fc. use shear stress of 207 mpa and coefficient of friction on the tool face of 0.6.
Answers: 1
You know the right answer?
Find the error in the following pseudocode.

Module main()

Call raiseToPower(...

Questions in other subjects:

Konu
Mathematics, 16.07.2021 17:20
Konu
English, 16.07.2021 17:20