Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

r=Radius of cylinder; h=height of fish bowl; d=depth of fish ball; w=width of fish ball The user has a rectangle fish bowl with a solid

r=Radius of cylinder; h=height of fish bowl; d=depth of fish ball; w=width of fish ball

The user has a rectangle fish bowl with a solid cylinder in the middle, as displayed in the image attached. The height of the cylinder is the same as the height of the fish bowl. Write a program that will ask the user for the width, height and depth of the fish bowl, as well as the radius of the solid cylinder. These will be introduced as inches and your program needs to convert them to meters (1 inch = 0.0254 meters) Then, you need to compute the volume of the fish bowl that can be filled with water (volume of fish bowl - volume of the solid cylinder) in cubic meters. After you know how much water can be filled with water, your program needs to compute and display how much will that amount of water weigh (assume 1 cubic meter of water = 1,000 kg). Display the weight in pounds (1 pound = 1/2.2046 kg).

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

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

Students also viewed these Databases questions

Question

Compare the basic characteristics of Eurobonds and foreign bonds.

Answered: 1 week ago

Question

define EFFECTIVE PARTICIPATION

Answered: 1 week ago