Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

Write a program which will take the volume of the cube as its input. The program should calculate the area of a square whose side is half the length of the side of the cube. The program should print the area of the square.

OpenStudy (anonymous):

@eliassaab

OpenStudy (anonymous):

what do you know about the volume of a cube?

OpenStudy (anonymous):

A cube, we know, has the same measurement for all sides. So in order to calculate volume, we would cube one of the sides. Now to reverse that to extract the length of a side from a volume of a cube we take the cube root of the volume. We then take this length, half it, and square it. Then format the output and print to screen.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!