// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include using namespace std; using std::cout; using std::cin; using std::endl; int main() { float width, length, area, ratio, gravitational ; const int mass = 135; cout << "Enter width (cm) : "; cin >> width; while (width < 1 || width > 400) { cout << "value must be between 1 and 400" << endl; cout << "Enter width (cm) : "; cin >> width; } cout << "Enter length (cm) : "; cin >> length; while (length < 1 || length > 400) { cout << "value must be between 1 and 400" << endl; cout << "Enter length (cm) : "; cin >> length; } cout << "width: "; cout << width<< endl; cout << "length: "; cout << length << endl; area = (width * length / 2) / 10000; cout << "area (m) : "; cout << area << endl; ratio = width / length; cout << "ratio: "; cout << ratio << endl; if (ratio >= 1) cout << "a lower aspect ratio would provide more stability" << endl; gravitational = mass * area; cout << "gravitational: "; cout << gravitational << endl; }