Answered step by step
Verified Expert Solution
Link Copied!

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 1000 and 'Moderate Volume' above 500 otherwise 'Low Volume'.
iurface area of the container
Depth of the container
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
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
image text in transcribed

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions