From 7bda07764186a875f1c468b736507c0346befcc5 Mon Sep 17 00:00:00 2001 From: Anibal LopezBonilla Date: Wed, 19 Oct 2022 22:42:05 -0700 Subject: Push 10 --- BlankConsoleLab/BlankConsoleLab.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 2e522be..9f65cad 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -1,6 +1,12 @@ // BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. // +/*Name: Anibal Lopez-Bonilla +*Project Lab01 Kite +* Last Editied 10/19/22 +* +*/ + #include using namespace std; @@ -61,22 +67,30 @@ int main() cout << "The area of the kite in squre meter is "; cout << Area; cout << " Square Meters" <= 1) { + //message used if the aspect ratio is greater than equal to one cout << "Keep in mind, a lower aspect ratio would provide more stability"; } + //Mass calculation Mass = Area * 135 / 1000; - + //Gravity Pull Calculation graPull = Mass * 9.8; + //Display the result of the mass calculation cout << "Your Kite Weighs: " << Mass << endl ; + //Display the result of the gravitational pull calculation cout << "The gravitational pull of your kite is " << graPull << endl; } -- cgit v1.2.3