expand icon
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
Exercise 9

Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter a value for one edge of a cube. The program calculates the surface area of one side of the cube, the surface area of the cube, and its volume. The program outputs all the results.

Step-by-step solution
Verified
like image
like image

Step 1 of 3

Pseudocode Explanation:

• Start

• Read the input value of sideOfCube

• Compute the sideSurfaceArea = sideOfCube * sideOfCube

• Compute the SurfaceAreaCube = 6 * sideSurfaceArea’

• Compute the volume = sideOfCube * sideOfCube * sideOfCube

• Stop


Step 2 of 3


Step 3 of 3

close menu
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
cross icon