C
Computers and Technology , 29.03.2022 04:26

Module main()
Call getCalories()
End Module
Module getCalories()
Declare Real calories
Display "How many calories are in the first food?"
Input calories
Declare Real calories
Display "How many calories are in the second food?"
Input calories
End Module
3. Find the potential error in the following pseudocode.
Module main()
Call squareNumber(5)
End Module
Module squareNumber(Integer Ref number)
Set number = number^2
Display number
End Module
4. Find the error in the following pseudocode.
Module main()

Module raiseToPower(Real value, Integer power)
Declare Real result
Set result = value^power
Display result
End Module
Call raiseToPower(2, 1.5)
End Module

Step-by-step answers: 0

Other questions on the subject: Computers and Technology

C
Computers and Technology, 18.08.2021 11:32
What is an embedded system? 2.For each of the following examples, determine whether this is an embedded system, explaining why or why not. a.The microprocessor controlling a cell phone an embedded systemb. The internal microprocessor controlling a disk drivec. PDA (Personal Digital Assistant)d. The computer controlling apacemaker in a person’s cheste.
Answers: 0
C
Computers and Technology, 18.08.2021 11:28
What is embedded system with examples
Answers: 0
C
Computers and Technology, 22.10.2021 21:29
Your computer freezes on a regular basis. You have checked your hard drive and you have sufficient space. You have not installed any software that could cause disruption. You have recently added more RAM so you realize that you have enough memory and that isn t causing the problem. Which of the following should you check next?
Answers: 3
C
Computers and Technology, 10.04.2021 04:05
Describing How to Access the Help Interface Leah wants to add an image to her updated presentation, so she wants to access the Help interface. What should Leah do to access the interface
Answers: 0

Popular questions today:

E
English, 15.05.2020 02:06
M
Mathematics, 14.04.2021 01:26
M
Mathematics, 02.11.2020 03:48