From 400c7521c77bbe72e8d90795b79d9b5f16b05664 Mon Sep 17 00:00:00 2001 From: levidavis04 <114828884+levidavis04@users.noreply.github.com> Date: Tue, 18 Oct 2022 15:26:03 -0700 Subject: Add files via upload --- main.cpp | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 main.cpp (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..c0d3a6b --- /dev/null +++ b/main.cpp @@ -0,0 +1,54 @@ +// +// main.cpp +// CST116-Lab1 Kite Demtion Project LeviDavis +// +// Created by Levi on 10/13/22. +// + +#include + +int width = 0; +int length = 0; +float area = 0; +float aspectratio = 0; +float mass = 0; +float gravitationalpull = 0; + +using namespace std; + +using std::cout; +using std::cin; +using std::endl; + +int main() +{ + do { + cout << "What is your kite's width in cenemeters? Please enter a width between 1-400 cm" << endl; + cin >> width; + if (width > 400 || width < 1) + cout << "Please enter a different width" < 400 || width < 1); + do { + cout << "Now what is the length of your kite in cenemeters? Please enter a length between 1-400 cm" <> length; + if (length > 400 || length > 1) + cout << "Please enter a different length"< 400 || length < 1); + + cout << "The width of your kite is " <= 1) + cout << "Your kite is not very stable, a lower aspect ratio would make it more stable"<