Your code has multiple typos (which, assuming this is your code and not homework, your compiler should detect for you), so let's take it step-by-step:)
double lenght;
Is misspelled, throwing off most of the code.
Volume = length * width * thickness;
weight = Volume -150;
C++ is case-sensitive. You have volume declared with a lower case v...
double volume;
Either change this, or fix the other calls to the variable.
1 2
|
length = 6'0;
width = 8'0;
|
You have them defined as
double
s, so I'm just going to assume this is supposed to be 6.0 and 8.0. Get rid of the apostrophe, and replace it with a period.
Other than that, I think it's okay. You could also define all those doubles like...
double lenghtft, lenghtin, thickft, thickin, widthft, widthin, length, width, thickness, volume, weight;
But that's more for style preference.