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...
-
Does the product life-cycle stage have a bearing on production cost management? Explain.
-
The number of minutes that it takes an auditor to process an invoice is given in the table below: a.?What is the arithmetic mean of processing time?b.?Find the median and mode of the processing...
-
Name the six components of an IS.
-
The bookkeeper for Joes Hardware Co. records all revenue and expense items in nominal accounts during the period. The following balances, among others, are listed on the trial balance at the end of...
-
1. [20 marks] Neatly work out the following bitwise operations. Show the work step by step. Give the answers in binary, hexadecimal and decimal. a. unsigned char Question1A = (0xDB & 0x69) | 17; b....
-
assembly language ; 6. Temperature conversion between Celsius and Fahrenheit can be computed using ; ; ; the relationship C = (5 / 9) * (F - 32) where C and F are in degrees (signed integer). Celsius...
-
BBQ Berhad projected sales for the first six months of 2023 are given below: Jan. Feb. Mar. April RM490,000 May RM740,000 June RM610,000 RM500,000 RM740,000 RM380,000 40% of sales are collected in...
-
Show detailed mechanisms for the electrophilic addition of HCl with 2 - methyl - 1 , 3 - cyclohexadiene. Provide all possible adducts. Rank the order of most to least major products. Specify 1 , 2...
-
Determine whether an (8, 5) carbon nanotube would be metallic or semiconducting in nature. Sketch the expected shape of the density of states of an (8, 5) carbon nanotube.
-
Someone help with this organic chemistry lab. I have one question, but for some information this is what we did: Dissolve 5 g of Na 2 CO 3 in 2 5 0 mL of ion - exchanged water in a beaker. 1 0 tea...
-
Design a home exterior to minimize heat gain during a summer day in Norfolk, VA. Requirements to be fulfilled: Home must be 196m 2 . One story is sufficient. All walls must be straight, but the shape...
-
5. a. Describe briefly, with reference to its lattice structure, the piezoelectric behaviour of quartz (SiO2). b. Briefly describe an application for a piezoelectric material (5 marks) (2 marks) c....
-
Consider the linear transformation with shear operator in x-direction T= = 1/2 to Write a matlab program that shows the effect of shear transformation with k = the house with vertices (0, 0), (2,0),...
-
The overall reaction and equilibrium constant value for a hydrogenoxygen fuel cell at 298 K is 2H 2 (g) + O 2 (g) 2H 2 O(l) K = 1.28 10 83 a. Calculate E cell and G 8 at 298 K for the fuel cell...
-
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...
-
What are the two key financial objectives in the management of a company? How can a focus on these objectives create ethical dilemmas?
-
Briefly explain the difference between accounting, finance, and engineering economics. Try to put the concepts in your own (or your team's) words and compare the concepts where appropriate.
-
Among your colleagues in class, identify a term or phrase italicized in this chapter that you think is the most significant from your reading. Absent team consensus, then just provide your...
Study smarter with the SolutionInn App