The area of a trapezium can be calculated according to the following shape. Write a program...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The area of a trapezium can be calculated according to the following shape. Write a program in C programming language to calculate the areas of a given edge-values of a trapezium. Note that: All necessary values of the trapezium will be entered using the keyboard. After the calculation of the area of a trapezium, the program should go to the top and waits the next values of a new trapezium. Area of a Trapezium Trapezium area can be calculated by using the below formula: • Area = (1/2) h (AB+CD) AREA OF TRAPEZIUM FORMULA A Da b₁ b₁ B с с The area of a trapezium can be calculated according to the following shape. Write a program in C programming language to calculate the areas of a given edge-values of a trapezium. Note that: All necessary values of the trapezium will be entered using the keyboard. After the calculation of the area of a trapezium, the program should go to the top and waits the next values of a new trapezium. Area of a Trapezium Trapezium area can be calculated by using the below formula: • Area = (1/2) h (AB+CD) AREA OF TRAPEZIUM FORMULA A Da b₁ b₁ B с с
Expert Answer:
Answer rating: 100% (QA)
mainc 1 include 2 3 int main 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 float a b ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
The formula for the area of a triangle is base height. What is the area of a triangle in square centimeters if its base is 1.007 m and its height is 0.665 m? Express the answer to the proper...
-
The formula for the area of a triangle is base height. What is the area of a triangle in square meters if its base is 166 mm and its height is 930.0 mm? Express the answer to the proper number of...
-
The area of a triangle ABC can be calculated by |rAB Ã rAC/2, where rAB and rAC are vectors connecting the vertices A and B and A and C, respectively. Determine the area of the triangle shown...
-
Describe the graph of a constant function.
-
What are seven the sections of a good form?
-
Quince Interests is a partnership with a tax year that ends on September 30, 2019. During that year, Potter, a partner, received $3,000 per month as a guaranteed payment, and his share of partnership...
-
Refer to Exercise 4.2. (a) Determine the cumulative probability distribution \(F(x)\). (b) Graph the probability distribution of \(f(x)\) as a bar chart and below it graph \(F(x)\). Data From...
-
NPV and Discount Rates An investment has an installed cost of $724,860. The cash flows over the four-year life of the investment are projected to be $324,186, $375,085, $354,302, and $205,680. If the...
-
What type of algorithm is the following code? 1-0 while i
-
As the in-charge senior auditor on the audit engagement for JA Tire Manufacturing for the year ended December 31, 2019, you are responsible for performing risk assessment procedures related to the...
-
In this C++ program, you will create an object and display it. Create a class nerfGun that includes data members model (string), range(int), capacity (int), and number of darts (int). Your class...
-
Relative to the Chinese economy, the U.S. economy is ___________. a) more capital intensive b) more labor intensive c) more labor intensive and more capital intensive d) less labor intensive and less...
-
Which statement is true? a) Productivity is output per unit of input. b) Productivity is input per unit of output. c) Productivity is neither of the above.
-
Capital and labor are ______ factors of production. a) substitute b) complementary c) both complementary and substitute d) neither complementary nor substitute
-
Show that, after triangularizing \(\mathbf{A x}=\mathbf{y}\), the back substitution method of solving \(\mathbf{A}^{(N-1)} \mathbf{x}=\mathbf{y}^{(N-1)}\) requires \(N\) divisions, \(N(N-1) / 2\)...
-
Which statement is true? a) Resources and final products are both measured by units of input. b) Resources and final products are both measured by units of output. c) Resources are measured by units...
-
Rosemarie tracks the number of kilometers she drives for work each week. Last week she drove 93.46 km on Monday, 114.88 km on Tuesday, 90 km on Wednesday, 95.2 km on Thursday, and 127.2 km on Friday....
-
A crop-dusting plane flies over a level field at a height of 25 ft. If the dust leaves the plane through a 30 angle and hits the ground after the plane travels 75 ft, how wide a strip is dusted? See...
-
The resonant frequency f(in Hz) for the circuit shown is given by: f = l/2Ï1/LC (R/L)2 Calculate the resonant frequency when L = 0.15henrys, R = 14 ohms, and C = 2.6 x 10-6 farads. ell
-
The new coordinates (X,, Y,) of a point in the x-y plane that is rotated about the z axis at an angle e (positive is clockwise) are given by Xr, = X0cos- Y0sin Yr, = X0sin + Y0cos where (X0, Y0) are...
-
Define the vector v = [2 3 4 5 6]. Then use the vector in a mathematical expression to create the following vectors: (a) a = [4 6 8 10 12] (b) b = [8 27 64 125 216] (c) c = [22 33 44 55 66] (d) d =...
-
In the second quarter of 2021, personal consumption expenditures, exports, and imports increased. Investment and government expenditure decreased. Real GDP increased by 6.5 percent following a 6.3...
-
When real GDP increased in the second quarter of 2021, consumption expenditure, exports, and imports increased. Fixed investment decreased, which included a decrease in business inventory investment....
-
Are U.S. exports part of U.S. induced expenditure or autonomous expenditure? Are U.S. imports part of U.S. induced expenditure or autonomous expenditure? U.S. imports are recovering thanks to the $2...
Study smarter with the SolutionInn App