#include < iostream>
Usning namespace std;
Void fun_num1 ();
Void fun_num2();
Void fun_num3 () ;
Void fun_num4 ();
Int main ()
{
Cout<<" computing area program "<<endl;
Cout<<"******************************************* *****"<<endl;
Cout<<endl;
Cout<<" A : compute the area by triangle method "<<endl;
Cout <<"press 1 : to compute the area by knowing base + height of triangle "<<endl;
Cout <<"press 2 : to compute the area by knowing base ,other distance in triangle and the angle between them "<<endl;
Cout<<"press 3 : to compute the area by knowing triangle's distances " << endl;
Cout <<endl<<endl;
Cout <<"press 4 : B : to compute the regular Area ( with hropizidal method "<<endl;
Cout <<endl; endl;
Cout<<"press 5 : C : to compute the irrigual areas wuth Grid method " << endl;
Cout<<"press 6 : to compute the irregular area by Tropezoidal method "<<endl;
Cout <<"press 7: to compute the irregular area by planometer method "<<endl;
Cout<<endl<<endl;
Cout<<" Volume "<<endl;
Cout <<"press 8: to compute volume by End – area method "<<endl;
Cout <<"press 9: to compute volume by Mean method "<<endl;
Cout <<"press 10: to compute volume by Pridmodial method "<<endl;
Cout <<"press 11: to compute volume by spot elevation "<<endl;
Cout <<endl;
Cout <<endl;
Cout << " Enter a number please : "<<endl;
Int m_num;
Cin >> m_num;
Cout <<endl;
Return 0;
}
Void fun_num1 ()
{
Int base , height ;
Double area ;
Cout << " Enter the base "<<endl;
Cin >> base ;
Cout << endl;
Cout <<" Enter the height "<<endl;
Cin<< height;
Cout <<endl;
Area = (height + base)*0.5;
Cout << " the Area is : " << area << endl;
}
Void fun_num2()
{
Int base , dis ;
Int ang;
Double area ;
Cout << " Enter the base "<<endl;
Cin >> base ;
Cout <<endl;
Cout << " Enter the distance "<<endl;
Cin >> dis ;
Cout <<" Enter the angle in dgree " << endl;
Cin >> ang ;
Cout <<endl;
Area = 0.5*base * dis * sin ( ang )
Cout << " the area is : " << area << endl;
}
Void fun_num3 ()
{
Double a, b ,c ;
Double s,a ;
Cout << " Enter the distance of the triangle A , B , C " << endl ;
Cin >> a ;
Cin >> b ;
Cin >> c ;
Cout << endl;
S = ( a + b + c ) *0.5 ;
A = ( s(s-a)(s-b)(s-c))^0.5
Cout << " the area is : "<< a << endl;
}
Void fun_num4 ()
{
Int x1 , x2 , x3 , x4 , x5 ;
Int y1 , y2, y3 , y4 , y5;
Double area ;
Cout << " Enter the value of x1 to x5 "<< endl;
Cin >> x1;
Cin >> x2;
Cin >> x3;
Cin >> x4;
Cin >>x5;
Cout <<endl;
Cout<<" Enter the value of y1 to y5 " <<endl;
Cin >> y1 ;
Cin >> y2;
Cin >> y3;
Cin >> y4;
Cin >> y5;
Cout<<endl;
Area = (y1*x1 + y2*x3 + y3*x4 + y4* x5 + y5*x1) – ( x1*y2 + x2*y3 + x3*y4 + x4*y5 + x5*y1);
Cout << " the area is "<< area << endl;
}
Void fun_num5 ()
{
}
الذين يشاهدون الموضوع الآن: 60 (0 من الأعضاء و 60 زائر)
مواقع النشر (المفضلة)