3. If the lengths of two sides of a triangle and the angle between them are...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. If the lengths of two sides of a triangle and the angle between them are known, the length of the third side can be calculated. Given the lengths of two sides (b and c) of a triangle, and the angle between them in degrees, the third side a is calculated as follows: a² = b² + c²2bc cosa Write a script called thirdside that will prompt the user and read in values for b, c, and a (in degrees), and then calculate and print the value of a with 3 decimal places. The format of the output from the script should look exactly like this (with your own inputs for b, c, and a): thirdside Enter the first side: 2.2 Enter the second side: 4.4 Enter the angle between them: 50 The third side is 3.429 3. If the lengths of two sides of a triangle and the angle between them are known, the length of the third side can be calculated. Given the lengths of two sides (b and c) of a triangle, and the angle between them in degrees, the third side a is calculated as follows: a² = b² + c²2bc cosa Write a script called thirdside that will prompt the user and read in values for b, c, and a (in degrees), and then calculate and print the value of a with 3 decimal places. The format of the output from the script should look exactly like this (with your own inputs for b, c, and a): thirdside Enter the first side: 2.2 Enter the second side: 4.4 Enter the angle between them: 50 The third side is 3.429
Expert Answer:
Answer rating: 100% (QA)
Certainly Below is a simple Python script named thirdside that performs th... View the full answer
Related Book For
Intermediate Algebra
ISBN: 9780134895987
13th Edition
Authors: Margaret Lial, John Hornsby, Terry McGinnis
Posted Date:
Students also viewed these programming questions
-
The lengths of two sides of a triangle are shown. Side 1: 3x 2 4x 1 Side 2: 4x x 2 + 5 The perimeter of the triangle is 5x 3 2x 2 + 3x 8. Part A : What is the total length of the two sides, 1...
-
Formulate a single python program that contains the following functions. Function 1: A function called frame_this which takes a list of words as a parameter (list_of_words) and then prints those...
-
The monochromatic emissivity of a diffuse-surface at 1600 K varies with wavelength in the following manner : = 0.4 for 0
-
The Ostwald process is used commercially to produce nitric acid, which is, in turn, used in many modern chemical processes. In the first step of the Ostwald process, ammonia is reacted with oxygen...
-
Explain why backward-looking tracking error has limitations for estimating a portfolios future tracking error.
-
As in Example 2.1, camera recycle times might use the sample space \(S=R^{+}\), the set of positive real numbers. Let \[ E_{1}=\{x \mid 10 \leq x <12\} \quad \text { and } \quad E_{2}=\{x \mid 11 0\}...
-
The weight of turkeys is normally distributed with a mean of 22 pounds and a standard deviation of 5 pounds. a. Find the probability that a randomly selected turkey weighs between 20 and 26 pounds....
-
A standardization battle is underway in the market for electric cars, with BMW, Nissan, Tesla and Toyota investing to establish their technology as the dominant standard. In the battle, Tesla has...
-
Write astored procedure code (the name of the stored procedure is GetAddress) that enables you toquery the Person.Address table from the Adventure Works database, but instead of getting back all...
-
show calculations 3 Inputs 4 discount rate 5 annual net revenue growth rate 6 Initial investment 7 revenue (year 1) 8 9 10 11 12 year 0 13 year 1 14 year 2 15 year 3 16 year 4 17 year 5 18 year 6 19...
-
Give two examples of even functions and two examples of odd functions that are NOT polynomial. Give the equations and graphs (you can sketch them on the same set of axis below. -10 -$ flay-10 -51 -10...
-
Let ECR be an open set and let f:ER be Continuously differentiable. Suppose further there exists (x, y) EE such that af (xo, yo) #0 ax Prove that is not injective. Hint: If G" (u, v) = (4(u, v), y(u,...
-
Consult the spreadsheet entitled "Walmart Cost of Capital Supplement." Give an explanation of how Dale and Lee have calculated Walmart's cost of capital. Do you agree with their estimate of Walmart's...
-
Currently, Teewinot sells 1,500,000 per year, but they expect demand to increase by 10% each year for the next 4 years then drop down to 3% growth in volume for the remaining life of the machine....
-
Jacob Ltd has rent expense $5,000 debit balance and insurance expense $3,000 debit balance. What would be the closing journal entry for the rent and insurance expenses?
-
What are the two methods used to translate financial statements and how does the functional currency play a role in determining which method is used?
-
Solve each equation. 9z 2 - 81 = 0
-
Solve each equation or inequality. 0.5x3.5+ 0.2 0.6
-
Rationalize each denominator. Assume that all variables represent positive real numbers. x A 24
-
A fertilizer producing company purchases nitrates, phosphates, potash, and an inert chalk base and produces four different fertilizers A, B,C, and D. The cost of these nitrates, phosphates, potash,...
-
We are interested to produce $P$ in the reaction $A ightarrow P$ using a continuous reactor at $v=240$ liters/ hr with $C_{A_{0}}=3$ moles/liter. However, it is noticed that there is a second...
-
Heavy fuel oil, initially semisolid at $15^{\circ} \mathrm{C}$ is to be heated and pumped through a $15 \mathrm{~cm}$ diameter (inside) pipe at the rate of $20000 \mathrm{~kg} / \mathrm{h}$. The pipe...
Study smarter with the SolutionInn App