diff options
| author | Morgan Cyrus <[email protected]> | 2022-10-17 22:06:57 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-17 22:06:57 -0700 |
| commit | 3e0c0b95d83a4896c1bf24ab08317b5654999e59 (patch) | |
| tree | 266314587d42888b83a01b25bf2d8cd51982f578 /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-lab1-cyrus-3e0c0b95d83a4896c1bf24ab08317b5654999e59.tar.xz cst116-lab1-cyrus-3e0c0b95d83a4896c1bf24ab08317b5654999e59.zip | |
Update BlankConsoleLab.cpp
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed5f807..ba46e62 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -1,16 +1,39 @@ -// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. -// +/* +* BlankConsoleLab.cpp : This file contains the 'main' function.Program execution begins and ends there. +* +* Morgan Cyrus +* CST116_Lab1_Cyrus +* Kite Lab +* +* Note: This has been put in order of completion. Do one step and then compile / check it. +* +* 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. +* +* Your output should be self-documenting. In other words, it should show the input with labels and then the output. You can see some examples of final outputs at the end. +*/ #include <iostream> -using namespace std; - using std::cout; using std::cin; using std::endl; int main() { - cout << "Hello World!\n"; -} + int userIn = 0; + int kiteWidth = 0; + int kiteLen = 0; + + cout << "Enter value for kite width in cm: "; + cin >> kiteWidth; + cout << endl << "Enter value for kite length in cm: "; + cin >> kiteLen; + +} |