Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

answer all of question one Question 1 Suppose we have a cylindrical tank with radius r(m) and height h(m). If the tank is being filled

answer all of question one

image text in transcribed

Question 1 Suppose we have a cylindrical tank with radius r(m) and height h(m). If the tank is being filled with crude oil at flow rate F(m3/min) for a period of time t (min), write a macro to determine whether it overflows the top. Please make sure that every entry is in the exact same cells. Provide the screenshot for steps followed and Develop VBA code. rigure 1: vater tank tilling tank 1. Input the following text into Cells A1 through A6:r,h,F,t, tank V, Water Tank V respectively. V=r2h. 2. In the C column type in the corresponding units as specified in the problem. (2) 3. Write a macro called "tank" to compute the volume of the cylindrical tank and the volume of crude oil filled into the tank from the values that are inputted into column B (e.g., B1 would be the radius value, B2 would be the height value). Have the macro display the values of the tank volume and the crude oil volume into B5 and B6. Develop VBA code 4. Also, if the Water Tank volume is greater than the tank volume writes the macro such that a message box will display some message such as "Warning: Tank Overflow, Evacuate the Area!" However, if the tank does not overflow have a message such as "Tank is not overflowing" Test out your macro with the following values r=5m,h=10m,F=15m3/min,t=120min. (8)

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

Mass And Heat Transfer Analysis Of Mass Contactors And Heat Exchangers

Authors: T. W. Fraser Russell, Anne Skaja Robinson, Norman J. Wagner

1st Edition

0521886708, 9780521886703

More Books

Students also viewed these Chemical Engineering questions

Question

5 9 8 .

Answered: 1 week ago

Question

Do most of the borrowers own homes, have a mortgage, or rent?

Answered: 1 week ago