Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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

c++
image text in transcribed
image 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 Ch program to produce output as Figure Q4 [17 marks) b) Sketch a flowchart for the software package. [8 marks] Table 04 Input Process Output Length cube_volume - length Cube Length, Radius cylinder_volume-radius.length cylinder Radius Sphere_volume radius Sphere Display "Thank you 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 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 Figure 04

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_2

Step: 3

blur-text-image_3

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

More Books

Students explore these related Databases questions