python and using IDLE When prompting the user you must always include text which lets the user
Fantastic news! We've Found the answer you've been seeking!
Question:
python and using IDLE
Transcribed Image Text:
When prompting the user you must always include text which lets the user know what should be inputted. The surface area and volume of a right cylinder are calculated using the following formulas: Right cylinder Solve for surface area- A = 2h+2 1 Radus Enter value h Height Enter value Right cylinder Solve for volume V = 1 Radun h Height Enter value Enter value Write a program that prompts the user to enter values for the radius (float) and height (float) for the right cylinder. The program should calculate and display the surface area and volume of the right cylinder. Use the Python defined constant for pi. Here is link to the constant in the Python documentation . The surface area and volume should be formatted as fixed-point numbers with 4 decimal places using an f-string. Do not use the round function. When prompting the user you must always include text which lets the user know what should be inputted. The surface area and volume of a right cylinder are calculated using the following formulas: Right cylinder Solve for surface area- A = 2h+2 1 Radus Enter value h Height Enter value Right cylinder Solve for volume V = 1 Radun h Height Enter value Enter value Write a program that prompts the user to enter values for the radius (float) and height (float) for the right cylinder. The program should calculate and display the surface area and volume of the right cylinder. Use the Python defined constant for pi. Here is link to the constant in the Python documentation . The surface area and volume should be formatted as fixed-point numbers with 4 decimal places using an f-string. Do not use the round function.
Expert Answer:
Answer rating: 100% (QA)
trialpy CUsersSilaAppDataLocalProgramsPythonPython39trialpy 3913 File Ed... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
a) Explain the process of agricultural transformation in the process of Economic development. (10 Marks) b) Outline the contribution of agriculture in the process of Economic Development (5 Marks)
-
a) State the core values of Economic Development. (5 Marks) b) Comment on the usefulness of Gross Domestic Product (GDP) as a measure of economic well-being of a country. (10 Marks)
-
Determine the order of growth of the running time of this statement in ThreeSum as a function of the number of integers \(n\) on standard input: int[] a = StdIn. readA11Ints(); Answer: Linear. The...
-
Rework Problem 9.43 except that the pressure ratio and maximum temperature are, respectively, a) 4 and 1200°C, b) 5 and 1400°C, c) 6 and 1600°C. Air enters the ideal regenerative Brayton...
-
The person in the drawing is standing on crutches. Assume that the force exerted on each crutch by the ground is directed along the crutch, as the force vectors in the drawing indicate. If the...
-
Due to a nationwide recession, Amesbury Systems merchandise inventory is gathering dust. It is now October 31,2010, and the \($163,300\) that Amesbury Systems paid for its ending inventory is...
-
Consider the profits as a percent of revenue for a group of companies involved in petroleum and/or mining, as shown in Table 8.6.2. a. Construct a sampling frame, viewing this list as a population of...
-
question What are competitive dynamics and how does this explain why strategies evolve in response to actions of close competitors?
-
Xenu is a manufacturing company founded in 1990 in Monterrey dedicated to the transformation of aluminum ingots into molds for the automotive industry. Mounting requests orders daily through the...
-
The authors of the study cited in the preceding exercise go on to consider what would have to happen for nominal stock prices to again equal real stock prices. What is the correct answer? Preceding...
-
The Congressional Research Service estimates that at least $45 million of counterfeit U.S. $100 notes produced by the North Korean government are in circulation. a. Why do U.S. taxpayers lose because...
-
The real risk-free rate is 2.05%. Inflation is expected to be 3.05% this year, 4.75% next year, and 2.3% thereafter. The maturity risk premium is estimated to be 0.05 (t - 1)%, where t = number of...
-
Steam at a pressure of 20 bar absolute and dryness fraction 0.8 is throttled to a pressure of 0.5 bar. Determine the final condition of steam.
-
Why is a sample more desirable than a census? What are some of the reasons for taking a sample?
-
tan? a + sec a+ 1 18. tan a + sin. tan a + cot a
-
Write the general quadratic equation y2 - 8y - 4x + 28 = 0 in standard form. Determine the vertex, focus, and directrix of the parabola defined by this equation. Sketch a graph.
-
Make up an original problem using the concepts presented in Section ______ (your instructor will specify the section). Extra credit will be given if you obtain and use real data from the literature.
-
Consider the catalytic reaction as a function of the initial partial pressures 2AB+C The rate of disappearance of species A was obtained in a differential reactor and is shown below. Three graphs...
-
The following E(t) curve was obtained from a tracer test on a reactor. E(t)=0.25t0
-
Prove mathematically the following condition for the early exercise of a call by a call holder: \(D>T V P\).
-
Explain what arbitrageurs would do if the price of an American S\&P 500 futures call with an exercise price of 2,100 were priced at 45 when the underlying futures price was trading at 2,150. What...
-
PI Hedge Fund has formed a proxy portfolio that it is using to identify arbitrage opportunities using put-call parity relations. The proxy portfolio is highly correlated with the S\&P 500 with a beta...
Study smarter with the SolutionInn App