This is the program that i need to write.......
This program produces a table
that tracks the fate of a free-falling balloon.
Dropped from height you specify.
Please input an initial height in feet: 100
Please input the change in time between the rows: 1
+--------------+--------+----------+
| Time Elapsed | Height | Velocity |
+--------------+--------+----------+
| 0 | 100 | 0 |
+--------------+--------+----------+
| 1 | 90.2 | -9.81 |
+--------------+--------+----------+
| 2 | 60.8 | -19.6 |
+--------------+--------+----------+
| 3 | 11.7 | -29.4 |
+--------------+--------+----------+
| 3.19 | 0 | -31.3 |
+--------------+--------+----------+
Splat!!!!!!!!!!!!!! "I'm soakkkeeedd"
The balloon dropped in 3.19 secondss
This is what i have so far.... NEED HELP....PLEASE
//Water Balloon Drop
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double feet,rows,velocity,height;
double time_elapsed;
cout << "This program produces a table\n";
cout << "that tracks the fate of a free-falling balloon.\n";
cout << "Dropped from height you specify.\n";
cout << "\n";
cout << "Please input an initial height in feet:";
cin >> feet;
cout << "Please input the change in time between the rows:";
cin >> rows;
cout << "Enter velocity:";
cin >> velocity;
cout << "\n";
cout << "Splat!!!!!!!!!!!!!!" "I'm soakkkeeedd\n\n";
cout << "The balloon dropped in" << time_elapsed << endl;
return 0;
}
NEED SOME HELP....
Last edited on
You provided the velocity, but you dont provide its computation.