The figure below shows a tank made of: A conical part (reversed cone) with base...
Fantastic news! We've Found the answer you've been seeking!
Question:
![The figure below shows a tank made of: A conical part (reversed cone) with base radius=R and height=R . A](https://dsd5zvtm8ll6.cloudfront.net/questions/2023/12/658c3b2132016_1703778944796.jpg)
Transcribed Image Text:
The figure below shows a tank made of: ■ A conical part (reversed cone) with base radius=R and height=R A cylinder with height=2R and base radius=R. If the liquid level is quite low, in the conical part, the volume is simply the conical volume of liquid. In this case the radius of the filled part of the cone is simply equal to d. If the liquid level is somewhere in the cylindrical part, the total volume of liquid includes the filled conical part and the partially filled cylindrical part. Write a program that prompts for and reads: ■ the values of d (liquid level) and R (cylinder radius). ■ It then computes and displays the volume of the liquid in the tank. Note that the value of d is between 0 and 3R. R has to be positive. • If d exceeds 3R, your program displays "Tank overfilled" message and stops. If d <=0 or R <=0, it displays Wrong input message, as shown below, and stops. If d is between 0 and R, then the filled part is a reversed cone with base radius = d. volume of cylinder = r²h where h-filled height of cylinder volume of cone = r²h Sample run 1 Enter radius of the cylinder: -4.5 Radius must be positive 2R R Activate Wi Go to Settings The figure below shows a tank made of: ■ A conical part (reversed cone) with base radius=R and height=R A cylinder with height=2R and base radius=R. If the liquid level is quite low, in the conical part, the volume is simply the conical volume of liquid. In this case the radius of the filled part of the cone is simply equal to d. If the liquid level is somewhere in the cylindrical part, the total volume of liquid includes the filled conical part and the partially filled cylindrical part. Write a program that prompts for and reads: ■ the values of d (liquid level) and R (cylinder radius). ■ It then computes and displays the volume of the liquid in the tank. Note that the value of d is between 0 and 3R. R has to be positive. • If d exceeds 3R, your program displays "Tank overfilled" message and stops. If d <=0 or R <=0, it displays Wrong input message, as shown below, and stops. If d is between 0 and R, then the filled part is a reversed cone with base radius = d. volume of cylinder = r²h where h-filled height of cylinder volume of cone = r²h Sample run 1 Enter radius of the cylinder: -4.5 Radius must be positive 2R R Activate Wi Go to Settings
Expert Answer:
Answer rating: 100% (QA)
Step 1 SOLUTION I have solved this problem in python code with comments and screenshot for easy unde... View the full answer
Related Book For
Numerical Methods For Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale
Posted Date:
Students also viewed these programming questions
-
Example of constructive feedback on healthy-conflict response. Regarding staff cutting in a company . As part of your feedback, identify at least two leadership or professional communication skills...
-
Figure shows a cylindrical tank with a conical base. If the liquid level is quite low in the conical part, the volume is simply the conical volume of liquid. If the liquid level is midrange in the...
-
A cone with base radius R and height h is located on a horizontal table. A horizontal uniform field E penetrates the cone, as shown in Figure P24.8. Determine the electric flux that enters the...
-
1) What are the implications of CICs approach to staffing project teams? Is the company using them as training grounds for talented fast-trackers or as dumping grounds for poor performers? 2) How...
-
The accompanying scatterplot shows observations on hemoglobin level, determined both by the standard spectrophotometric method (y) and by a new, simpler method based on a color scale (x) (A Simple...
-
Many SMP (Symmetric multiprocessing) systems have different level of caches; one level is local to each processing core, and another level is shared among all processing cores. Answer the following...
-
Present an overview of recruitment and selection. LO.1
-
Part A The common stock of Wilson, Inc. is owned by 20 stockholders who live in several states. Wilsons financial statements as of December 31, 1994 were audited by Doe & Co., CPAs, who rendered an...
-
Presented below is the Trial Balance and Adjusted Trial Balance for Whispering Winds Company on December 3 1 . WHISPERING WINDS COMPANY Trial Balance December 3 1 \ table [ [ , Before...
-
AKEI is an elite desk manufacturer. At the start of May 2015, the following budgeted unit amounts (based on a standard costing system) related to its manufacture of executive desks (made out of oak):...
-
could somebody help me to deal this question? that is about option strategy. QUESTION 1 [13 MARKS] The condor is a specialised position that involves taking positions in options on the same...
-
Because her insurance agency is in a lakeside community, Adriana always asks her homeowners clients what boating activities they engage in, and she is sure to add the Watercraft endorsement...
-
1. Among all assumptions in CVP analysis, which one do you think is the most critical? Explain. 2. How will you change the cost-volume-profit analysis if the assumption (you identify in the previous...
-
Construct a confidence interval for p-P2 at the given level of confidence. x =26, n =229, x2 = 31, n = 302, 95% confidence The researchers are % confident the difference between the two population...
-
AP 9-2 (Moving Expenses) In May of the current year, following a dispute with her immediate superior, Ms. Elaine Fox resigned from her job in Halifax and began to look for other employment. She was...
-
Minimize the number of states in the following DFA: A b b a a a b b b E B a a
-
You are currently only invested in the Natasha Fund (aside from risk-free securities). It has an expected return of 13% with a volatility of 19%. Currently, the risk-free rate of interest is 3.8%....
-
The National Collegiate Athletic Association (NCAA) and the National Federation of State High School Associations (NFHS) set a new standard for non-wood baseball bats. Their goal was to ensure that...
-
As compared to the models from Probs. 20.4 and 20.5, a somewhat more sophisticated model that accounts for the effect of both temperature and chloride on dissolved oxygen saturation can be...
-
Employ the Newton-Raphson method to determine a real root for (x) = - 1 + 5.5x 4x2 + 0.5x3 using initial guesses of (a) 4.52 and (b) 4.54. Discuss and use graphical and analytical methods to explain...
-
The trajectory of a ball can be computed with Where y = the height (m), ? 0 = the initial angle (radians), ? 0 = the initial velocity (m/s), g = the gravitational constant = 9.81 m/s 2 , and y 0 =...
-
When someone rates a group at 10 on the ANES feeling thermometer, thats a pretty serious sign of dislike. I make the claim that the population of African American, female strong Democrats aged 17 to...
-
what the Central Limit Theorem is and why it is important
-
how to build and interpret confidence intervals
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App