From 7444a92435fec786d48c02da4354c92a9cb5fe4a Mon Sep 17 00:00:00 2001 From: Anibal LopezBonilla Date: Wed, 5 Oct 2022 16:44:48 -0700 Subject: Push 2 Part 2 --- BlankConsoleLab/BlankConsoleLab.cpp | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index e83e6f9..ce7017e 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -9,34 +9,45 @@ using std::cout; using std::cin; using std::endl; -int main() -{ //Variables used in the programming. - float width; + float w; float length; float Area; float aspectR; +int main() +{ + //Welcome Message cout << "Hello welcome to the Kite App" << endl << endl; + cout << "Please enter your kite's width in CM "<< endl; + cin >> w; + while (w < 1 || w > 400) + { + cout << "Please enter your kite's width in CM " << endl; + cin >> w; + } + //Enter Width and Length in centimeters - cout << "Please enter your kite's width in CM "<< endl; - cin >> width; - cout << "Please Enter your kite's length in CM " <> length; - + cout << "Please Enter your kite's length in CM " << endl; + cin >> length; + while (length < 1 || length > 400) + { + cout << "Please Enter your kite's length in CM " << endl; + cin >> length; + } //Output the measures entered by user cout << "Your kite Measurements is "; - cout << width; + cout << w; cout << " By "; cout <