// 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() { int i = 0; float width, length; while (i == 0) { cout << "Enter the width of the kite in meters. Please enter a value between 1 and 400." << endl; cin >> width; cout << "Enter the length of the kite in meters. Please enter a value between 1 and 400." << endl; cin >> length; if ((1 <= width && width <= 400) && (1 <= length && length <= 400)) { cout << "You have entered " << width << " meters for width." << endl; cout << "You have entered " << length << " meters for length." << endl; i = 1; } else { cout << "Please only enter values between 1 and 400." << endl; } } float ratio = (width / length); if (ratio >= 1) { cout << "WARNING: A lower aspect ratio will provide more stability." << endl; } float areacm = (width * length/2); float areamt = (areacm / 10000); cout << "Area of kite is " << areamt <<" square meters" << endl; float mass = (areamt*135/1000); cout << "Weight of kite is " << mass << "kg" << endl; float grav = (mass * 9.8); cout << "Gravitational pull is " << grav << " newtons per kg" << endl; return 0; }