sloop.csship.edu - PuTTY int get_problem(int *Eorm) int get2_pt (double *x1, dou
ID: 3731213 • Letter: S
Question
sloop.csship.edu - PuTTY int get_problem(int *Eorm) int get2_pt (double *x1, double *y1, double 1x2, double *y2); int get-pt-slope (double *x, double *y, doubleslope); int slope_intcpt from2_pt (double xl, double yl, double x2, double y2, double sloper double *y intcpt) int intcpt_from pt_slope (double x, double y, double slope, double *y_intcpt) int display_2_pt (double xl, double yl, double x2, double y2): int display_ pt_slope (double y double slope, double x) int display slope_intcpt (double slope, double y intcpt) int do again(int *again): int main (void) int form1, Eozm, again: double xl, yl, x2, y2, slope, yintcpt, x, Y: do get problem (&Eorm;) if (form-- get2 pt (xl, yl, x2, y2) display 2_pt (xl, yl, x2, y2) slope_intcpt_from2_pt (xl, yl, x2, y2, «slope, 5y_intcpt) display slope_intcpt (slope, yintcpt): do again (sagain): else if (form--2) get pt_slope (x, SY slope) display_pt_slope(y slope, x) : intept _from _pt_slope(x, Y slope, Syintopt) display slope_intcpt (slope, yintcpt): do again (sagain): elset printf(" Form is not 1 oz 21m") while(again-YExplanation / Answer
The problem is rectified. first in main() declare char again instead of int again
Second in do_again()
int do_again(char *again)
{
char again_2;
printf("Do another conversion (Y or N) => ");
scanf(" %c",&again_2);
*again=again_2;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.