Question: Using C code, calculate the following problem and have your code display the answer to two decimal places. Find the surface area of a cone

Using C code, calculate the following problem and have your code display the answer to two
decimal places. Find the surface area of a cone where r=5,h=12 and the equation for the surface
area, A, is shown below
A=r(r+h2+r22)
Copy and paste your code to the template for Problem 1.
Using C coding, and a user input for polar coordinates of a point ('r' for radius and 'a' for angle
in degrees), generate and print the Cartesian coordinates. An angle 'a' in degrees is converted to
radians by the formula: theta =**a180. Given the radius, r, and the angle, theta, in radians, the
Cartesian coordinates are calculated as follows
x=r**cos( theta),y=r**sin( theta).
Copy and paste your code to the template for Problem 2.
Using C coding and a user input for a student grade, use a SWITCH/CASE to print out the
following:
'Grade is A.' for student grade 90
'Grade is B.' for student grade 90 and student grade 80
'Grade is C.' for student grade 80 and student grade 70
'Grade is D.' for student grade 70 and student grade 60
otherwise 'Grade is E.'
Copy and paste your code to the template for Problem 3.
Using C coding, create and even array (10,12,14,16,18) and an odd array (9,11,13,15,17)
use a FOR loop to create a total array (9,10,11,12,13,14,15,16,17,18) by rearranging the
elements in the previously created odd array and even array. Next, use a WHILE loop to print out
the values of the total array in a single vertical column.
Copy and paste your code to the template for Problem 4.1) Using C code, calculate the following problem and have your code display the answer to two decimal places. Find the surface area of a cone where r =5, h =12 and the equation for the surface area, A, is shown below =(+2+2)
Copy and paste your code to the template for Problem 1.
2) Using C coding, and a user input for polar coordinates of a point (r for radius and a for angle in degrees), generate and print the Cartesian coordinates. An angle a in degrees is converted to radians by the formula: theta = pi*a/180. Given the radius, r, and the angle, theta, in radians, the Cartesian coordinates are calculated as follows
x = r*cos(theta), y = r*sin(theta).
Copy and paste your code to the template for Problem 2.
3) Using C coding and a user input for a student grade, use a SWITCH/CASE to print out the following:
Grade is A. for student grade >=90
Grade is B. for student grade 90 and student grade >=80
Grade is C. for student grade 80 and student grade >=70
Grade is D. for student grade 70 and student grade >=60
otherwise Grade is E.
Copy and paste your code to the template for Problem 3.
4) Using C coding, create and even array (10,12,14,16,18) and an odd array (9,11,13,15,17) use a FOR loop to create a total array (9,10,11,12,13,14,15,16,17,18) by rearranging the elements in the previously created odd array and even array. Next, use a WHILE loop to print out the values of the total array in a single vertical column.
Copy and paste your code to the template for Problem 4.
Using C code, calculate the following problem and

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 Programming Questions!