blob: 46fc58ed6cb960c8753876d4cc18f57862cba0c2 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
//William Bishop
//[email protected]
// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
using namespace std;
constant int x = mass / sq_meter;
using std::cout;
using std::cin;
using std::endl;
int main()
{
constant int x = mass / sq_meter;
int kite;
string sq_meter;
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;
float area2;
cout << "Please enter the width of the kite: ";
cout << " Please enter a width of the kite from 1 to 400. " << endl;
cin >> width2;
if (width2 > 0 && width2 < 401)
cout << "Thank you for entering. " << width2;
else
cout << "Please enter the width from 1 to 400. " << endl;
cin >> width2;
cout << "Please enter the length of the kite: ";
cout << " Please enter a length of the kite from 1 to 400. " << endl;
cin >> length2;
if (length2 > 0 && length2 < 401)
cout << "Thank you for entering. " << length2;
else
cout << "Please enter the length from 1 to 400. " << endl;
cin >> length2;
float area2 = length2 * width2;
cout << "The area is " << area2;
float weight;
float mass;
float height;
float density;
cout << "Please intput the weight of the kite. ";
cin >> weight;
cout << "Please input the height of the kite " << endl;
cin >> height;
cout << "Please input the density of the kite in kilograms per cubic meter. " << endl;
cin >> density;
cout << "Our density of the kite is " << density << "Our height of the kite is " << height<<endl;
float volume;
float length2meters;
float width2meters;
float length2meters = length2 / 10000;
float width2meters = width2 / 10000;
float area2 = width2meters * length2meters;
float volume = area2 * height;
float mass = volume * density;
cout << "Our density of our kite is " << mass<<endl;
string sq_meter = "sqmeter";
cout << " Our mass is " << x << endl;
float Gravity_Pull;
float distance;
cout << "Please enter the distance from earth of the kite in meters. "
cin >> distance;
Gravity_Pull = (10 * mass^2) / distance;
cout << "The pull on gravity from our kite is " << Gravity_Pull << "m^2/kg^2" << endl;
}
|