Question: Exercise 2 Part A In this exercise, you will examine and fix a buggy program. Erase any old code still in your project's editor window.

 Exercise 2 Part A In this exercise, you will examine and

Exercise 2 Part A In this exercise, you will examine and fix a buggy program. Erase any old code still in your project's editor window. Copy and paste the following faulty program code to the editor window: Line # 1 Faulty Program Code 1 /This is a demo program 2 | #include , 5 | #define PI 3.141592654 7 int main (void) 4 double angle; Input angle (type is double) in degrees 9 10 Rcintk"Enter an angle in degrees: "); scanf("%", angle); 12 13 14 15 16 17 18 x (3/4) cos(angle) sin(angle); return (e) If the program was working correctly, the output runs should like this: Enter an angle in degrees: 15 x 0.187500 Enter an angle in degrees: 60 x 0.324760 . On the following page, list as many syntax and/or logic errors in the program as you can. Do this BEFORE you attempt to build the program! Do not worry if you cannot identify all of the errors the first time. You will not be penalized

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!