summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
blob: f4c5b978f4a5a15d4b2cbbcf9d1f3087d7c33da0 (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
44
45
46
47
48
49
50
51
52
53
54
// 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
    float Mass;             //Mass
    float GP;               //Gravitational Pull
    float KGmass;
    
    cout << "input width of the kite in cm ->> ";
    cin >> WidthK;

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

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

    Mass = ( 135 / Marea);

    KGmass = (Mass / 1000);

    GP = KGmass * 9.8;

    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;
    cout << "The mass of the kite in kilograms = " << KGmass << endl;
    cout << "The gravitational pull on the kite in newtons = " << GP << endl;

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

}