Question: In C, Please! Problem to solve: Halloween is coming up. You want to create a giant jack-o-lantern face to put on the side of a

In C, Please! In C, Please! Problem to solve: Halloween is coming up. You want

Problem to solve: Halloween is coming up. You want to create a giant jack-o-lantern face to put on the side of a building. In order to make your giant jack-o-lantern, you are going to cut out a huge orange circle as the background. Then you'll need to cut out three triangles and one half circle in black to make the face. You want to end up with a face like the picture on the right. So you need to figure out the amount of orange and black material you need for your jack-olantern face. You will enter the diameter of the jack-o-lantern as an input from the keyboard. You are then going to calculate a total minimum amount of material by calculating the area of the triangles and the area of the half circle for the black and then the amount of orange by using area formulas with a value given by the user (you) for the diameter of the orange circle. The other values will be calculated in relation to that amount. To calculate your amounts you need the following information: - The diameter of the orange circle is exactly 5 times the length of the side of one triangle - The diameter of the black half circle is exactly 3 times the length of the side of a triangle - All three black triangles are the same size - All three triangles are equilateral triangles Use the formulas below for the area of the equilateral triangle and the area of a circle. The value of pi ( ) is defined as the constant M_PI in the math.h header file so include that file and use the constant M_PI for . Also assume that all measurements are in meters. Area of a circle: A=r2 where r is the radius of the circle (half of the diameter) Area of an equilateral triangle: A=43a2 where a is the length of the side of the triangle Write the pseudocode to calculate the area of material needed to make the giant jack-o-lantern face. Remember that the user will give you a diameter (d) for the orange circle and you'll need to use that to figure out the radius (r) and the side of the triangle (a). Be sure to 1) ask the user for the diameter of the circle in meters and 2) print out the final amount of orange material in the correct units for area and 3) the final amount of black material in the correct units for area As an example you might print out: For your giant jack-o-lantern of diameter 5.00 meters,you need a minimum of 19.63sq m of orange material and a minimum of 4.83sqm of black material

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!