Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 1000 and Moderate Volume above 500 otherwise Low Volume.
areaSurfaceContainer =(radius of the container)2*3.141
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
1. Prints the column header
2. Readdata() : this function reads the data from file and stores the records in the list. And returns the list to
the main.
3. ComputeVolume (.....): will receive diameter and depth then computes and returns the volume as per above
4. PrintData():and categorize the volume and print the output
5. formulae.
6. Display the range of the volume
7. Display lowest five volumes

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

Ai And The Lottery Defying Odds With Intelligent Prediction

Authors: Gary Covella Ph D

1st Edition

B0CND1ZB98, 979-8223302568

More Books

Students also viewed these Databases questions

Question

Describe how to prevent and treat choking.

Answered: 1 week ago