#include using namespace std; int main() { int width, length; float area, ratio, mass, force; const float massCon = 135; cout << "Kite Math 1.0" << endl; //inputs do { cout << "Input the width of your kite (1-400 cm):" << endl; cin >> width; if (width < 1 || width > 400) cout << "Input a valid number." << endl; cout << endl; } while (width < 1 || width > 400); do { cout << "Input the length of your kite (1-400 cm):" << endl; cin >> length; if (length < 1 || length > 400) cout << "Input a valid number." << endl; cout << endl; } while (length < 1 || length > 400); //calculations area = ((width * length) / 2) / 10000; ratio = width / length; mass = massCon * area; force = (mass / 1000) * 9.8; //outputs cout << "Width: " << width << " cm" << endl; cout << "length: " << length << " cm" << endl; cout << "Ratio: " << ratio << endl; if (ratio >= 1) { cout << "A lower aspect ratio may provide more kite stability" << endl; } cout << "Area: " << area << " m^2" << endl; cout << "Mass: " << mass << " g" << endl; cout << "Force of gravity: " << force << " N" << endl; }