|
I am sure i have the mathamatics correct on this, but im unsure of the programming aspect of it..... this is wat i have and wont compile....
#include <iostream.h> #include <stdlib.h> using namespace std.; //define floats
int main() { float distance; float speed; float time; float acceleration;
cout < < " Enter jets takeoff speed in Km/hr.: /n"; cin > > speed; cout < < "Enter distance of takeoff in meters.: /n"; cin > > meters;
time = (7.2*(distance)/ speed) acceleration = (speed /(distance * 3.6)
cout < < "The acceleration of a jet"; cout < < "traveling at " < < speed < <"Km/Hr" endl; cout < < "at a distance of " < < distance < < "meters." endl; cout < < "Is " < < acceleration < < " meters/seconds^2" endl; cout < < ", with a time of " < < time < < " seconds to reach takeoff speed" endl;
system("PAUSE"); return 0; }
if u spot any errors plz tell me, bc i m lost in code! thank you!
|