Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Matlab A spherical water tank is elevated to a height H. The diameter of the tank is D_ The water supply pipe from the

Use Matlab

image text in transcribed

A spherical water tank is elevated to a height H. The diameter of the tank is D_ The water supply pipe from the tank is connected to the bottom of the tank and runs directly to the ground. The diameter of the supply pipe is D_ Write a user written function that expects (as the argument) scalar values for the two diameters, the tank height, and the water level (from the ground). The function must return the volume of water contained in the tank and supply pipe combined. The syntax of your function should be: TV (Dtank, Dpipe, Htank, Hwater) Test your code on for a tank diameter of 5 meters, a pipe diameter of 0.5 meters, a tank height of 50 meters, and a water height of 51 meters. In the command window type a = TV(5, 0.5, 50, 51). Check the result

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions