summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
blob: e7ffca3948cdccd0c10e23b80589b54fcb0c9b22 (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
#include <iostream>
#include <iomanip>
using std::cout;
using std::cin;
using std::endl;

int main()
{
    float Width;
    float Length;
    float Area;
    float Area2;
    float aspectr;
    //float celcius2 = 0;

    cout << "What is the Width of your kite in centimeters? ";
    cin >> Width;

    cout << "What is the Length of your kite in centimeters? ";
    cin >> Length;

    Area = (Width * Length) / 2;
    Area2 = Area / 10000;
    aspectr = Width / Length;


    cout << "Area in Meters = " << Area2 << endl;

    cout << "Aspect Ratio = " << aspectr << endl;

    if (aspectr >= 1)
        cout << "Your Aspect Ratio is > 1" << endl;

    else if (aspectr < 1)
        cout << "Your Aspect Ratio is < 1" << endl;

    return 0;
}