diff options
| author | Trevor Bouchillon <[email protected]> | 2022-10-16 16:12:05 -0700 |
|---|---|---|
| committer | Trevor Bouchillon <[email protected]> | 2022-10-16 16:12:05 -0700 |
| commit | e8b01fcda64cb3536dde3b13cf1252ddd73bf420 (patch) | |
| tree | 5cbd66136c743e56746ac2dfedd53f79363fc037 /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | p1 2 done (diff) | |
| download | cst116-lab1-daboochillin-e8b01fcda64cb3536dde3b13cf1252ddd73bf420.tar.xz cst116-lab1-daboochillin-e8b01fcda64cb3536dde3b13cf1252ddd73bf420.zip | |
p1 4 done
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 11 |
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; } |