Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Mark and briefly explain any errors in the following sets ofstatements ( overall

ID: 3613410 • Letter: M

Question

Mark and briefly explain any errors in the following sets ofstatements ( overall there are ten sparate errors): a) #include e= 2.71828182846 b) double x=2.3, y;      x = x +12      2* y = x - 1.0; c) int count;     double velocity;     prinf("Enter a velocity and a count ",velocity, count)     scanf("%lf,%i",&velocty,&count); d) double 2_pressure=44.45;      int jay = 5;      printf("The second pressure is %f5.2and the value of j is %i ",      2_pressure, jay); Mark and briefly explain any errors in the following sets ofstatements ( overall there are ten sparate errors): a) #include e= 2.71828182846 b) double x=2.3, y;      x = x +12      2* y = x - 1.0; c) int count;     double velocity;     prinf("Enter a velocity and a count ",velocity, count)     scanf("%lf,%i",&velocty,&count); d) double 2_pressure=44.45;      int jay = 5;      printf("The second pressure is %f5.2and the value of j is %i ",      2_pressure, jay);

Explanation / Answer

Mark and briefly explain any errors in the following sets ofstatements ( overall there are ten sparate errors): a) #include e=2.71828182846             should be    #define e=2.71828182847
b) double x=2.3, y;      x = x+12                    missing semi colon    should be x=x+12;
     2* y = x -1.0;             left side can only have a variable  should bey=(x-10)/2.;
c) int count;     double velocity;     prinf("Enter a velocity and a count ",velocity,count)           missing t in printf, shouldn't have velocity andcount, missing ;
       shouldbe     printf("Enter a velocity and a count ");     scanf("%lf,%i",&velocty,&count);     specifier for integer isd    shouldbe    scanf("%lf,%d",&velocty,&count); d) double2_pressure=44.45;              variable name must start withletter       double pressure_2=44.45;
     int jay = 5;      printf("The second pressure is %f5.2and the value of j is %i ",  
     2_pressure,jay);                                 %f5.2 should be %5.2lf     %i should be %d  2_pressure should be pressure_2
shouldbe       printf("The second pressureis %5.2lf and the value of j is %d ", pressure_2,jay);
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote