Skip to content
Open

44 #1

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
52ee9e5
Create JaredPohlmann Lab1
jaredpohlmann Jan 25, 2018
ddecf9a
Rename JaredPohlmann Lab1 to JaredPohlmann Lab1.md
jaredpohlmann Jan 25, 2018
9645bdc
Create Yesenia_Lopez.md
ylopez20 Jan 25, 2018
d16da89
Create Ben Lab 1
bwortman2 Jan 25, 2018
5e89036
Create Shane_Lab
FormaldaHiya Jan 25, 2018
28b7d58
Create Frazier.md
jfrazie3 Jan 25, 2018
78a56a0
Create piiamt.md
piiamt Jan 25, 2018
9d2a65e
Merge pull request #2 from piiamt/master
piiamt Jan 25, 2018
6224c23
Update Frazier.md
jfrazie3 Jan 25, 2018
1925a05
Update and rename JaredPohlmann Lab1.md to JaredPohlmannLab1.md
jaredpohlmann Jan 25, 2018
b25907c
Update Yesenia_Lopez.md
ylopez20 Jan 25, 2018
cb2e49c
Update JaredPohlmannLab1.md
jaredpohlmann Jan 25, 2018
ad1c1f7
Create jackhinze.md
jackhinze Jan 25, 2018
6e2133f
Create kbenes2.md
kbenes2 Jan 25, 2018
7ea86f3
Merge pull request #1 from CMPSC1500-Spring17/master
kbenes2 Jan 25, 2018
5a1363f
Update Shane_Lab
FormaldaHiya Jan 25, 2018
e86164c
Update Lab_1.md
dmonroe527 Jan 25, 2018
efb093e
Rename jackhinze.md to jackhinzegrade%.md
jackhinze Jan 25, 2018
cafb3f4
Update kbenes2.md
kbenes2 Jan 25, 2018
064f7b6
Update Lab_1.md
dmonroe527 Jan 25, 2018
ad36032
Update kbenes2.md
kbenes2 Jan 25, 2018
c97123e
Update Yesenia_Lopez.md
ylopez20 Jan 25, 2018
ad2233b
Update JaredPohlmannLab1.md
jaredpohlmann Jan 25, 2018
1f749a5
Update Yesenia_Lopez.md
ylopez20 Jan 25, 2018
d8ac822
Update JaredPohlmannLab1.md
jaredpohlmann Jan 25, 2018
01cf879
Update Yesenia_Lopez.md
ylopez20 Jan 25, 2018
2605152
Create jackhinzeCorF.md
jackhinze Jan 25, 2018
cff54d1
Update Yesenia_Lopez.md
ylopez20 Jan 25, 2018
3fd39e7
Update jackhinzeCorF.md
jackhinze Jan 25, 2018
7e5aef9
Update jackhinzeCorF.md
jackhinze Jan 25, 2018
dc31aed
Update jackhinzeCorF.md
jackhinze Jan 25, 2018
babe909
Update Yesenia_Lopez.md
ylopez20 Jan 25, 2018
8879d25
Update and rename jackhinzegrade%.md to jackhinze.md
jackhinze Jan 25, 2018
1428e41
Update jackhinze.md
jackhinze Jan 25, 2018
4a6e134
Update jackhinze.md
jackhinze Jan 25, 2018
048a671
Merge pull request #3 from jaredpohlmann/master
jaredpohlmann Jan 25, 2018
11acab9
Delete jackhinzeCorF.md
jackhinze Jan 25, 2018
6934973
Merge pull request #6 from jackhinze/master
jackhinze Jan 25, 2018
4691a09
Merge pull request #7 from ylopez20/master
jifland Jan 25, 2018
62ddd68
Update kbenes2.md
kbenes2 Jan 25, 2018
bfc8636
Merge pull request #8 from kbenes2/master
kbenes2 Jan 25, 2018
72c9c12
Update Shane_Lab
FormaldaHiya Jan 25, 2018
cdc6d62
Update piiamt.md
piiamt Jan 25, 2018
396f20c
Create Jeffrey's Lab 1
JVanderhart Jan 25, 2018
793ab89
Merge pull request #10 from JVanderhart/master
JVanderhart Jan 25, 2018
cc0b163
Merge pull request #11 from piiamt/master
piiamt Jan 25, 2018
179aaea
Update piiamt.md
piiamt Jan 25, 2018
3ece259
Update Frazier.md
jfrazie3 Jan 25, 2018
d4dd532
Update Ben Lab 1
bwortman2 Jan 25, 2018
504c022
Merge pull request #12 from elijahbeed/master
elijahbeed Jan 25, 2018
f236c64
Merge pull request #13 from jfrazie3/master
jfrazie3 Jan 25, 2018
bed640f
Merge pull request #14 from bwortman2/master
bwortman2 Jan 25, 2018
07d7060
Merge pull request #15 from piiamt/master
piiamt Jan 25, 2018
6c673cf
Create addyvinton.md
addyvinton Jan 25, 2018
f355d97
Update Jeffrey's Lab 1
JVanderhart Jan 25, 2018
1f5518f
Update Jeffrey's Lab 1
JVanderhart Jan 25, 2018
ac7c730
Merge branch 'master' into master
JVanderhart Jan 25, 2018
2ce82d8
Merge pull request #16 from JVanderhart/master
JVanderhart Jan 25, 2018
eb30380
Create dburrigh.md
dburrigh Jan 25, 2018
8c83fe5
Lab #1
NoeBuddy Jan 25, 2018
40017b7
Merge pull request #17 from dburrigh/master
dburrigh Jan 25, 2018
c120b89
Merge pull request #18 from jamasch6/master
NoeBuddy Jan 25, 2018
dd25d76
Rename Lab_1 to Jackson_Maschman_Lab_1
NoeBuddy Jan 25, 2018
c2e5d4e
Create jaraujomiranda
jaraujomiranda Jan 25, 2018
b49c31d
I made two flow charts
Alexkerr7 Feb 1, 2018
3117171
Update Lab_1.md
Alexkerr7 Feb 1, 2018
8852200
Update Lab_1.md
Alexkerr7 Feb 1, 2018
0042000
Rename Lab_1.md to Alex Kerr lab 1.md
Alexkerr7 Feb 1, 2018
cbf9567
Create Skylar.md
jifland Feb 1, 2018
8945dbf
Create Jared Pohlmann Lab 1 Code
jaredpohlmann Feb 1, 2018
9de0723
Merge pull request #21 from Alexkerr7/master
jifland Feb 1, 2018
87310e6
Rename Lab_1.md to dmonrow_lab_1.md
jifland Feb 1, 2018
a0b902b
Merge pull request #19 from dmonroe527/master
jifland Feb 1, 2018
db52f98
Update Frazier.md
jfrazie3 Feb 2, 2018
0363906
Merge pull request #22 from jfrazie3/master
jfrazie3 Feb 2, 2018
47f33d5
Update piiamt.md
piiamt Feb 5, 2018
ff478c6
Update JaredPohlmannLab1.md
jaredpohlmann Feb 5, 2018
5e69eed
Update JaredPohlmannLab1.md
jaredpohlmann Feb 5, 2018
85f22d6
Merge pull request #23 from jaredpohlmann/master
jaredpohlmann Feb 5, 2018
4fde0ba
Merge pull request #24 from addyvinton/master
addyvinton Feb 6, 2018
03394f1
Update Skylar.md
SkylarGalloway Feb 6, 2018
a649d34
Update piiamt.md
piiamt Feb 6, 2018
ce52d08
Rename jaraujomiranda to jaraujomirandalab1
jaraujomiranda Feb 8, 2018
be36155
Update addyvinton.md
jifland Apr 10, 2018
9fc6b4a
Update kbenes2.md
jifland Apr 10, 2018
e43b0bc
Update piiamt.md
jifland Apr 10, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 145 additions & 0 deletions Alex Kerr lab 1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# Lab 1

## Description and guidelines
You have multiple tasks to complete. You may work with others, however your goal should be on understanding the logic of the flow charts you are creating, and by the end feel comfortable analyzing a problem, breaking it down into steps, and be able to create a flow chart of those ideas. You should also feel comfortable looking at a flow chart and determining if you feel it solves the problem it is for.

With this lab, you will want to use a unispace font. One way to gain this is to put your answers betwwen lines that contain three ~ characters:

~~~
This is a unispace font, notice that
iiii takes up as much space as
wwww.
~~~

To draw the boxes,
* Use hyphens for the top and bottom of the statement boxes (you do not need to worry about the sides).
* Use |, +, - to draw the lines.
* Use <, >, ^, or v for the arrow heads.
* Use / and \ for the borders of conditionals (you only need to show the corners, and these do not need to line up.)
* Have your lines that go up do so to the right of your text.

Example:
~~~
-----------------------
This is the first step <-----+
----------------------- |
| |
V |
/ \ |
/ \ Yes |
/ If something is true \ -----+
\ and the day is /
a Monday
\ /
\ /
| No
v
---------------------
The last step
---------------------
~~~

## Flowchart Tasks:

#### 1. Fizzbuzz
* starting at one and incrementing by one to a number that is given, print out either the number, or if the number is divisible by 2, print "Fizz", and if the number is divisible by 3 print "Buzz"
~~~
----------------------
import user number
n=1
---------------------
| _______>__________>________>__________________>_______|
v | |
/ \ Yes |
/ \ | v
/ \_<_No_<__does n = i______<_____n=n+1___<____<__ |
/ i= given number\ | |
divide the number by 2 A |
/ is there a remander ? __>____ no_>__Print "Fizz"____>_______| |
\ / | |
\ / | v
\ / A |
\/ | |
| | |
| | |
Yes | |
| | |
v | v
| | |
divide the number by 3 | |
is there remander ______>____no____>____Print "buzz"___>_____| |
| | |
| | |
Yes A v
| | |
v | |
Print "number"___>________________>_________>_____> | |
break code
~~~
#### 2. Determin a students letter grade when given the %.
~~~
---------------------
import student grade
---------------------
|
|
|
is the grade in 100______>______Yes____>___Print "A"______|
to 90 |
| |
| |
NO |
| |
| |
is the grade in 90______>______Yes____>___Print "B"_______|
to 80 |
| |
| |
NO |
| |
| |
is the grade in 80______>______Yes____>___Print "C"_______|
to 70 |
| |
| |
NO |
| |
| |
is the grade in 70______>______Yes____>___Print "D"_______|
to 60 |
| |
| |
No |
| |
| |
| |
Print "F"______>_________>____________>_______________>Break code
~~~
#### 3. Convert a tempature from C to F or vice versa.

#### 4. When give three numbers return the largest of them

#### 5. The game of Nim:
* This game is played between two players.
* There are piles of stones, the number of stones in each pile is known.
* Each turn a player can take any number of stones away from a single pile (they must take at least one.)
* The person who takes the last stone from the last remaining pile looses.

a. Create a flow chart for the optimal move for a player if there is only one pile.

b. Create a flow chart for the optimal move for a player if there are exatly two piles.

c. Can you merge these together to create a flowchart for an optimal move if there are two or less piles? Please do so, if yes.

d. What about if there are any number of piles.

#### 6. Find the sum of the first 100 numbers
b: modify this to find the sum of the next 100 numbers when given a starting value.

#### 7. Find the nth fibonaci number
* The 0th and the 1st fibonaci numbers are both 1.
* All other fibonaci numbers equal the sum of the two before it.
So the 2nd fibonaci number is 2, because fib(0)+fib(1) = 1+1
Also the 10th fibonaci number is fib(8)+fib(9)

#### 8. Find the largest prime number less than a given number
80 changes: 80 additions & 0 deletions Ben Lab 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
_________________________________________________________________________________________________________________________
#1) +------+
_______________ +-----+ /\ | Stop |
Start with Zero | "?" | = / \ +------+
_______________ +-----+ \ / ^
| \/ Yes
V |
+---------------+ +--------------+
|Is the number |<-------------------<-------No------|Has end number|--+
+---No--------|divisible by 2?|-------Yes---+ | been reached?| |
| +---------------+ | +--------------+ |
| | |
| | |
| V |
| +------+ |
| | Fizz | +-------+
V +------+ | Add 1 |
+----------------+ | +-------+
| Is the number | +------+ V ^
| divisible by 3?|---Yes---> | Buzz | +----------------+ |
+----------------+ +------+ | Is the number | +------+ |
| | divisible by 3?|---Yes-->| Buzz | |
No +----------------+ +------+ |
| | |
V No |
+-----------+ | |
| Print the | V |
| Number |-------------------->--------------------------->----------------------------+
+-----------+
__________________________________________________________________________________________________________________________

#2)
________________
Grade percentage
________________
|
V
90%-100%----Yes---> A
|
No
|
V
80%-89%----Yes---> B
|
No
|
V
70%-79%----Yes---> C
|
No
|
V
60%-69%----Yes---> D
|
No
|
V
0%-59%----Yes---> F
_________________________________________________________________________________________________________________________

#3)



















Loading