Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The point of this assignment is to get practice using numeric expressions in assignment statements. You will practice getting input, declaring and initializing floating point

The point of this assignment is to get practice using numeric expressions in assignment statements. You will practice getting input, declaring and initializing floating point variables, doing arithmetic, and formatting printed output.
Complete the following:
The manager of a pet store wants a program that displays the number of gallons of water in a rectangular aquarium, given the aquarium's length, width and height (fyi, there are 231 cubic inches in a gallon). The program will calculate the number of gallons given the user entry of length, width and height (cubic inches = length ?** width ?** height, and gallons = cubic inches ?231). Display the result, the number of gallons. Use float data and display the result with proper formatting with 2 decimal places.
Test it with input values of 20.5,10.5 and 12.5 which should produce the output 11.65, because 20.5**10.5*12.5231=11.65.
Turn in: you will turn in pseudocode, flowchart, and python code for this assignment.
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

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

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions