summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
blob: 5cb203936c8e15a9b9f8b14c580141ad6c3e2517 (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.
//
/*
    Wyatt Johnson
    CST 116
    Lab1

*/
#include <iostream>

using namespace std;


int main()
{
    float width = 0, length = 0;

    cout << "Please input your kites width in centimeters: ";
    cin >> width;
    
    cout << endl;

    cout << "Please input your kites height in centimeters: ";
    cin >> length;
    cout << endl;

    cout << "Your kites width will be: " << width << " cm\nYour kites height will be: " << length << " cm" << endl;


    float area = (width / length) / 10000;

    cout << "The area of your kite in square meters is " << area << endl;

    float aspect_ratio = width / length;
    if (aspect_ratio > 1)
    {
        cout << "Your aspect ration is greater than 1 (width/length: " << width << "/" << length << " = " << aspect_ratio << ")\nLower aspect ratios will have greater stability." << endl;
    }



}