Answer the following questions in photos

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question

Answer the following questions in photos

g, and Output
6. Find the error in the following pseudocode.
Declare Real pi
Set 3.14159265 = pi
Display "The value of pi is "
pi
Transcribed Image Text:g, and Output 6. Find the error in the following pseudocode. Declare Real pi Set 3.14159265 = pi Display "The value of pi is " pi
7. Find the error in the following pseudocode.
Constant Real GRAVITY = 9.81
Display "Rates of acceleration of an object in free fall:"
Display "Earth: ", GRAVITY,
Set GRAVITY = 1.63
%3D
" meters per second every second."
%3D
GRAVITY,
meters per second every second."
%3D
%3D
Display "Moon: ",
Transcribed Image Text:7. Find the error in the following pseudocode. Constant Real GRAVITY = 9.81 Display "Rates of acceleration of an object in free fall:" Display "Earth: ", GRAVITY, Set GRAVITY = 1.63 %3D " meters per second every second." %3D GRAVITY, meters per second every second." %3D %3D Display "Moon: ",
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT