Advertisement
Anvis

altura con velocidad y ángulos

Mar 29th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <cmath>
  4. #include <iomanip>
  5. using namespace std;
  6.  
  7. main(){
  8.     float resul,vel,ang,ang2,velm;
  9.     cout<<"Ingrese la velocidad (M/h)";
  10.     cin>>vel;
  11.     cout<<"ingrese el valor del angulo";
  12.     cin>>ang;
  13.     velm=(vel*1609)/3600;
  14.     ang2=ang*2;
  15.     resul=((.5)*pow(velm, 2)*(.5-(.5*cos(ang2))))/9.8;
  16.     cout<<"La altura que alcanza la pelota es:\n";
  17.     cout<<resul;
  18.     cout<<"m\n";
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement