Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Introduction: A transportation company carries cylinders of different diameters and depths respectively, so it has requested you to compute the volume of the cylinders and
Introduction:
A transportation company carries cylinders of different diameters and depths respectively, so it has requested you to compute the volume of the cylinders and categorize them as 'High Volume', if the volume is above and 'Moderate Volume' above otherwise 'Low Volume'.
iurface area of the container
Depth of the container
areaSurfaceContainer radius the container
volume depthOfThecontainer areaSurfaceContainer
A file collection.txt contains different diameters of the cylindrical vessels and their depths. You are asked to compute the volume using above formulae. In order to develop the solution you may download Collection.txt from moodle.
It must include the following functions and tasks:
main: which calls all other functions and does the following tasks
Prints the column header
Readdata : this function reads the data from file and stores the records in the list. And returns the list to the main.
ComputeVolume : will receive diameter and depth then computes and returns the volume as per above
PrintData:and categorize the volume and print the output
formulae.
Display the range of the volume
Display lowest five volum
Note : try to not use advanced structures
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started