Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 4 Table Q4 shows input, process and output of a program that a university student wants to create for secondary school students. An example

image text in transcribedimage text in transcribed

QUESTION 4 Table Q4 shows input, process and output of a program that a university student wants to create for secondary school students. An example of the output is illustrated in Figure Q4. Note: the bold word is the input given by user. The program should be able to repeat until the user choose to end or exit a) Using modular programming technique, write a C++ program to produce output as Figure Q4. [17 marks] b) Sketch a flowchart for the software package. [8 marks] Table 24 Input Process Output Length cube_volume - length Cube Length, Radius cylinder_volume=r * radius? - length Cylinder Radius Sphere_volume=**** **t* radius Sphere Display "Thank you" Quit CONSOLE OUTPUT - X Volume Calculator 1 - Cube 2 - Cylinder 3 - Sphere 4 Quit Insert your option>> 1 Insert the length: 2 The volume of the cube is 8 Volume Calculator 1 - Cube 2 - Cylinder 3 Sphere 4 - Quit Insert your option>> 2 Insert the length: 2 Insert the radius: 3 The volume of the cylinder is 56.556 Volume Calculator 1 - Cube 2 - Cylinder 3 - Sphere 4 - Quit Insert your option>> 3 Insert the radius: 3 The volume of the sphere is 84.834 Volume Calculator 1 - Cube 2 - Cylinder 3 - Sphere 4 - Quit Insert your option>> 4 Thank you NA

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

Determine the amplitude and period of each function.

Answered: 1 week ago