A tank is to be constructed to hold 500 cubic meters of oil. The tank is...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
"A tank is to be constructed to hold 500 cubic meters of oil. The tank is cylindrical in shape (including the base) and the top is a cone with a height equal to its radius. The cost of materials and labor is $300 per square meter for the cylindrical portion and $400 per square meter for the conical top. Write a Python program that calculates the height of the cylinder for a given radius (input) and with the rounded height value, calculates the total cost of constructing the tank. Starting with a radius of 4.0 meters and incrementing by small values (0.05), run your program multiple times, up to 4.30, to determine the dimensions of the tank that will have the lowest cost. Formulas to use: 1. Area of a section of the cylinder = 2trh+tr^2 2. Volume of the conical top = (nr^3)/3 3. Volume of the cylindrical section = nr^2h Write a Python program that uses the following formulas. Present the values in the tables on the next page. If the result gives an error, write ERROR. 2) Area = πR^2 1. Y =-B ±sqrt(B^2-4AC)/2A 2. P=[A+B+C/3ABC] Use ceil() 3. X2 [(1+X1/N1)^N1/N2 - 1] N2 4. dayCode= (x+ [x-1/4]-[x-1/100] + [x-1/400]) mod 7 Use floor()" "A tank is to be constructed to hold 500 cubic meters of oil. The tank is cylindrical in shape (including the base) and the top is a cone with a height equal to its radius. The cost of materials and labor is $300 per square meter for the cylindrical portion and $400 per square meter for the conical top. Write a Python program that calculates the height of the cylinder for a given radius (input) and with the rounded height value, calculates the total cost of constructing the tank. Starting with a radius of 4.0 meters and incrementing by small values (0.05), run your program multiple times, up to 4.30, to determine the dimensions of the tank that will have the lowest cost. Formulas to use: 1. Area of a section of the cylinder = 2trh+tr^2 2. Volume of the conical top = (nr^3)/3 3. Volume of the cylindrical section = nr^2h Write a Python program that uses the following formulas. Present the values in the tables on the next page. If the result gives an error, write ERROR. 2) Area = πR^2 1. Y =-B ±sqrt(B^2-4AC)/2A 2. P=[A+B+C/3ABC] Use ceil() 3. X2 [(1+X1/N1)^N1/N2 - 1] N2 4. dayCode= (x+ [x-1/4]-[x-1/100] + [x-1/400]) mod 7 Use floor()"
Expert Answer:
Answer rating: 100% (QA)
question1 Heres a Python program that calculates the height of the cylinder for a given radius and t... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
A water tank consists of a cylindrical part of radius r and height h and a hemispherical top. The tank is to be constructed to hold 600 m 3 when filled. The surface area of the cylindrical part is...
-
A water tank consists of a cylindrical part of radius r and height h, and a hemispherical top. The tank is to be constructed to hold 500 m 3 of fluid when filled. The surface area of the cylindrical...
-
Suppose you have a consumer that calls the lion() method within a Lion service. You have four distinct modules: consumer, service locator, service provider, and service provider interface. If you add...
-
Explain the rationale behind the test statistic for the Mann Whitney test?
-
Evaluate the following limits. n is a positive integer. x" 1 lim 1 1 "
-
As a gambling facility, MGM Desert Inn, Inc., regularly holds and executes negotiable instruments. During a period of two months, patron William E. Shack Jr. entered MGM and delivered eight checks to...
-
Janus Products, Inc., is a merchandising company that sells binders, paper, and other school supplies. The company is planning its cash needs for the third quarter. In the past, Janus Products has...
-
India's trade deficit has risen by almost 88% in financial year 2022. While total exports increased, imports too soared to a great extent. Analyze the impact of this trade deficit on the balance of...
-
What is Jacqueline and Keiths monthly mortgage payment prior to the refinancing?
-
A new applicant, age 45, is applying for a loan. Using the table below, what is the estimated probability that the loan will be approved? k = 4. Record Age Marital Loan Risk Default 1 34 Other ps...
-
EXCEL PART: Submission format: Excel File ABC Corporation has a machine that requires repairs or should be replaced. ABC has evaluated the two options and calculated the cash flows resulting from...
-
What are the 2 situations in which Methods Study can be applied? Select one: Define manufacturing procedures and improve the use of materials used Industrialize a product or operation for the first...
-
Convert the following quantities to the indicated units. 20 squarekilometers to square miles 20 square kilometers =____ square mile(s) USCS Metric Conversions USCS to Metric 1 in 2.540 cm 1 ft...
-
79. Prove that if p is a prime number and r is an integer with () 0
-
What is the gravitational force between two 15 kg packages that are 35 cm apart? Explain.
-
Create survey questions for the given sudy. "Impact of Covid 19 pandemic in students mental health"
-
CRUZ, INC. Comparative Balance Sheets December 31, 2015 CRUZ, INC. Income Statement For Year Ended December 31, 2015 Required Use the indirect method to prepare the cash provided or used from...
-
The solubility of oxygen in water is a function of the water temperature. Let S represent the solubility of O 2 as millimoles of O 2 per liter of water. Let T be temperature in 'C. Use the following...
-
Use a for loop to plot the function given in Problem 16 over the interval -2 x 6. Properly label the plot. The variable y represents height in kilometers, and the variable x represents time in...
-
One bank pays 5.5 percent annual interest, while a second bank pays 4.5 percent annual interest. Determine how much longer it will take to accumulate at least $50 000 in the second bank account if...
-
A candlestick chart is similar to a bar chart except that the candlestick chart: A. Represents upward movements in price with Xs. B. Also graphically shows the range of the periods highs and lows. C....
-
What considerations might encourage a market analyst to rely more on a top-down or bottom-up forecast of S&P 500 operating earnings?
-
Which of the following advantages listed by Ryan with respect to the earnings-based approach studied by Atkinson is most likely correct? The model A. Can be used for non-U.S. equity markets. B....
Study smarter with the SolutionInn App