From e8b01fcda64cb3536dde3b13cf1252ddd73bf420 Mon Sep 17 00:00:00 2001 From: Trevor Bouchillon Date: Sun, 16 Oct 2022 16:12:05 -0700 Subject: p1 4 done --- BlankConsoleLab/BlankConsoleLab.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') 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 @@ -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; } -- cgit v1.2.3