|
-
- We wrote a C++ program that incorporated the rocket equation within loops. The first two loops varied the payload weight when given an exhaust velocity. We varied the payload weight between 1000 and 3000 kg. The two exhaust velocities we used were 3.7 and 4.1. The last two loops varied the exhaust velocity, when given the payload. We varied the exhaust velocities between 3.0 and 5.0. We chose to use 2600 and 2000 kg for the payload weights we tested. Each loop ran through a function, "fuelwt", which takes the given weight and velocity and runs through the equations to find, and return, fuel weight. Each loop then output the payload weight, exhaust velocity, and the resulting fuel weight for each run through.
|