As depicted in Fig. P2.27, a water tank consists of a cylinder topped by the frustum of
Question:
As depicted in Fig. P2.27, a water tank consists of a cylinder topped by the frustum of a cone. Develop a well structured function in the high-level language or macro language of your choice to compute the volume given the water level h (m) above the tank's bottom. Design the function so that it returns a value of zero for negative h's and the value of the maximum filled volume for h's greater than the tank's maximum depth. Given the following parameters, H1 = 10 m, r1 = 4 m, H2 = 5 m, and r2 = 6.5 m, test your function by using it to compute the volumes and generate a graph of the volume as a function of level from h = - 1 to 16 m.
Transcribed Image Text:
Н, н
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (14 reviews)
We must first identify the general formulas for the volumes For example for the full cylinder and fo...View the full answer
Answered By
Asim farooq
I have done MS finance and expertise in the field of Accounting, finance, cost accounting, security analysis and portfolio management and management, MS office is at my fingertips, I want my client to take advantage of my practical knowledge. I have been mentoring my client on a freelancer website from last two years, Currently I am working in Telecom company as a financial analyst and before that working as an accountant with Pepsi for one year. I also join a nonprofit organization as a finance assistant to my job duties are making payment to client after tax calculation, I have started my professional career from teaching I was teaching to a master's level student for two years in the evening.
My Expert Service
Financial accounting, Financial management, Cost accounting, Human resource management, Business communication and report writing. Financial accounting : • Journal entries • Financial statements including balance sheet, Profit & Loss account, Cash flow statement • Adjustment entries • Ratio analysis • Accounting concepts • Single entry accounting • Double entry accounting • Bills of exchange • Bank reconciliation statements Cost accounting : • Budgeting • Job order costing • Process costing • Cost of goods sold Financial management : • Capital budgeting • Net Present Value (NPV) • Internal Rate of Return (IRR) • Payback period • Discounted cash flows • Financial analysis • Capital assets pricing model • Simple interest, Compound interest & annuities