typedef struct node*s;
struct node
{
int power;
s next;
double Cofficent;
};
typedef s list; typedef s postion;
int Empety(list); int last(list,postion);
void print(list); postion perivous(list,int);
postion find(list,int); void insert(list,postion,double,int);
void delete(list,int); void add(list,list,list);
void subtract(list,list,list);
void multply(list,list,list);
void modify(list,list,list);
void appended(list,double,int);
int main()
{
list equation1; list equation2; list sum; list subtr; list multy; sum=NULL; subtr=NULL; multy=NULL;
printf("\t\tplease enter the all of cases :\n"); printf("\t\t \n"); printf("\t\t\n"); printf("please enter the two equation of the polynomial\n"); printf("ADE the two equation\n"); printf("Subtract the two equation\n"); printf("Multiply the two equation\n"); printf("Delete the two equation\n "); printf("print the two equation\n"); printf("Modeify the equation\n"); printf("the Exist \n"); int choise; scanf(" the cases is %d",&choise);
{
while(case!=8)
switch(case); { case1:printf("please enter the equation1\n");
char equation1[30]; scanf("%s",&equation1); printf("please enter the equation 2\n"); char equation2[30]; scanf("%s",&equation2); break; case2:printf("ADE the two equation \n "); add(equation1,equation2,sum); break; case3:printf("subtract the two equation \n"); subtract(equation1,equationt2,subtr); break;
case4:printf("Multuply the two equation\n");
break;
case5:printf("Delete the equation\n"); delete(equation1,equation2); break;
case6:printf("print the equation\n");
{
if(equation1==NULL&&equation2==NULL)
printf("no information to print it\n"); } else printf("the case1 :the equation1"); print(equation1); printf("the case2:the equation2"); print(equation2); printf(:the sum of the equation\n); add(equation1,equation2,sum); printf("the subtrcation of the equation\n"); subtract(equation1,equation2,substr); if(multy!=NULL) printf("multiplication of the equation"); multply(equation1,equation2,multy);
break;
case7:printf("Modefiy the equation\n"); break;
case8:printf("Exist \n"); break;
default:printf("the result is wrong\n"); }
printf("please enter any case from it\n "); char k; scanf("%d",&k); printf("\n"); printf("\n"); printf("\n"); printf("\n") printf("please enter the two equation of the polynomial\n"); printf("\t\t \n"); printf("\t\t\n"); printf("please enter the two equation of the polynomial\n"); printf("ADE the two equation\n"); printf("Subtract the two equation\n"); printf("Multiply the two equation\n"); printf("Delete the two equation\n "); printf("print the two equation\n"); printf("Modeify the equation\n"); printf("the Exist \n"); int case; scanf("%d",&case); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n");
{ int case; printf("the equation that you want to delte it"); printf("case1"); printf("equation1"); printf("\n"); printf("case2"); printf("equation2"); printf("\n"); scanf("%d",&case); while(case!=1&&case!=2) {
printf("the wrong in formation\n"); printf("please enter any equation that you want to delete"); printf("case1"); printf("equation1"); printf("\n"); printf("case2"); printf("equation2");
}
if(case==1) {
delete list(equation1); printf("enter the anthor equation")' char[30]; scanf("%s",equation); input_equation(equation,equation1);
}
if(case==2) {
delete list(equation2); printf("enter the anthor equation")' char[30]; scanf("%s",equation); input_equation(equation,equation2);
}
}
}
}
}
-------------------------------------------
with correcting it please :)
a) please use code tags
b) we arent going to run the code for you to see what happens. that is your job
c) if it does have errors that you dont know how to fix we will help you with those