History Other / C++ Program

C++ Program

This essay C++ Program is available for you on Essays24.com! Search Term Papers, College Essay Examples and Free Essays on Essays24.com - full papers database.

Autor:  anton  19 September 2010
Tags:  Program
Words: 110   |   Pages: 1
Views: 428

# include

using namespace std;

int main ()


int lde, dde, wde; //length, depth, and width of deep end

int lse, dse, wse; //length, width, and depth of shallow end

int surfsh; //suface area of shallow end

int surfd; //surface area of deep end

cout dse;

cout > wse;

surf sh = (lse*wse) + (2*lse*hse) + (wse*hse)

cout > lde;

cout > dde;

while (dde < 10 || lde < 15)

{cout > dde

cin >> lde}

cout > wde

surfd = (lde * wde) + (hde*wde) + ((hde В– hse)*wde) + (2*lde*hde)

int surfpool; //the surface area of the entire pool

surfpool = surfsh + surfd

//the surface area of the pool equals the amount of square feet of pool liner that is needed.


Get Better Grades Today

Join Essays24.com and get instant access to over 60,000+ Papers and Essays

Please enter your username and password
Forgot your password?