Question: Show how to write in C programming Give you practice with basic programming skills, writing formulas and performing computations. You will be graded on the

 Show how to write in C programming Give you practice with
Show how to write in C programming

Give you practice with basic programming skills, writing formulas and performing computations. You will be graded on the following criteria: (1) programming style, (2)correct answers, (3) ease of understanding, (4) ease of use. Areas and Volumes These problems involve computing an area or a volume using input from the user. Write one program that solves each of the following problems in sequence. Each part must be separated from the next by proper comments. The comments should include the part letter, e.g., Part a, Part b, and Part c, along with a brief statement of the problem. Each part must include a prompt to the user to enter the variables needed. Make sure your prompts are descriptive, i.e., they request specific information and remind users of the units. a) Write this first part of the program to compute the area of a triangle with base b and height h (Area = 1/2 b h). Prompt the user to enter the values of b and h. The numbers should be floating point numbers (i.e., numbers containing decimal points). No units are necessary for this part of the program. Identify and display the area of the triangle. b) Write this part of the program to compute the area of a sector of a circle where d is the angle in degrees between the radii and r is the radius. Prompt the user to enter the floating point value of d and r. (Area = r^2 u/2 ..... where u is the angle in radians, therefore you will need to convert d from degrees to radians before using the formula. Identify and display the area of the sector of the circle. c) Write this last part of the program to compute the area of a circle (Area = pi r^2) and the volume of a sphere (Volume = 4/3 pi r^2) both of which has radius r. Define pi as a symbolic constant. Prompt the user to enter the value of r as a floating point number. Identify and display both the area of the circle and the volume of the sphere

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!