Ayan ag problem mga paps:
https://www.Çℎḙḡḡ.com/homework-help...roblem-similar-hanly-koffman-s-proj-q22881929
Ito pa lang nagawa kong code, ewan ko bakit di ma run.
#include <stdio.h>
int get_problem(int choose);
double get2_pt(double, double, double);
int main (){
int choose;
int get_problem();
switch (choose)
{
case 1: get2_pt();
display2_pt();
display_slope_intcpt(); break;
case 2: get_pt_slope();
display_pt_slope();
display_slope_intcpt();break;
}
char response;
printf("\nDo another conversion (Y or N)=> ");
scanf(" %c", &response);
switch(response)
{
case 'Y': get_problem();
case 'N': return 0;
}
}
int get_problem(int choose){
int choose;printf("%s\n%s\n%s\n%s","Select the form that you would like to convert to slope-intercept form: ",
"1)Two-point form (you know the points in the line)",
"2)Point-slope form(you know the line's slope and one point)", "=> ");scanf("%d", &choose);return choose;
}
//functions
double get2_pt(double *a, double*b, double *c, double *d)
{ double x1,x2,y1,y2;
printf("Enter the x-y coordinates of the first point separated by a space=>");
scanf("%lf%lf", &x1,&y1);
printf("Enter the x-y coordinates of the second point separated by a space => ");
scanf("%lf%lf", &x2,&y2);
}
double get_pt_slope(double *a, double*b, double *c)
{ double m,x1,y1;
printf("Enter the slope => ");
scanf("%lf", &m);
printf("Enter the x-y coordinates separated by a space=>");
scanf("%lf%lf", &x1,&y1);
}
double slope_intcpt_from2_pt()
{
//get x1, x2, y1, y2
//returns slope (m )and y intercept or (b)
}
double intcpt_from_pt_slope()
{
//get x1, y1, m
//returns y intercept or b.
}
double display2_pt()
{
//get x1, x2, y1, y2
//display two point form line equation
}
double display_pt_slope()
{
//get x1, y1, m
//display point slope equation with a heading
}
double display_slope_intcpt()
{
//get m and y intercept
//display slope intercept
}
https://www.Çℎḙḡḡ.com/homework-help...roblem-similar-hanly-koffman-s-proj-q22881929
Ito pa lang nagawa kong code, ewan ko bakit di ma run.
#include <stdio.h>
int get_problem(int choose);
double get2_pt(double, double, double);
int main (){
int choose;
int get_problem();
switch (choose)
{
case 1: get2_pt();
display2_pt();
display_slope_intcpt(); break;
case 2: get_pt_slope();
display_pt_slope();
display_slope_intcpt();break;
}
char response;
printf("\nDo another conversion (Y or N)=> ");
scanf(" %c", &response);
switch(response)
{
case 'Y': get_problem();
case 'N': return 0;
}
}
int get_problem(int choose){
int choose;printf("%s\n%s\n%s\n%s","Select the form that you would like to convert to slope-intercept form: ",
"1)Two-point form (you know the points in the line)",
"2)Point-slope form(you know the line's slope and one point)", "=> ");scanf("%d", &choose);return choose;
}
//functions
double get2_pt(double *a, double*b, double *c, double *d)
{ double x1,x2,y1,y2;
printf("Enter the x-y coordinates of the first point separated by a space=>");
scanf("%lf%lf", &x1,&y1);
printf("Enter the x-y coordinates of the second point separated by a space => ");
scanf("%lf%lf", &x2,&y2);
}
double get_pt_slope(double *a, double*b, double *c)
{ double m,x1,y1;
printf("Enter the slope => ");
scanf("%lf", &m);
printf("Enter the x-y coordinates separated by a space=>");
scanf("%lf%lf", &x1,&y1);
}
double slope_intcpt_from2_pt()
{
//get x1, x2, y1, y2
//returns slope (m )and y intercept or (b)
}
double intcpt_from_pt_slope()
{
//get x1, y1, m
//returns y intercept or b.
}
double display2_pt()
{
//get x1, x2, y1, y2
//display two point form line equation
}
double display_pt_slope()
{
//get x1, y1, m
//display point slope equation with a heading
}
double display_slope_intcpt()
{
//get m and y intercept
//display slope intercept
}