% inputs-2pts h-input('Enter the height of the float in meter '); The tank in a water...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
% inputs-2pts h-input('Enter the height of the float in meter '); The tank in a water tower has the geometry shown in the figure (two cylinders with different diameters). Inside the tank, there is a float that indicates the level of the water. Complete the MATLAB program that determines the volume of the water in the tank from the position (height h) of the float. The program asks the user to enter a value of h in m, and as output displays the volume of the water in m³. diameter 46 m Hints: Volume of a cylinder: Veylinder TR2H, R: radius, H: height r1= %. r2= ;% % Calculation of volume- 4pts. if h>__ || h<0 disp('ERROR, The height cannot be larger than 33 m V= Comp elseif V= fprintf('The volume of the water is %.3f cubic meter.\n',___) elseif end less than zero.') fprintf('The volume of the water is %.3f cubic meter.\n',_ 14 m + 19 m diameter 25 m % inputs-2pts h-input('Enter the height of the float in meter '); The tank in a water tower has the geometry shown in the figure (two cylinders with different diameters). Inside the tank, there is a float that indicates the level of the water. Complete the MATLAB program that determines the volume of the water in the tank from the position (height h) of the float. The program asks the user to enter a value of h in m, and as output displays the volume of the water in m³. diameter 46 m Hints: Volume of a cylinder: Veylinder TR2H, R: radius, H: height r1= %. r2= ;% % Calculation of volume- 4pts. if h>__ || h<0 disp('ERROR, The height cannot be larger than 33 m V= Comp elseif V= fprintf('The volume of the water is %.3f cubic meter.\n',___) elseif end less than zero.') fprintf('The volume of the water is %.3f cubic meter.\n',_ 14 m + 19 m diameter 25 m
Expert Answer:
Related Book For
Posted Date:
Students also viewed these accounting questions
-
A water tower has the geometry shown in the figure (the lower part is a cylinder with radius Rand height h, and the upper part is a half sphere with radius R). Determine the radius R if h = 10m and...
-
You are the support worker for a student with dyslexia. What resources might you be required to assemble or source? Give Six example.
-
Perform the indicated operations and simplify the result. Leave your answer in factored form. X x - 3 x + 1 x2 + 5x 24
-
On December 1, 2017, Cambridge Company, Ltd. had the account balances shown below. *(3,000 Ã £0.65) The following transactions occurred during December. Dec. 3 Purchased 4,000 units of...
-
On January 1, 2021, the Excel Delivery Company purchased a delivery van for $33,000. At the end of its five-year service life, it is estimated that the van will be worth $3,000. During the five-year...
-
Show the relationship between the work breakdown structure (WBS) and project costs.
-
Assume that the following quote for Merck, a NYSE stock, appeared on August 1, 2012 (Tuesday) on Yahoo! Finance (finance.yahoo.com/q?s=MRK&ql=0): Given this information, answer the following...
-
Light of 600.0 nm is incident on a single slit of width 6.5 m. The resulting diffraction pattern is observed on a nearby screen and has a central maximum of width 3.5 m. What is the distance between...
-
Omar is leading a weekly workshop series for his peers on how to be a successful student. Each week, he assigns a task for them to try and report back on next session. However, it seems like nobody...
-
Find the solution of the differential equation (x 1) + y = }, where y(0) = 1.
-
Sheldon's Shirt Emporium leased a piece of manufacturing equipment on December 31, 20X4, classified as a finance lease. The lease requires three lease payments of $90,000 due each December 31st, with...
-
Inventory...... Total assets. Current liabilities. Non-current liabilities. Net credit sales...... Cost of goods sold Interest expense. Income tax expense... Profit............... 81,000 590,000...
-
please I need the answers G the ins CO Excel File C39 1 2 3 50 4 5 6 7 00 8 edx Course | CS50's Intr... 9 10 11 12 13 14 15 16 17 18 A Login | C SENIOR C Home FIU FIU Car FTD Assign FTU FIUL M Inbox...
-
K The trial balance for LMO, Inc., at September 15, 2018, follows: (Click the icon to view the trial balance.) Cash Sep Paid salanes. Date Requirement 2. The four-column ledger accounts, together...
-
Question 3 (10 marks) - This question has two parts (5+5=10 marks) Charles Lorenzo is the owner of a party shop in Vermont. For the financial year ended 30th June 20XX, Charles provided the following...
-
Investment advisors estimated the stock market returns for four market segments: computers, financial, manufacturing, and pharmaceuticals. Annual return projections vary depending on whether the...
-
What is the amount of total interest dollars earned on a $5,000 deposit earning 6% for 20 years?
-
Write a user-defined function that sorts the elements of a matrix. For the function name and arguments, use B = matrixsort (A), where A is any size (m x n) matrix and B is a matrix of the same size...
-
Write a program that determines the change given back to a customer in a self-service checkout machine of a supermarket for purchases of up to $50. The program generates a random number between 0.01...
-
An RL circuit includes a voltage source vs, a resistor R = 1.8 n, and an inductor L = 0.4 H, as shown in the figure. The differential equation that describes the response of the circuit is L/R diL/dt...
-
A university is deciding between two meal plans. One plan charges a fixed fee of \($600\) per semester and allows students to eat as much as they want. The other plan charges a fee based on the...
-
Evaluate this statement: You are a natural athlete, an attractive person who learns easily and communicates well. Clearly, you can do everything better than your friends and acquaintances. As a...
-
You have waited 30 minutes in a line for the Star Tours ride at Disneyland. You see a sign that says, From this point on, your wait is 45 minutes. You must decide whether to remain in the line or to...
Study smarter with the SolutionInn App