(b) Write a C program that calculates the Surface Area of a Square Based Pyramid. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
(b) Write a C program that calculates the Surface Area of a Square Based Pyramid. The user will input the height of the Pyramid and the length of one of the square sides from the keyboard in that order. The Surface Area is given by this formula: Surface Area = (length x length) + 2 x length x [ (height x height) + (length x length) ] ½ Your code should check that the values entered are valid and produce the following example output: Height of Pyramid is 32.4m Length of Pyramid is 23.0m Surface Area of Square Based Pyramid is 2357 square meters [10 Marks] (b) Write a C program that calculates the Surface Area of a Square Based Pyramid. The user will input the height of the Pyramid and the length of one of the square sides from the keyboard in that order. The Surface Area is given by this formula: Surface Area = (length x length) + 2 x length x [ (height x height) + (length x length) ] ½ Your code should check that the values entered are valid and produce the following example output: Height of Pyramid is 32.4m Length of Pyramid is 23.0m Surface Area of Square Based Pyramid is 2357 square meters [10 Marks]
Expert Answer:
Answer rating: 100% (QA)
Heres a C program that calculates the surface area of a squarebased ... View the full answer
Related Book For
Vector Mechanics for Engineers Statics and Dynamics
ISBN: 978-0073398242
11th edition
Authors: Ferdinand Beer, E. Russell Johnston Jr., David Mazurek, Phillip Cornwell, Brian Self
Posted Date:
Students also viewed these programming questions
-
In this question assume that p and q are atomic formulae. (a) Compare and contrast path formulae and state formulae in temporal logic. [4 marks] (b) Describe and contrast the meanings of F(G p) and...
-
The accounting records for The Skate Shed, Inc., reflected the following amounts at the end of January 2018: Prepare The Skate Shed?s multistep income statement for the fiscal year ended January 31,...
-
In a recent survey conducted by the Pew Research Center, a random sample of adults 18 years of age or older living in the continental United States was asked their reaction to the word socialism. In...
-
Assume the annual return for the lowest turnover portfolio is 18% and the annual return for the highest turnover portfolio is 12%. If you invest $100,000 and have the highest turnover, how much lower...
-
Consider an infinite Bernoulli process with \(p=0.5\), that is, an infinite sequence of random variables \(\left\{Y_{i}, i \in \mathbb{Z} ight\}\) with \(\mathbf{P}\left(Y_{i}=0...
-
Presented here are an incomplete income statement and balance sheet for Schwenke Corporation. Additional information: 1. The gross profit margin is 40%. 2. The income tax rate is 20%. 3. The...
-
For each of the following, compute the future value: Interest Present Value Years Future Value Rate $2,250 11 10% ? 8,752 7 8% ? 76,355 14 17% ? 183,796 8 7% ?
-
Read the following two-part scenario and answer the questions provided. In each of your responses, please include: A clear answer that shows your understanding of the course material All of the...
-
The modulus of elasticity of CaF2 is 75.79 GPa for a non-porous material. What is the modulus of elasticity for a material with 7% porosity?
-
The first step taken by a city or a county in the taxing process is to determine the funds needed to meet the budget. prepare an inventory of all privately-owned properties. Determine the fair market...
-
Locate and review the current Form 1120 on the IRS government website. Write a 3- to 4- paragraph journal response based on your interpretation of reviewing Form 1120, as well as the instructions for...
-
2. Using a pivot table, develop an accounts receivable (AR) trial balance of December 31, 2015. Use customer name and transaction number as rows and December 31, 2015 as the value. Collapse the data...
-
How effective are the oversight mechanisms in ensuring that U.S. tax dollars allocated for assistance to Ukraine are used appropriately and not subjected to fraud or other criminal activities?
-
If you had to choose deontology and use it for all your personal ethical decision making? Why this one? How would you respond to the arguments raised against the deontology theory ?
-
22. Suppose many students take a 10-question quiz, and the mean turns out to be 7.22 answers correct. Suppose the standard deviation turns out to be 0.722. What is the coefficient of variation? (a)...
-
On April 29, 2015, Auk Corporation acquires 100% of the outstanding stock of Amazon Corporation (E & P of $750,000) for $1.2 million. Amazon has assets with a fair market value of $1.4 million (basis...
-
Knowing that P = 100 N, determine the range of values of θ for which equilibrium of the 7.5-kg block is maintained. .-0.45 ,-0.35 7.5 kg
-
Neglecting the effect of friction at the horizontal and vertical surfaces, determine the forces exerted at B and C on member BCE. 50 lb 4 in. 2 in 6 ir i.
-
Knowing that two equal caps have been removed from a 10-in.-diameter wooden sphere, determine the total surface area of the remaining portion. 4 in 10 in.
-
What are the values of the feathering parameters for the airfoils given by Examples 8.5 and 8.6? Examples 8.5 Assume an airfoil pitching about its leading edge and plunging with \(k=0.35\) as follows...
-
Obtain the lift and propulsive force coefficients of an airfoil given in Example 8.6, and compare the results with Problem 8.30. Assume the profile pitches about midchord. Example 8.6 The NACA 0012...
-
Find the heat transfer rate \(\mathrm{q}_{\mathrm{w}}\) at \(\mathrm{x}=10 \mathrm{~cm}\) and \(100 \mathrm{~cm}\) for the flat plate given in Problem 7.31. Problem 7.31 A flat plate of \(4...
Study smarter with the SolutionInn App