diff options
| author | TheOtherTonyStark <[email protected]> | 2022-10-16 16:11:04 -0700 |
|---|---|---|
| committer | TheOtherTonyStark <[email protected]> | 2022-10-16 16:11:04 -0700 |
| commit | d4ac33a20c65c7a04c38334a94dcc033a31509e9 (patch) | |
| tree | b3fa5da6e4fcc5f4615bbbd8ba3ddee7a4b49e0c /BlankConsoleLab/CST116-Lab1-Chambers.cpp | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-lab1-theothertonystark-d4ac33a20c65c7a04c38334a94dcc033a31509e9.tar.xz cst116-lab1-theothertonystark-d4ac33a20c65c7a04c38334a94dcc033a31509e9.zip | |
First Commit
Diffstat (limited to 'BlankConsoleLab/CST116-Lab1-Chambers.cpp')
| -rw-r--r-- | BlankConsoleLab/CST116-Lab1-Chambers.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/BlankConsoleLab/CST116-Lab1-Chambers.cpp b/BlankConsoleLab/CST116-Lab1-Chambers.cpp new file mode 100644 index 0000000..2453f32 --- /dev/null +++ b/BlankConsoleLab/CST116-Lab1-Chambers.cpp @@ -0,0 +1,32 @@ +// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. +// + +#include <iostream> + +using namespace std; + +using std::cout; +using std::cin; +using std::endl; + +//Ask the user for the width and length in centimeters. +//Print what the user entered for the width and length. +//Compute the area of the kite.Area = (width � length) / 2 +//Convert the square centimeters to square meters by dividing by 10000. +//Print area in square meters.Note: square meters will use decimals. +//Compute the aspect ratio of the kite.The aspect ratio is width / length +//If the aspect ratio is greater than or equal to 1, print a warning message that a lower aspect ratio would provide more stability. + +int width; +int length; + +int main() +{ + cout << "Insert Kite width" ; + cin >> width; + + cout << "Insert Kite length" ; + cin >> length; + +} + |