need corrections so feel free to use it to guide you in your answer. Here is the task: Using Raptor build a flowchart code for calculating the radii, volumes, and surface areas of circumscribed and inscribed spheres of a cube with given side a, as input. results should be printed out for the given value of a. a. Values of a are read individually, using Input symbol. b. Values of a are read from a file. A minimum number of five values is sufficient, for a’s. [Hint: use the command Redirect_Input(Tru

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

Please write me a flowchart for the below task. I have attached the flowchart code for this task below but it might be missing something or need corrections so feel free to use it to guide you in your answer. Here is the task:

Using Raptor build a flowchart code for calculating the radii, volumes, and surface areas
of circumscribed and inscribed spheres of a cube with given side a, as input. results
should be printed out for the given value of a.
a. Values of a are read individually, using Input symbol.
b. Values of a are read from a file. A minimum number of five values is sufficient,
for a’s.
[Hint: use the command Redirect_Input(True), for reading your data from a file. The file should be written in plain
text format with each data point written on separate line. The data file should reside in the same folder as the Raptor
code file is.]

Cube Side a (given) Volume Surface
Inscribed sphere R=a/2 π a^3 /6 π a^2
Circumscribed sphere R=a √3/2 π a^3 √3 /2 3 π a^2

 

2. Using Raptor build a flowchart code for calculating the radii, volumes, and surface areas
of circumscribed and inscribed spheres of a cube with given side a, as input. results
should be printed out for the given value of a.
a. Values of a are read individually, using Input symbol.
b. Values of a are read from a file. A minimum number of five values is sufficient,
for a's.
[Hint: use the command Redirect_Input (True), for reading your data from a file. The file should be written in plain
text format with each data point written on separate line. The data file should reside in the same folder as the Raptor
code file is.]
Cube
Inscribed sphere
Circumscribed sphere
Side, a (given)
R = a/2
R = a√3/2
Volume
πα3 16
πα313/2
Surface
παζ
3πα2
Transcribed Image Text:2. Using Raptor build a flowchart code for calculating the radii, volumes, and surface areas of circumscribed and inscribed spheres of a cube with given side a, as input. results should be printed out for the given value of a. a. Values of a are read individually, using Input symbol. b. Values of a are read from a file. A minimum number of five values is sufficient, for a's. [Hint: use the command Redirect_Input (True), for reading your data from a file. The file should be written in plain text format with each data point written on separate line. The data file should reside in the same folder as the Raptor code file is.] Cube Inscribed sphere Circumscribed sphere Side, a (given) R = a/2 R = a√3/2 Volume πα3 16 πα313/2 Surface παζ 3πα2
Yes
Start
Clear Console
Redirect Input
("input.txt")
Redirect_Output
("output.txt")
Loop
End Of Inpu
t
HA
NO
GET a
R_Is-a/2
V_Is-Pi* a^3*1/
6
SA_Is Pi a^2
R_Csa* sqrt(3) *
(1/2)
V_Cs-Pia^3*
sqrt(3) * (1/2)
SA_Cs3 Pi* a^
2
PUT "Cube side
length: "+af
PUT "Inscribed sphere >>>
Radius: +R_is" | Volume:
"+V Is+" S.A.: "+SA Is
PUT "Circumscribed sphere >>>
Radius: "+R_Cs+ | Volume:
"+V Cs+" S.A.: "+SA Cs
PUT ""
End
Creates a single-line separator
Transcribed Image Text:Yes Start Clear Console Redirect Input ("input.txt") Redirect_Output ("output.txt") Loop End Of Inpu t HA NO GET a R_Is-a/2 V_Is-Pi* a^3*1/ 6 SA_Is Pi a^2 R_Csa* sqrt(3) * (1/2) V_Cs-Pia^3* sqrt(3) * (1/2) SA_Cs3 Pi* a^ 2 PUT "Cube side length: "+af PUT "Inscribed sphere >>> Radius: +R_is" | Volume: "+V Is+" S.A.: "+SA Is PUT "Circumscribed sphere >>> Radius: "+R_Cs+ | Volume: "+V Cs+" S.A.: "+SA Cs PUT "" End Creates a single-line separator
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
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,