blob: d9956dfdbbc538ae8b32ddda322afa30607c8ab2 (
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
55
56
57
58
59
60
61
62
63
64
65
|
//William Bishop
//[email protected]
// 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()
{
int kite;
int horizontal_kitew;
int vertical_kitel;
cout << "Please enter a width of the kite" << endl;
cin >> horizontal_kitew
cout << "Your width is: " << horizontal_kitew << endl;
cout << "Please enter your height of the kite " << endl;
cin >> vertical_kitel;
cout << "Our width and the height is: " << horizontal_kitew << "and " << vertical_kitel << endl;
int areaofkite;
int areaofkite = (horizontal_kitew * vertical_kitel) / 2;
cout << "The area of the kite is " << areaofkite;
float Area_of_kiteM;
float Area_of_kiteM = areaofkite / 10000;
cout << " " << Area_of_kiteM << endl;
float aspectratio;
float aspectratio = horizontal_kitew / vertical_kitel;
cout << " Our aspect ratio is : " << aspectratio << endl;
if (aspectratio >= 1)
cout << " WARNING : A lower aspect ratio than 1 would make more stability. " << endl;
//Part two
int width2;
int length2;
cout << "Please enter the width of the kite: ";
cin >> width2;
cout << "Thank you for entering: " << width2 << endl;
cout << "Please enter the length of the kite: ";
cin >> length2;
cout << "Thank you for entering our width and length : " << width2", " << length2 << endl;
}
|