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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education