summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
blob: 1f4452f6542a5b79d9066bb4ebf0d92b5b2e97d6 (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
43
// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>

using namespace std;

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

int main()
{
    //Variables
    float WidthK;           //Width of Kite
    float LengthK;          //Length of Kite
    float CMarea;           //Centimeters Area
    float Marea;            //Meters Area     
    float AR;               //Aspect Ratio
    
    cout << "input width of the kite ->> ";
    cin >> WidthK;

    cout << "input length of the kite ->> ";
    cin >> LengthK;

    CMarea = (WidthK * LengthK) / 2;
    
    Marea = CMarea / 10000;
    
    AR = WidthK / LengthK;

    cout << "The area of the kite in centimeters = " << CMarea << endl;
    cout << "The area of the kite in meters = " << Marea << endl;
    cout << "The aspect ratio of the kite = " << AR << endl;

    if (AR >= 1)
    {
        cout << "A lower aspect ratio would provide more stability";
    }

}