diff options
| author | Andrei F <[email protected]> | 2022-10-19 21:23:01 -0700 |
|---|---|---|
| committer | Andrei F <[email protected]> | 2022-10-19 21:23:01 -0700 |
| commit | dffb264afa1381b522d04e4c81200f61c705516d (patch) | |
| tree | 800d1e7899201cc975f595f3bd2abac3365209c1 | |
| parent | Added .gitignore (diff) | |
| download | cst116-lab1-florea-dffb264afa1381b522d04e4c81200f61c705516d.tar.xz cst116-lab1-florea-dffb264afa1381b522d04e4c81200f61c705516d.zip | |
Finished step 1
| -rw-r--r-- | .idea/.gitignore | 8 | ||||
| -rw-r--r-- | .idea/.name | 1 | ||||
| -rw-r--r-- | .idea/cst116-lab1-florea.iml | 2 | ||||
| -rw-r--r-- | .idea/misc.xml | 4 | ||||
| -rw-r--r-- | .idea/modules.xml | 8 | ||||
| -rw-r--r-- | .idea/vcs.xml | 6 | ||||
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 20 |
7 files changed, 46 insertions, 3 deletions
diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..d028689 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +cst116_lab1_florea
\ No newline at end of file diff --git a/.idea/cst116-lab1-florea.iml b/.idea/cst116-lab1-florea.iml new file mode 100644 index 0000000..f08604b --- /dev/null +++ b/.idea/cst116-lab1-florea.iml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module classpath="CMake" type="CPP_MODULE" version="4" />
\ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..79b3c94 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" /> +</project>
\ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..7401814 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/.idea/cst116-lab1-florea.iml" filepath="$PROJECT_DIR$/.idea/cst116-lab1-florea.iml" /> + </modules> + </component> +</project>
\ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="$PROJECT_DIR$" vcs="Git" /> + </component> +</project>
\ No newline at end of file diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed5f807..b8ebf9d 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -1,5 +1,11 @@ -// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. -// +/* + * Andrei Florea - CST 116 - Lab 1 (Part 1 and Part 2) - Learning input, output, if statements, loops, simple + * calculations + * + * The purpose of this program is to take input regarding kite specifications and output + * if the kite is efficient at flying or if it is able to fly. + * + */ #include <iostream> @@ -11,6 +17,14 @@ using std::endl; int main() { - cout << "Hello World!\n"; + float width, length; + + cout << "Please enter the WIDTH of your kite in centimeters (decimals are OK): "; + cin >> width; + cout << "Please enter the LENGTH of your kite in centimeters (decimals are OK): "; + cin >> length; + + + } |