This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: cout <<"Please enter the height of the bounce."<<endl cin >> z cout <<"The ball will bounce " << xheight(z) <<" feet on the next bounce."<<endl return 0 } #include <iostream> using namespace std int mult(int x, int y, int z) { return x*y*z } float mult(float x, float y, float z) { return x*y*z } double mult(double x, double y, double z) { return x*y*z } int main(void) { int ix = 2, iy = 3, iz = 4 float fx = 3, fy= 4, fz = 5 double dx = 4, dy = 5, dz = 6 d cout <<"The answer is " << mult(ix, iy, iz) <<endl Sheet1 Page 3 cout <<"The answer is " << mult(fx, fy, fz) <<endl cout <<"The answer is " << mult(dx, dy, dz) <<endl return 0 } Sheet1 Page 4 iCount <= 10 iCount++ ) Sheet1 Page 5 //The extra 100 is for the intial drop of the ball Sheet1 Page 6...
View
Full Document
 Spring '09
 pryor
 Control flow, Carriage return, main(void)

Click to edit the document details