ONLY NEED HELP ON 7 i think it might need to be in a c progr
Solution
Ques 5
#include <iostream>
using namespace std;
int main()
{
int x=0, y=0;
float F1=0,F2=0, F3=0,F4=0;
cout << \"Enter the Value of X\" << endl;
cin >> x;
cout<< \"Enter the value of Y\" << endl;
cin >> y;
if(x>0 && y>0){
F1 = x*2+y*y;
}
else if (x>0 && y<0){
F2 = 3^(x-y/(x+y));
}
else if(x<=0 && y>=0)
{
F3 = (x+y)^(x*x+y*y*y)/(x+y)*(x-y);
}
else if(x<=0 && y<=0){
F4 = (x*y)/(x-y)^(x*y/3);
}
else
{
}
cout << \"F1 = \" << F1 << endl;
cout << \" F2 = \" << F2 << endl ;
cout << \"F3 = \" << F3 << endl;
cout << \"F4 = \" << F4<< endl;;
return 0;
}
Ques 6
#include <iostream>
using namespace std;
int main()
{
int a=0, b=0,c=0;
float F1=0,F2=0;
cout << \"Enter the value of a\" << endl;
cin >> a;
cout<< \"Enter the value of b\" << endl;
cin >> b;
cout<< \"Enter the value of c\" << endl;
cin >> c;
int d = b*b-4*a*c;
if(d>0)
cout << \"Both roots are real and unequal\" << endl;
else if (d<0)
cout << \"Both roots are complex\" << endl;
else
cout << \"Both roots are real and equal\" << endl;
return 0;
}

