summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
blob: bbb50d17a43fed37400fd2aa05bb77cdc4fd7244 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// 
// Lab1 
// Trevor Bouchillon
// CST116
//

#include <iostream>

using namespace std;

using std::cout;
using std::cin;
using std::endl;

int main()
{
    float kitewidth;
    float kitelength;
    float kiteaream;
    float kiteareacm;
    float kiteaspectratio;


    cout << "Please enter width of kite (horizontal diagonal) in meters." << endl;
    cin >> kitewidth;
    cout << "Please enter length of kite (vertical diagonal) in meters." << endl;
    cin >> kitelength;

    cout << "Your kites length is: " kitelength << " meters, and your kites width is: " << kitewidth << " meters." endl;
    kiteaream = (kitewidth * kitelength) / 2;
    kiteareacm = kiteaream / 10000;
    cout << "Your kites area in meters is: " << kiteaream << "meters squared." << endl;
    kiteaspectratio = kitewidth / kitelength;

    if (kiteaspectratio >= 1) {
        cout << "WARNING: Your kites aspect ratio is larger then or equal to 1. A smaller aspect ratio will provide your kite more stability." << endl;
    }

    cout << kiteaspectratio;
    
}