AQUI !! A CONTINUACION ESTA MI TRABAJO CODIFICACION PUEDEN ABRIR EL LINK:
"clik aqui las dos
trabajos"
- TRABAJO EN DEVC++ PROBLEMA DE LIBRO FISICA HACER "CLICK AQUI "
- TRABAJO EN WORD PROBLEMA DE LIBRO FISICA HACER" CLICK AQUI"
#include<iostream>
#include<math.h>
#include<stdlib.h>
using namespace std;
const int N=20, p=3, q=4;
int LeerVector(int n);
int MirarVector(int n);
int c, i, j, V[N], M[p][q];
void Problema();
void LeerMatriz();
void MirarMatriz();
void Problema2();
int main ()
{
int Opcion;
do
{// inicia el do while
cout<<"****** MENU ****** \n\n";
cout<<"1) Leer un Vector\n";
cout<<"2) Mirar el Vector \n";
cout<<"3) hallando tensiones \n";
cout<<"4) Leer una Matriz\n";
cout<<"5) Mirar la Matriz \n";
cout<<"6) valores matrices\n\n";
cout<<"****************** \n\n";
cout<<" Digite <0> para salir \n";
cout<<" Ingrese una Opcion: "; cin>> Opcion;
cout<<endl;
switch(Opcion)
{
case 1:
{
cout<<" **** Leer un Vector **** \n";
LeerVector(N);
}; break;
case 2:
{
cout<<" *** Mirar el Vector** \n";
MirarVector(N);
}; break;
case 3:
{
cout<<" hallando tensiones \n";
Problema();
}; break;
case 4:
{
cout<<" **** Leer una Matriz **** \n";
LeerMatriz();
}; break;
case 5:
{
cout<<" **** Mirar una Matriz **** \n";
MirarMatriz();
}; break;
case 6:
{
cout<<" **** PROBLEMA 2 **** \n";
Problema2();
}; break;
} // FIN DEL CASO
}while(Opcion !=0);
system ("pause");
return 0;
}
int LeerVector(int n)
{
for (i=1; i<= 13; i++)
V[i]= 75 + i;
}
int MirarVector(int n)
{
for (i=1; i<= n; i++)
cout<<V[i]<<endl;
}
void Problema()
{
int F, peso, angulo;
double PI, ang, RAD;
float ALPHA;
long double TAC, P, TBC, tan;
PI=3.141592;
TBC=750;
TAC=TBC;
angulo=30;
RAD=PI*60/180;
ang=RAD - ALPHA;
for (i=1; i<=13; i++)
{
cout<<i<<endl;
tan = sin(V[i])/cos(V[i]);
ALPHA=15/2;
cout<<"HALLANDO DIRECION ALPHA = "<<ALPHA<<endl;
P=(TAC*sin(V[i]))/(sin(RAD-ALPHA));
cout<<"HALLANDO FUERZA P ES= "<<P<<endl;
}
}
void LeerMatriz()
{
c=0;
for(i=1; i<=p; i++)
for(j=1; j<=q; j++)
{
c = c + 10;
M[i][j]= 30 + c;
}
}
void MirarMatriz()
{
for(i=1; i<=p; i++)
for(j=1; j<=q; j++)
{
cout<<M[i][j]<<endl;
}
}
void Problema2()
{
int F, peso, angulo;
double PI;
long double TAC, P, ALPHA, tan, ang;
long double RAD, TBC;
PI=3.141592;
TBC=750;
TAC=TBC;
angulo=30;
ALPHA=15/2;
RAD=PI*60/180;
ang= RAD - ALPHA;
for (i=1; i<=3; i++)
for (j=1; j<=4; j++)
{
cout<<i<<", "<<j <<endl;
ALPHA=15/2;
cout<<"HALLANDO DIRECION= "<<ALPHA<<endl;
P= TAC*sin(M[i][j])/sin(ang);
cout<<"HALLANDO FUERZA P= "<<P<<endl;
}
}