{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Tree Problem

# Tree Problem - cin>> Diameter cout<<"Enter the...

This preview shows page 1. Sign up to view the full content.

Sheet1 Page 1 /****************************************************************************** Craig Richardson Aria Mavvaji Hyun Shin ******************************************************************************/ #include <iostream> #include <cmath> using namespace std int main() { int Height, Weight double Mean, Diameter, pi=3.1415926 cout << "Enter the diameter of the tree in inches: "
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cin >> Diameter cout << "Enter the height of the tree in feet: " cin >> Height cout << "Enter the weight of the tree in tons: " cin >> Weight Diameter = Diameter / 12 Weight = Weight * 2000 Mean = ( Weight / (Height * pow(Diameter, 2) * pi)) M cout << "The mean number of pounds per cubic foot of the tree is: " << Mean <<endl return 0 }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online