Write a program that 1) calculates perimeter/circumference and area for specific geometric plane figures and 2)...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that 1) calculates perimeter/circumference and area for specific geometric plane figures and 2) calculates the volume and surface area of specific geometric solids. The program should take input from the keyboard and keep track of the units of measurement. It should also have a function for each figure. Answers should be to nearest 100th of a unit (2 decimal places). The figures and shapes are listed below: Triangular Shapes (OUTPUT Perimeter and Area or surface area and volume as appropriate.) 1. Triangles (INPUT sides, not base and height): O O O Scalene Isosceles Equilateral Right Triangle (know a, b) Right Triangle (know a, c) 2. Triangular Right Prism (INPUT sides of base and height of prism) 3. Triangular Pyramid (INPUT sides of base and height of pyramid) The program should permit the user to keep going or terminate after each calculation is made. Write a program that 1) calculates perimeter/circumference and area for specific geometric plane figures and 2) calculates the volume and surface area of specific geometric solids. The program should take input from the keyboard and keep track of the units of measurement. It should also have a function for each figure. Answers should be to nearest 100th of a unit (2 decimal places). The figures and shapes are listed below: Triangular Shapes (OUTPUT Perimeter and Area or surface area and volume as appropriate.) 1. Triangles (INPUT sides, not base and height): O O O Scalene Isosceles Equilateral Right Triangle (know a, b) Right Triangle (know a, c) 2. Triangular Right Prism (INPUT sides of base and height of prism) 3. Triangular Pyramid (INPUT sides of base and height of pyramid) The program should permit the user to keep going or terminate after each calculation is made.
Expert Answer:
Answer rating: 100% (QA)
Heres a Python program that calculates the perimeter area volume and surface area for the given geometric shapes python import math def calculatetrian... View the full answer
Related Book For
An Introduction to the Mathematics of Financial Derivatives
ISBN: 978-0123846822
3rd edition
Authors: Ali Hirsa, Salih N. Neftci
Posted Date:
Students also viewed these operating system questions
-
Microkernel operating systems aim to address perceived modularity and reliability issues in traditional "monolithic" operating systems. (i) Describe the typical architecture of a microkernel...
-
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...
-
Giant Corporation (a U.S. corporation) forms Small Corporation in a foreign country. Giant owns 70% of Small Corporation's stock and the remaining stock is owned by citizens of the country in which...
-
The following amounts were obtained from the accounting records of Steed Company: Required: Compute the missing amounts? 2019 2017 2018 Beginning inventory Net purchases Ending inventory Cost of...
-
1. Kevin Semcken identified some possible alternative solutions to his financing problem. Did he come up with all possible alternatives, or can you think of more? 2. Do you agree with board member...
-
What is the payback period for the project described below? Machine investment $24,999 MARR 18% Annual benefit $5,000 Annual maintenance Life Salvage value $2,500 7 years $1,000
-
Mohammad Hashmi, a citizen of Pakistan, entered the United States in 2002 on a student visa. Two years later, when he applied for a job at CompuCredit, he completed an I-9 form and checked the box to...
-
The Gryffin Company started operations this year and reported the following information at the end of the year (i.e. ending balances after all transactions have already been recorded and summarized):...
-
Juliana Oliveria needs additional filing space at the end of the year in the companys office and chooses to use off-site, secured storage. Upon arriving at the storage facility, she discovers that...
-
You're a portfolio manager at a hedge fund, meaning that you make investment decisions about other people's money. Naturally enough, the people whose money you're investing want to know how risky...
-
Sales of $730,000 Gross Margin of 30% Financing Rate 6.5% How to calculate COGS? Show your calculations.
-
Kevin and his sister, Karen, who are both unmarried, purchased a duplex in joint tenancy with right of survivorship. Karen paid the entire purchase price of $325,000. Kevin managed the apartment...
-
On December 1st of the current year, Daughters Inc. borrowed money at the bank by signing a 90 day non-interest bearing note for $40,000 that was discounted at 12%. What would be the amount of...
-
ABC Co. purchased a used construction vehicle from another company that was liquidating its equipment. The purchase price was $150,000, and sales tax was 6%. The vehicle had to be transported to...
-
What is the Cisco TrustSec role in Cisco SD-Access deployment? explain with example and diagram
-
1. B.M. is a 32-year old marine vet who was gravely injured in Iraq when his vehicle struck an improvised explosive device. He experienced severe burns over 50% of his body, which led to an immediate...
-
Briefly discuss the implications of the financial statement presentation project for the reporting of stockholders equity.
-
Consider the linear SDE that represents the dynamics of a security price: dSt = 0.01Stdt + 0.05StdWt with S0 = 1 given. Suppose a European call option with expiration T = 1 and strike K = 1.5 is...
-
Consider the portfolio C(s, t) St. Assume that the dynamics of S (t) are: dSt = St + dWt (13.70) Apply Ito's Lemmato C(s, t) St to obtain the PDE of this portfolio as a function of Ds and dt. Let ...
-
Consider a random variable x with the following values and the corresponding probabilities: (a) Calculate the mean and the variance of this random variable. (b) Change the mean of this random...
-
A change in chromosome structure that does not involve a change in the total amount of genetic material is a. a deletion. b. a duplication. c. an inversion. d. none of the above.
-
The term endopolyploidy refers to the phenomenon of having a. too many chromosomes. b. extra chromosomes inside the cell nucleus. c. extra sets of chromosomes in certain cells of the body. d. extra...
-
Which of the following is a type of plasmid? a. F factor (fertility factor) b. R factor (resistance plasmid) c. Virulence plasmids d. All of the above are types of plasmids.
Study smarter with the SolutionInn App