summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
authorTrevor Bouchillon <[email protected]>2022-10-16 16:12:05 -0700
committerTrevor Bouchillon <[email protected]>2022-10-16 16:12:05 -0700
commite8b01fcda64cb3536dde3b13cf1252ddd73bf420 (patch)
tree5cbd66136c743e56746ac2dfedd53f79363fc037 /BlankConsoleLab/BlankConsoleLab.cpp
parentp1 2 done (diff)
downloadcst116-lab1-daboochillin-e8b01fcda64cb3536dde3b13cf1252ddd73bf420.tar.xz
cst116-lab1-daboochillin-e8b01fcda64cb3536dde3b13cf1252ddd73bf420.zip
p1 4 done
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index e8982cf..4e375ca 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -1,4 +1,7 @@
-// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there.
+//
+// Lab1
+// Trevor Bouchillon
+// CST116
//
#include <iostream>
@@ -13,6 +16,9 @@ int main()
{
float kitewidth;
float kitelength;
+ float kiteaream;
+ float kiteareacm
+
cout << "Please enter width of kite (horizontal diagonal) in meters." << endl;
cin >> kitewidth;
@@ -20,6 +26,7 @@ int main()
cin >> kitelength;
cout << kitelength << " " << kitewidth << endl;
-
+ kiteaream = (kitewidth * kitelength) / 2;
+ kiteareacm = kiteaream / 10000;
}