Homework 8 12-17-09 river project part 3

Homework 8 12-17-09 river project part 3 - Alex Fidalgo...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Alex Fidalgo 12/17/09 Intro to Programming E-115-C, E-115-LK I pledge that I have abided by the Stevens Honor System. _________________________ #include <iostream> #include <cmath> #include <string> #include <fstream> using namespace std; float wvfunc( float wvshore, float wvcenter, float Wriver, float y); float rwfunc( float rwstart, float rwend, float Dwaterfall, float x); int main() { float Ddown, Wriver, Vrow, Vwater, Dwaterfall, dx, dy, x, y, k, a, p, wvshore, wvcenter, rwstart, rwend; int nsteps; char go; ofstream fout; ifstream fin; go = 'y' ; while (go == 'y' ) { cout << endl << "Please enter distace to the waterfall: " ; cin >> Dwaterfall; cout << endl << "Please enter the starting width of the river: " ; cin >> rwstart; cout << endl << "Please enter the end with of the river: " ; cin >> rwend; cout << endl << "Please enter the velocity of the water at the shore: " ; cin >> wvshore; cout << endl << "Please enter the velocity of the water at the center: " ; cin >> wvcenter; cout << endl <<
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Homework 8 12-17-09 river project part 3 - Alex Fidalgo...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online