summaryrefslogtreecommitdiff
path: root/Lab1-PSEUDOCODE-Davis.rtf
blob: 507efb73bc4cc154c3e00d00d036b6c1afde1651 (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
{\rtf1\ansi\ansicpg1252\cocoartf2639
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\margl1440\margr1440\vieww11520\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0

\f0\fs24 \cf0 Pseudo Code\
\
Variables = 0\
\
Print \'93What is your kites width?\
User input = width\
	if (width > 400 or width < 1)\
		Print \'93Please enter a different width\'94\
	while (width > 400 or width < 1)\
Print \'93What is your kites length?\'94\
User input = length\
	if (length > 400 or length < 1)\
		Print \'93Please enter a different length\'94\
	while (length > 400 or length < 1)\
\
Area = ((length * width) / 2) / 1000\
Print \'93The area of your kite is \'93 +area\
\
Aspectratio = width / length\
Print \'93Your aspect ratio is \'93 +aspectratio\
If (aspect ratio >= 1)\
	print \'93Your kite is not very stable, a lower aspect ratio would make it more stable\'94\
Else if (aspect ratio < 1)\
	Print \'93Your kite is stable! Congrats\'94\
Mass = ((length * width) * 135) / 1000)\
Print \'93In kg your kite weighs \'93 +mass\
\
Gravitationalpull = mass * 9.8\
Print \'93The gravitational pull of your kite is \'93 +gravitationalpull \'93N/kg\'94\
Return variables to 0}