Write a program that prompts the user to enter values for the radius (float) and height...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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. Here is a sample run of the program: Enter the radius of the right cylinder: 7.83245 Enter the height of the right cylinder: 20.71546 When prompting the user you must always include text which lets the user know what information they should enter. The surface area and volume of a right cylinder are calculated using the following formulas: Right cylinder Solve for surface acea A = 2лrh+2лr² Radius h Height Right cylinder Solve for volume. V = лr²h 1 Radhus h Hight Enter value Enter value Enter valu Enter value i 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. 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. Here is a sample run of the program: Enter the radius of the right cylinder: 7.83245 Enter the height of the right cylinder: 20.71546 When prompting the user you must always include text which lets the user know what information they should enter. The surface area and volume of a right cylinder are calculated using the following formulas: Right cylinder Solve for surface acea A = 2лrh+2лr² Radius h Height Right cylinder Solve for volume. V = лr²h 1 Radhus h Hight Enter value Enter value Enter valu Enter value i
Expert Answer:
Answer rating: 100% (QA)
Heres a Python program that calculates and displays the surface are... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
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)
-
31% of American adults surveyed stated that giving up their phone for a day would be more difficult than giving up their significant other. In 2012, the United States population over the age of 18...
-
Davis Company opened a Web page design business on January 1 of the current year. The following information relates to Davis Companys operations during the current year: 1. On February 1, Davis...
-
Using superposition, determine the maximum deflection of the beam shown in the figure. The material is carbon steel. 851bf I3b 85 2-ia-die steft
-
Collins Computer Timeshare Company SA entered into the following transactions during May 2017. 1. Purchased computer terminals for R$20,000 from Digital Equipment on account. 2. Paid R$3,000 cash for...
-
Determine the resultant internal normal force acting on the cross section through point A in each column. In (a), segment BC weighs 180 lb ft and segment CD weighs 250 lb ft. In (b), the column has a...
-
Christine Carpet manufactures broadloom carpet in seven processes: spinning, dyeing, plying, spooling, tufting, latexing, and shearing. In the Dyeing Department, direct materials (dye) are added at...
-
A strategy has a monthly total return of 0.0025 (0.25%) and a monthly standard deviation of total returns of 0.0040 (0.40% ). The risk free rate is 2% and the market risk premium is 4%, both per...
-
Complete the statement of cash flow for January through June on the CashFlow worksheet by completing the following tasks. As part of the process, you will need to use a circular reference. You will...
-
You pour out 260 g of tea, (specific heat c = 1.00ca. g K' same as H20), pretty hot to start, T; =331 K. However, you also want to sweeten it with some honey, mass mh =154g, right out of the...
-
Jeff Bezos is opening a Amazon fulfillment center in South Park, Colorado, and employs Stephen Stotch for q hours a day for a wage of p. Jeff's profits are = V(q)- p, where V(g), is increasing and...
-
Consider a market with a risk-free security and a risky asset. Assume that investor is not a price-taker so that her trading moves the expected return of a risky security P as following: E ( rP )...
-
A $6 0 0 , 0 0 0 bond issue on which there is an unamortized discount of $ 4 0 , 0 0 0 is redeemed for $7 7 5 , 0 0 0 . Journalize the redemption of the bonds.
-
2.3 Use the table below to prepare journal entries to transfer the income and expense accounts to Profit and Loss at 30 June 2022. You should refer to: the Accounts listed in the Chart of Accounts...
-
Corporate Printing Company currently leases its only copy machine for $ 1 , 5 0 0 a month. The company is considering replacing this leasing agreement with a new contract that is entirely commission...
-
Hi! I'm looking for help with the following question... could someone help explain the right answer to me? Thanks in advance! Question 20 Predict the ideal bond angles in AsF3 using the molecular...
-
In Exercises delete part of the domain so that the function that remains is one-to-one. Find the inverse function of the remaining function and give the domain of the inverse function. f(x) = 16x4 -3...
-
Consider the following array: int[] a = { 1, 2, 3, 4, 5, 4, 3, 2, 1, 0 }; What is the value of total after the following loops complete? a. int total = 0; for (int i = 0; i < 10; i++) { total = total...
-
Modify the ch06/animation/BlockAnimation.java program to show an animated sine wave. In the ith frame, shift the sine wave by i degrees.
-
Refine the program for solving the eight queens problem so that rotations and reflections of previously displayed solutions are not shown. Your program should display twelve unique solutions.
-
In Figure 31. 28, which of the three bulbs \(F, G\), and \(H\) light up? Data from Figure 31. 28 (e) H
-
In Figure 31. 27, bulb E is brighter than bulb D. Which bulb has \((a)\) the greater potential difference across it, \((b)\) more current in it, and \((c)\) more resistance? Data from Figure 31. 27 D...
-
A thick resistor and a thin resistor of the same length and material are connected in series, as shown in Figure 31. 29. Which resistor has \((a)\) the greater potential difference across it and...
Study smarter with the SolutionInn App