From 52ee9e511b1b9b58fb5fac49df175ac107bdb29e Mon Sep 17 00:00:00 2001 From: jaredpohlmann <35316403+jaredpohlmann@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:18:14 -0600 Subject: [PATCH 01/65] Create JaredPohlmann Lab1 --- JaredPohlmann Lab1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 JaredPohlmann Lab1 diff --git a/JaredPohlmann Lab1 b/JaredPohlmann Lab1 new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/JaredPohlmann Lab1 @@ -0,0 +1 @@ + From ddecf9ad468369fbd7cc2462781f385c793ae1e4 Mon Sep 17 00:00:00 2001 From: jaredpohlmann <35316403+jaredpohlmann@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:18:31 -0600 Subject: [PATCH 02/65] Rename JaredPohlmann Lab1 to JaredPohlmann Lab1.md --- JaredPohlmann Lab1 => JaredPohlmann Lab1.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename JaredPohlmann Lab1 => JaredPohlmann Lab1.md (100%) diff --git a/JaredPohlmann Lab1 b/JaredPohlmann Lab1.md similarity index 100% rename from JaredPohlmann Lab1 rename to JaredPohlmann Lab1.md From 9645bdc4aea60ebe374aded5ff118dd2406c8c74 Mon Sep 17 00:00:00 2001 From: ylopez20 <35316830+ylopez20@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:23:47 -0600 Subject: [PATCH 03/65] Create Yesenia_Lopez.md --- Yesenia_Lopez.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 Yesenia_Lopez.md diff --git a/Yesenia_Lopez.md b/Yesenia_Lopez.md new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Yesenia_Lopez.md @@ -0,0 +1 @@ + From d16da89d48c475eb9469e59a7e8383c05ec9eac7 Mon Sep 17 00:00:00 2001 From: bwortman2 <35316840+bwortman2@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:25:45 -0600 Subject: [PATCH 04/65] Create Ben Lab 1 --- Ben Lab 1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 Ben Lab 1 diff --git a/Ben Lab 1 b/Ben Lab 1 new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Ben Lab 1 @@ -0,0 +1 @@ + From 5e890360d64f3131380faffed8ec3f53cd291f4e Mon Sep 17 00:00:00 2001 From: FormaldaHiya <35316857+FormaldaHiya@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:40:30 -0600 Subject: [PATCH 05/65] Create Shane_Lab --- Shane_Lab | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Shane_Lab diff --git a/Shane_Lab b/Shane_Lab new file mode 100644 index 0000000..b9df898 --- /dev/null +++ b/Shane_Lab @@ -0,0 +1,37 @@ +~~~ +________Fizzbuzz__________ +--------------------------- +Start with the number one +and incerement by one to a +number that is given. +--------------------------- + | + V + / \ + / \ Yes ----------------- + / If the number is not \ ----------> Print the number + \ divisible by 2 or 3 / ----------------- + \ / + \ / + | + | No + | + V Yes ------------ +/ If the number is divisible \ ---------> Print "Fizz" +\ by 2 / ------------ + \ / + \ / + | + | No + | + V Yes ----------- +/ If the number is divisible \ --------- > Print "Buzz" +\ by three. / ----------- + + + + + + + +~~~ From 28b7d5846762c612158a0abbde4bdc058a167f5b Mon Sep 17 00:00:00 2001 From: jfrazie3 <35316740+jfrazie3@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:42:09 -0600 Subject: [PATCH 06/65] Create Frazier.md --- Frazier.md | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Frazier.md diff --git a/Frazier.md b/Frazier.md new file mode 100644 index 0000000..9978436 --- /dev/null +++ b/Frazier.md @@ -0,0 +1,74 @@ +~~~ + +Fizzbuzz + +--------------- + start +--------------- + | + v +--------------- +Set "start" equal to 0 +--------------- + | + v +--------------- +Set "end" equal to user input +--------------- + | + v <-----------------------------------+ + / \ | + / \ | +/ \ No | +start is less than or equal to end -----|-------->+ +\ / | | + \ / | | + | Yes | | + v | | +--------------- Yes | | +if start%2=0 ----> print fizz + | | +---------------- | | | + | No | | | + v | | | +---------------- Yes | | | +else if start%3=0 -----> print buzz + | | +----------------- | | | + | No | | | + v | | | +------------------ | | | +else print start | | | +------------------- | | | + | | | | + v | | | +------------------- | | | +start=++ <-----------------+ | | +------------------- | | + | | | + v | | + +------------------------------------+ | + | +------------------ | +Print "done" <----------------------------------+ +------------------ + + + +Letter Grade + +------------ +Enter Percent +------------ + | + v +------------- +if percent + + + + + + + + + + From 78a56a0876be635236aead9e17e67275193a3b55 Mon Sep 17 00:00:00 2001 From: piiamt <35284426+piiamt@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:47:12 -0600 Subject: [PATCH 07/65] Create piiamt.md --- piiamt.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 piiamt.md diff --git a/piiamt.md b/piiamt.md new file mode 100644 index 0000000..b8ca2bc --- /dev/null +++ b/piiamt.md @@ -0,0 +1,44 @@ +Fizzbuzz by Piia: + +---------------------------- +Set initial "number" to 1 +---------------------------- + | ++-------------+ +| | +| V +| / \ +| / \ +| /if "number" \ +| \is divisible by 2 /----No---+ +| \ / | +| \ / | +| | | +| Yes | +| | | +| V | +| --------------------- | +| Print "Fizz" | +| --------------------- | +| | | +| | /\ | +| V / \ V +| / if "number" is \ +| \ divisible by 3 /----------No-----+ +| \ / | +| \/ | +| | | +| Yes | +| | -------------------------- +| V print the "number" +| --------------------------- -------------------------- +| print "Buzz" | +| --------------------------- | +| | | +| V V +| ----------------------------------------- +| set number +| to "number"+1 +| ----------------------------------------- +| | ++------------------------------------+ From 6224c235859d5a9034960ddb6a4fc3ce7e7c7d5f Mon Sep 17 00:00:00 2001 From: jfrazie3 <35316740+jfrazie3@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:55:08 -0600 Subject: [PATCH 08/65] Update Frazier.md --- Frazier.md | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/Frazier.md b/Frazier.md index 9978436..3a76a10 100644 --- a/Frazier.md +++ b/Frazier.md @@ -26,15 +26,20 @@ start is less than or equal to end -----|-------->+ | Yes | | v | | --------------- Yes | | -if start%2=0 ----> print fizz + | | +if start%6==0 ----> print fizzbuzz + | | ---------------- | | | | No | | | v | | | ---------------- Yes | | | -else if start%3=0 -----> print buzz + | | +else if start%2==0 ---> print fizz + | | ----------------- | | | | No | | | v | | | +------------------ Yes | | | +else if start%3=0 ----> print buzz + | | +----------------- | | | + | | | | + v | | | ------------------ | | | else print start | | | ------------------- | | | @@ -61,7 +66,36 @@ Enter Percent | v ------------- -if percent +if percent >= 90 print A +------------- + | + v +------------- +else if percent<90 and percent>=80 print B +------------- + | + v +------------- +else if percent<80 and percent>=70 print C +------------- + | + v +-------------- +else if percent<70 and percent>=60 print D +-------------- + | + v +--------------- +else print fail +--------------- + | + v +-------------- +end +-------------- + + +Convert temp From 1925a054c565b6692accc929503741984099fc90 Mon Sep 17 00:00:00 2001 From: jaredpohlmann <35316403+jaredpohlmann@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:56:08 -0600 Subject: [PATCH 09/65] Update and rename JaredPohlmann Lab1.md to JaredPohlmannLab1.md --- JaredPohlmann Lab1.md | 1 - JaredPohlmannLab1.md | 89 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 1 deletion(-) delete mode 100644 JaredPohlmann Lab1.md create mode 100644 JaredPohlmannLab1.md diff --git a/JaredPohlmann Lab1.md b/JaredPohlmann Lab1.md deleted file mode 100644 index 8b13789..0000000 --- a/JaredPohlmann Lab1.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/JaredPohlmannLab1.md b/JaredPohlmannLab1.md new file mode 100644 index 0000000..c817db2 --- /dev/null +++ b/JaredPohlmannLab1.md @@ -0,0 +1,89 @@ +#### 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" +~~~ +----------- +Start +----------- + | + V +--------------------- +Set start number to 1 +---------------------- + | ------------------- + V <<---------------+ Add 1 to the Number<-+| + / \ ------------------- | + / \ | | +/Is number \ Yes ---- ------- | +\divisible /---------- Print "Fizz" | + by 2 ------------ | + \ / | + \ / | + | No | + V | + / \ | + / \ | + /Is number \ Yes ------------- |<<---------+ + \divisible /--------------- Print "Buzz" ------- | + by 3 -------------- | + \ / | + \ / | + | No | + V | + -------------------- | + Print out the number--------------------------------------+ + -------------------- + ~~~ + #### 2. Determine a students letter grade when given the %. + ~~~ +----------------------- +Start +----------------------- + | + V + / \ + / \ Yes ------------- +/ Is the % between 90 \ -----Print out 'A" +\ and 100% / ------------- + + \ / + \ / + | No + v + | + V + / \ + / \ Yes ------------- +/ Is the % between 80 \ -----Print out 'B" +\ and 90% / ------------- + + \ / + \ / + | + V No + + V + / \ + / \ Yes ------------- +/ Is the % between 70 \ -----Print out 'C" +\ and 80% / ------------- + + \ / + \ / + V + + + / \ + / \ Yes ------------- +/ Is the % between 60 \ -----Print out 'D" +\ and 70 % / ------------- + + \ / + \ / + | No + + V + ------------ + Print out "F" + ------------ + + ~~~ From b25907ca97f303a66523fb4276baddb711e07eb2 Mon Sep 17 00:00:00 2001 From: ylopez20 <35316830+ylopez20@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:56:50 -0600 Subject: [PATCH 10/65] Update Yesenia_Lopez.md --- Yesenia_Lopez.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Yesenia_Lopez.md b/Yesenia_Lopez.md index 8b13789..9bfeb94 100644 --- a/Yesenia_Lopez.md +++ b/Yesenia_Lopez.md @@ -1 +1,34 @@ +FizzBuzz + ------------------------ + This is the first step + ------------------------ + | + V + -------------------- + | Start at n=1. | + | Choose a number p>n| + -------------------- + | + V + / \ + / \ + | If n is even | + \ / + \ / ++-----------> | +| V +| ----------------------- +| | Increase n by adding 1 | +| ----------------------- +| / \ +| / \ Yes +| /Does n+1=p?\ -------------> | +| \ / +| \ / +| \ / +| | No +| V +| --------------- +------| Set n=n+1 | + --------------- From cb2e49c735bd4414ba2c64f6582cdcb85a2d834e Mon Sep 17 00:00:00 2001 From: jaredpohlmann <35316403+jaredpohlmann@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:58:52 -0600 Subject: [PATCH 11/65] Update JaredPohlmannLab1.md --- JaredPohlmannLab1.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/JaredPohlmannLab1.md b/JaredPohlmannLab1.md index c817db2..a40d0b5 100644 --- a/JaredPohlmannLab1.md +++ b/JaredPohlmannLab1.md @@ -64,7 +64,7 @@ Start V / \ / \ Yes ------------- -/ Is the % between 70 \ -----Print out 'C" +/ Is the % between 70 \ -----Print out 'C" \ and 80% / ------------- \ / @@ -85,5 +85,9 @@ Start ------------ Print out "F" ------------ - - ~~~ + ~~~ + +#### 3. Convert a tempature from C to F or vice versa. +~~~ + + From ad1c1f7c939683e5f4f0066226780a8769d3083b Mon Sep 17 00:00:00 2001 From: jackhinze <35316852+jackhinze@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:00:11 -0600 Subject: [PATCH 12/65] Create jackhinze.md --- jackhinze.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 jackhinze.md diff --git a/jackhinze.md b/jackhinze.md new file mode 100644 index 0000000..b70b9f7 --- /dev/null +++ b/jackhinze.md @@ -0,0 +1,40 @@ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Given a student's grade percentage +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | + V + / \ + / \ Yes ~~~~~~~~~~~~~~~~~~~ +/If the grade is greater than or\---------> Set student's letter ----------------------+ +\equal to 90% / grade to "A" | + | ~~~~~~~~~~~~~~~~~~~~ | + | No | + | | + V | + / \ | + / \ Yes ~~~~~~~~~~~~~~~~~~~ | + /If the grade is greater than or\--------> Set student's letter ----------------------+ + \equal to 80% / grade to "B" | + | ~~~~~~~~~~~~~~~~~~~~ | + | No | ~~~~~~~~~~~~~~~~ + | |-----------> Print student's + V | letter grade + / \ | ~~~~~~~~~~~~~~~~ + / \ Yes ~~~~~~~~~~~~~~~~~~~~ | +/If the grade is greater than or\---------> Set student's letter ----------------------+ +\equal to 70% / grade to "C" | + | ~~~~~~~~~~~~~~~~~~~~ | + | No | + | | + V | + / \ | + / \ Yes ~~~~~~~~~~~~~~~~~~~~ | +/If the grade is greater than or\---------> Set student's letter ----------------------+ +\equal to 60% / grade to "D" | + | ~~~~~~~~~~~~~~~~~~~~ | + | No | + | | + | ~~~~~~~~~~~~~~~~~~~~ | + +-------------------------> Set student's letter ---------------------+ + grade to "F" + ~~~~~~~~~~~~~~~~~~~~ From 6e2133ff3cd33310e68604ce600552868317b0d4 Mon Sep 17 00:00:00 2001 From: kbenes2 <35316834+kbenes2@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:00:54 -0600 Subject: [PATCH 13/65] Create kbenes2.md --- kbenes2.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 kbenes2.md diff --git a/kbenes2.md b/kbenes2.md new file mode 100644 index 0000000..3615c19 --- /dev/null +++ b/kbenes2.md @@ -0,0 +1,40 @@ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Given a Student's Grade Percentage +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | + V + / \ + / \ ~~~~~~~~~~~~~~~~ + / If the percent is \ Yes Student's letter + \greater than or equal to 90%/ -----------> grade is "A" -----------+ + \ / ~~~~~~~~~~~~~~~~ | + \ / | + |NO | + V | + / \ | + / \ ~~~~~~~~~~~~~~~~ | + / If the percent is \ Yes Student's letter | + \greater than or equal to 80%/ -----------> grade is "B" -----------+ + \ / ~~~~~~~~~~~~~~~~ | + \ / | + |NO | + V | + / \ | + / \ ~~~~~~~~~~~~~~~~ | + / If the percent is \ Yes Student's letter | + \greater than or equal to 70%/ -----------> grade is "C" -----------+ + \ / ~~~~~~~~~~~~~~~~ | + \ / | + |NO | ~~~~~~~~~~~~~~~~ + V |------------ Print Student's + / \ | Letter Grade + / \ ~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~ + / If the percent is \ Yes Student's letter | + \greater than or equal to 60%/ -----------> grade is "D" -----------+ + \ / ~~~~~~~~~~~~~~~~ | + \ / | + |NO | + | ~~~~~~~~~~~~~~~~ | + | Student's letter | + +------------------------------> grade is "F" -----------+ + ~~~~~~~~~~~~~~~~ From 5a1363fdcbecb27aa9153864e4fef4e2d9eb8097 Mon Sep 17 00:00:00 2001 From: FormaldaHiya <35316857+FormaldaHiya@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:05:36 -0600 Subject: [PATCH 14/65] Update Shane_Lab --- Shane_Lab | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 90 insertions(+), 7 deletions(-) diff --git a/Shane_Lab b/Shane_Lab index b9df898..39d2cc5 100644 --- a/Shane_Lab +++ b/Shane_Lab @@ -1,5 +1,5 @@ ~~~ -________Fizzbuzz__________ +________Fizzbuzz_______________________________________________________________________________ --------------------------- Start with the number one and incerement by one to a @@ -16,17 +16,100 @@ number that is given. | | No | - V Yes ------------ -/ If the number is divisible \ ---------> Print "Fizz" -\ by 2 / ------------ + V Yes Yes ------------------- +/ If the number is divisible \ ---------> / If the number is divisible \ ---------> Print "Fizz" & Buzz" +\ by 2 / \ by both 2 and 3 / ------------------- + \ / \ / + \ / \ / + | | + | No | + | No | + |-------------------------------------------+ + | + | + | + | + / \ + / \ Yes ----------- +/ If the number is divisible \ --------- > Print "Buzz" +\ by three. / ----------- \ / \ / | | No | - V Yes ----------- -/ If the number is divisible \ --------- > Print "Buzz" -\ by three. / ----------- + V + ------------ + Print "Fizz" + ------------ + + + + + + + +________Determine the students letter grade when given the %_______________________________________ +-------------------------- +Identify a student's grade +percentage from 0-100% +-------------------------- + | + V + / \ + / \ Yes ----------------- + / If the student's grade \ ----------> Letter Grade: F + \ is between 0-59% / ----------------- + \ / + \ / + | + | No + | + V + / \ + / \ Yes ----------------- + / If the student's grade \ ----------> Letter Grade: D + \ is between 60-66% / ----------------- + \ / + \ / + | + | No + | + V + / \ + / \ Yes ----------------- + / If the student's grade \ ----------> Letter Grade: D+ + \ is between 67-79% / ----------------- + \ / + \ / + | + | No + | + V + {Continue process in + incremements of 3% + until 100% is reached} + +________Convert a temperature from C to F and vice versa_______________________________________ + + + + + + + + + + + + + + + + + + + From e86164c7ef8aa8c6f34ce6f7b604f798fe05b09d Mon Sep 17 00:00:00 2001 From: dmonroe527 <35547403+dmonroe527@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:06:39 -0600 Subject: [PATCH 15/65] Update Lab_1.md Inserted some flow charts for questions --- Lab_1.md | 172 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 172 insertions(+) diff --git a/Lab_1.md b/Lab_1.md index c733efb..7e21b74 100644 --- a/Lab_1.md +++ b/Lab_1.md @@ -43,12 +43,142 @@ The last step #### 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" +~~~ +----------------------- +Insert Desired Number +----------------------- + | + V + / \ |<------------- + / \ | ^ +/ start a var at 1 \ | | +\ / | / \ + \ / | \Add one to var/ + \ / ----------------------------------------------------< | + | No ------- + | / \---------yes > End + | \Is Var euqal to desired Num/ ------- + /Divide var by 2\ | + \Is there a remaineder?\----No---> /print fuzz\ ---------------^ + v | + | | + yes | + | | + /Divide var by 3\ | + \Is there a remainder/-----no-------->/print buzz\------------ + | ^ + yes | + | | + /print Var\ | + \ /-----------------------------------------------^ + +~~~ #### Determin a students letter grade when given the %. +~~~ +----------------------- +Insert Percentage +----------------------- + | + V + / \ + / \ +/ Is percentage \ +\ greater than 90% /----yes----->/pint A\ --------------------v + \ / | + \ / | + | | + no | + | | + /Is percentage\ | + \less than 90% but greater\----yes---> /print B\ ---------------v + \than 80%/ | + | | + no | + | | + /Is percentage\ | + \less than 80% but greater\----yes---> /print c\ ---------------v + \than 70%/ | + | | + no | + | | + /Is percentage\ | + \less than 70% but greater\----yes---> /print d\ ---------------v + \than 60%/ | + | | + no | + | | + /Is percentage\ | + \less than 60% but greater\----yes---> /print f\ ---------------v + \than 0%/ | + | + ---------------- + End program + ----------------- +~~~ #### Convert a tempature from C to F or vice versa. +~~~ +----------------------- +Incerpt temprature +----------------------- + | + V + / \ + / \ +/ ask if temp is in \ +\ Fahrenheit? /----no----->/Multiply by 9/5 and add 32\ --------/Print equation with F\ + \ / | + \ / ----------v----- + | >----- end program + yes | --------------- + | | + / subtract 32\ | + \and times by 5/9/-------> /print solution with C\ -------------^ + \/ + +~~~ #### When give three numbers return the largest of them +~~~ +----------------------- +Insert first Number and set as x +----------------------- + | + V +----------------------- +Insert second Number and set as y +----------------------- + | + V +----------------------- +Insert third Number and set as z +----------------------- + | + V + / \ + / \ +/ is x greater than y and z \ +\ /----yes----->/print x\ -------------v + \ / | + \ / | + | | + no | + | | + / \ | + \ is y greater than x and z\----yes---> /print y\ --------------v + \ / | + | | + no | + | | + /\ | + \ is z greater than y and x\----yes---> /print z\ --------------v + | + | + ---------------- + End program + ----------------- +~~~ #### The game of Nim: * This game is played between two players. @@ -62,6 +192,48 @@ The last step 1. What about if there are any number of piles. #### Find the sum of the first 100 numbers +~~~ +----------------------- +start Var at 1 +----------------------- + | + V + / \ + / \ +/ Is percentage \ +\ greater than 90% /----yes----->/pint A\ --------------------v + \ / | + \ / | + | | + no | + | | + /Is percentage\ | + \less than 90% but greater\----yes---> /print B\ ---------------v + \than 80%/ | + | | + no | + | | + /Is percentage\ | + \less than 80% but greater\----yes---> /print c\ ---------------v + \than 70%/ | + | | + no | + | | + /Is percentage\ | + \less than 70% but greater\----yes---> /print d\ ---------------v + \than 60%/ | + | | + no | + | | + /Is percentage\ | + \less than 60% but greater\----yes---> /print f\ ---------------v + \than 0%/ | + | + ---------------- + End program + ----------------- +~~~ + 1. modify this to find the sum of the next 100 numbers when given a starting value. #### Find the nth fibonaci number From efb093e576c20b4f060e9d7aa4b4ed617f53708b Mon Sep 17 00:00:00 2001 From: jackhinze <35316852+jackhinze@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:07:16 -0600 Subject: [PATCH 16/65] Rename jackhinze.md to jackhinzegrade%.md --- jackhinze.md => jackhinzegrade%.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename jackhinze.md => jackhinzegrade%.md (100%) diff --git a/jackhinze.md b/jackhinzegrade%.md similarity index 100% rename from jackhinze.md rename to jackhinzegrade%.md From cafb3f48c33e2e3b19a6634e9eb164790d03a903 Mon Sep 17 00:00:00 2001 From: kbenes2 <35316834+kbenes2@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:07:39 -0600 Subject: [PATCH 17/65] Update kbenes2.md 2. Determine a student's letter grade given the % --- kbenes2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kbenes2.md b/kbenes2.md index 3615c19..b220cb0 100644 --- a/kbenes2.md +++ b/kbenes2.md @@ -5,7 +5,7 @@ Given a Student's Grade Percentage V / \ / \ ~~~~~~~~~~~~~~~~ - / If the percent is \ Yes Student's letter + / If the percent is \ Yes Student's letter \greater than or equal to 90%/ -----------> grade is "A" -----------+ \ / ~~~~~~~~~~~~~~~~ | \ / | From 064f7b66aa5bc4fa2c6a14f3dc4cb3749a20d99f Mon Sep 17 00:00:00 2001 From: dmonroe527 <35547403+dmonroe527@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:09:39 -0600 Subject: [PATCH 18/65] Update Lab_1.md correction --- Lab_1.md | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/Lab_1.md b/Lab_1.md index 7e21b74..7fc94e8 100644 --- a/Lab_1.md +++ b/Lab_1.md @@ -192,47 +192,6 @@ Insert third Number and set as z 1. What about if there are any number of piles. #### Find the sum of the first 100 numbers -~~~ ------------------------ -start Var at 1 ------------------------ - | - V - / \ - / \ -/ Is percentage \ -\ greater than 90% /----yes----->/pint A\ --------------------v - \ / | - \ / | - | | - no | - | | - /Is percentage\ | - \less than 90% but greater\----yes---> /print B\ ---------------v - \than 80%/ | - | | - no | - | | - /Is percentage\ | - \less than 80% but greater\----yes---> /print c\ ---------------v - \than 70%/ | - | | - no | - | | - /Is percentage\ | - \less than 70% but greater\----yes---> /print d\ ---------------v - \than 60%/ | - | | - no | - | | - /Is percentage\ | - \less than 60% but greater\----yes---> /print f\ ---------------v - \than 0%/ | - | - ---------------- - End program - ----------------- -~~~ 1. modify this to find the sum of the next 100 numbers when given a starting value. From ad36032a423a71d97e0bcead4cfa18f7722a0677 Mon Sep 17 00:00:00 2001 From: kbenes2 <35316834+kbenes2@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:14:44 -0600 Subject: [PATCH 19/65] Update kbenes2.md --- kbenes2.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/kbenes2.md b/kbenes2.md index b220cb0..f0092eb 100644 --- a/kbenes2.md +++ b/kbenes2.md @@ -4,37 +4,37 @@ Given a Student's Grade Percentage | V / \ - / \ ~~~~~~~~~~~~~~~~ + / \ ---------------- / If the percent is \ Yes Student's letter \greater than or equal to 90%/ -----------> grade is "A" -----------+ - \ / ~~~~~~~~~~~~~~~~ | + \ / ---------------- | \ / | |NO | V | / \ | - / \ ~~~~~~~~~~~~~~~~ | + / \ ---------------- | / If the percent is \ Yes Student's letter | \greater than or equal to 80%/ -----------> grade is "B" -----------+ - \ / ~~~~~~~~~~~~~~~~ | + \ / ---------------- | \ / | |NO | V | / \ | - / \ ~~~~~~~~~~~~~~~~ | + / \ ---------------- | / If the percent is \ Yes Student's letter | \greater than or equal to 70%/ -----------> grade is "C" -----------+ - \ / ~~~~~~~~~~~~~~~~ | + \ / ---------------- | \ / | - |NO | ~~~~~~~~~~~~~~~~ + |NO | ---------------- V |------------ Print Student's / \ | Letter Grade - / \ ~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~ + / \ ---------------- | ---------------- / If the percent is \ Yes Student's letter | \greater than or equal to 60%/ -----------> grade is "D" -----------+ - \ / ~~~~~~~~~~~~~~~~ | + \ / ---------------- | \ / | |NO | - | ~~~~~~~~~~~~~~~~ | + | ---------------- | | Student's letter | +------------------------------> grade is "F" -----------+ - ~~~~~~~~~~~~~~~~ + ---------------- From c97123e0d06607aa63c258546d75326ba8166370 Mon Sep 17 00:00:00 2001 From: ylopez20 <35316830+ylopez20@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:16:02 -0600 Subject: [PATCH 20/65] Update Yesenia_Lopez.md --- Yesenia_Lopez.md | 48 ++++++++++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/Yesenia_Lopez.md b/Yesenia_Lopez.md index 9bfeb94..efeac22 100644 --- a/Yesenia_Lopez.md +++ b/Yesenia_Lopez.md @@ -1,4 +1,4 @@ -FizzBuzz + FizzBuzz ------------------------ This is the first step @@ -9,26 +9,38 @@ FizzBuzz | Start at n=1. | | Choose a number p>n| -------------------- - | - V - / \ - / \ - | If n is even | - \ / - \ / +-----------> | | V -| ----------------------- -| | Increase n by adding 1 | -| ----------------------- | / \ -| / \ Yes -| /Does n+1=p?\ -------------> | -| \ / -| \ / -| \ / -| | No +| / \ Yes -------------- +| |If n is divisible by 2|--------> | Print "Fizz" |------+ +| \ / -------------- | +| \ / | +| | No | +| V | +| / \ | +| / \ Yes -------------- | +| |If n is divisible by 3|--------> | Print "Buzz" |--+ | +| \ / -------------- | | +| \ / | | +| | No | | +| V | | +| ---------- | | +| | Print n | | | +| ---------- | | +| | <-----------------------------------+<---+ | V +| ----------------------- +| | Increase n by adding 1 | +| ----------------------- +| / \ +| / \ Yes +| /Does n+1=p?\ -------------> | +| \ / +| \ / +| \ / +| | No +| V | --------------- -------| Set n=n+1 | ++-----| Set n=n+1 | --------------- From ad2233bb6698ac4bec3a2e3dddf6e71d4378a713 Mon Sep 17 00:00:00 2001 From: jaredpohlmann <35316403+jaredpohlmann@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:16:48 -0600 Subject: [PATCH 21/65] Update JaredPohlmannLab1.md --- JaredPohlmannLab1.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/JaredPohlmannLab1.md b/JaredPohlmannLab1.md index a40d0b5..ecabafe 100644 --- a/JaredPohlmannLab1.md +++ b/JaredPohlmannLab1.md @@ -85,9 +85,33 @@ Start ------------ Print out "F" ------------ - ~~~ + ~~~ -#### 3. Convert a tempature from C to F or vice versa. +#### 8. Find the largest prime number less than a given number ~~~ +----------------------- + Start +----------------------- + | + V + ----------------------------- + Select Largest Starting number + ------------------------------ + | + V + ------------------------------ + Subtract 1 from Previous Number + ------------------------------- <----------------------- | + | | + V | + / \ | + / \ Yes ----------------------- | +/ Is number \---------------Print that Prime Number | +\ composite / ----------------------- | + | + \ / | + \ / | + | No | + v----------------------------------------------------- From 1f749a5a75514db1e3f9d99240cebb3a5c5b36e0 Mon Sep 17 00:00:00 2001 From: ylopez20 <35316830+ylopez20@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:16:50 -0600 Subject: [PATCH 22/65] Update Yesenia_Lopez.md --- Yesenia_Lopez.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Yesenia_Lopez.md b/Yesenia_Lopez.md index efeac22..0a3442b 100644 --- a/Yesenia_Lopez.md +++ b/Yesenia_Lopez.md @@ -1,4 +1,5 @@ - FizzBuzz +~~~ + FizzBuzz ------------------------ This is the first step @@ -44,3 +45,4 @@ | --------------- +-----| Set n=n+1 | --------------- +~~~ From d8ac8223c00cdf1f815df68c54cb3d9b2e862ec7 Mon Sep 17 00:00:00 2001 From: jaredpohlmann <35316403+jaredpohlmann@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:17:55 -0600 Subject: [PATCH 23/65] Update JaredPohlmannLab1.md --- JaredPohlmannLab1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JaredPohlmannLab1.md b/JaredPohlmannLab1.md index ecabafe..fa5c03a 100644 --- a/JaredPohlmannLab1.md +++ b/JaredPohlmannLab1.md @@ -105,13 +105,13 @@ Start | | V | / \ | - / \ Yes ----------------------- | + / \ No ----------------------- | / Is number \---------------Print that Prime Number | \ composite / ----------------------- | | \ / | \ / | - | No | + | Yes | v----------------------------------------------------- From 01cf8796f074fd928e3f3ad03c79da1582fec24c Mon Sep 17 00:00:00 2001 From: ylopez20 <35316830+ylopez20@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:18:46 -0600 Subject: [PATCH 24/65] Update Yesenia_Lopez.md --- Yesenia_Lopez.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Yesenia_Lopez.md b/Yesenia_Lopez.md index 0a3442b..0c47feb 100644 --- a/Yesenia_Lopez.md +++ b/Yesenia_Lopez.md @@ -35,9 +35,9 @@ | | Increase n by adding 1 | | ----------------------- | / \ -| / \ Yes -| /Does n+1=p?\ -------------> | -| \ / +| / \ Yes --------------- +| /Does n+1=p?\ -------------> | The Last Step | +| \ / --------------- | \ / | \ / | | No From 2605152739083c0fde7c88a6d0a0e8690e4ebac2 Mon Sep 17 00:00:00 2001 From: jackhinze <35316852+jackhinze@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:24:48 -0600 Subject: [PATCH 25/65] Create jackhinzeCorF.md --- jackhinzeCorF.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 jackhinzeCorF.md diff --git a/jackhinzeCorF.md b/jackhinzeCorF.md new file mode 100644 index 0000000..4106d4f --- /dev/null +++ b/jackhinzeCorF.md @@ -0,0 +1,25 @@ +~~~~~~~~~~~~~~~~~~~~~ +Given a temperature +~~~~~~~~~~~~~~~~~~~~~ + | + V + / \ + / \ Yes +/If temperature\----------> /If temperature is\------------------------------------+ +\is in Celsius / \wanted in Celsius/ | + | | | + | No | No | + V | | ~~~~~~~~~~~~~~~~~ + / \ V |---------------> Print temperature + / \ ~~~~~~~~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~ +/If temperature is \ Take temperature *(9/5) ----------------------------+ +\wanted in Fahrenheit/ then add 32 | + | \ ~~~~~~~~~~~~~~~~~~~~~~~ | + No | \ Yes | + | \ | + | +----------------------------------------------------------------+ + | | + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | + Take temperature and subtract ---------------------------------------------------+ + 32, then multiply by (5/9) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From cff54d1addc472afd27242a1451fac92b56560f7 Mon Sep 17 00:00:00 2001 From: ylopez20 <35316830+ylopez20@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:27:26 -0600 Subject: [PATCH 26/65] Update Yesenia_Lopez.md --- Yesenia_Lopez.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Yesenia_Lopez.md b/Yesenia_Lopez.md index 0c47feb..994056b 100644 --- a/Yesenia_Lopez.md +++ b/Yesenia_Lopez.md @@ -14,30 +14,30 @@ | V | / \ | / \ Yes -------------- -| |If n is divisible by 2|--------> | Print "Fizz" |------+ -| \ / -------------- | -| \ / | -| | No | -| V | -| / \ | -| / \ Yes -------------- | -| |If n is divisible by 3|--------> | Print "Buzz" |--+ | -| \ / -------------- | | -| \ / | | -| | No | | -| V | | -| ---------- | | -| | Print n | | | -| ---------- | | -| | <-----------------------------------+<---+ +| |If n is divisible by 2|--------> | Print "Fizz" | +| \ / -------------- +| \ / | +| No | <---------------------------+ +| V +| / \ +| / \ Yes -------------- +| |If n is divisible by 3|--------> | Print "Buzz" |--+ +| \ / -------------- | +| \ / | +| | No | +| V | +| ---------- | +| | Print n | | +| ---------- | +| | <-----------------------------------+< | V | ----------------------- | | Increase n by adding 1 | | ----------------------- | / \ -| / \ Yes --------------- -| /Does n+1=p?\ -------------> | The Last Step | -| \ / --------------- +| / \ Yes --------- ----------------------- +| /Does n+1=p?\ -------------> | Print p |--------> | This is the last step | +| \ / --------- ----------------------- | \ / | \ / | | No From 3fd39e73f7c4aadd4c8eeeeecb224f3393c973fb Mon Sep 17 00:00:00 2001 From: jackhinze <35316852+jackhinze@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:27:35 -0600 Subject: [PATCH 27/65] Update jackhinzeCorF.md --- jackhinzeCorF.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/jackhinzeCorF.md b/jackhinzeCorF.md index 4106d4f..3ee3af3 100644 --- a/jackhinzeCorF.md +++ b/jackhinzeCorF.md @@ -1,6 +1,7 @@ -~~~~~~~~~~~~~~~~~~~~~ +~~~ +==================== Given a temperature -~~~~~~~~~~~~~~~~~~~~~ +==================== | V / \ @@ -19,7 +20,9 @@ Given a temperature | \ | | +----------------------------------------------------------------+ | | - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | + ------------------------------- | Take temperature and subtract ---------------------------------------------------+ 32, then multiply by (5/9) - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ------------------------------ + + ~~~ From 7e5aef92e62d2b5c8d8ae1faf4bbbfea6638e3fa Mon Sep 17 00:00:00 2001 From: jackhinze <35316852+jackhinze@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:28:35 -0600 Subject: [PATCH 28/65] Update jackhinzeCorF.md --- jackhinzeCorF.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jackhinzeCorF.md b/jackhinzeCorF.md index 3ee3af3..8284c20 100644 --- a/jackhinzeCorF.md +++ b/jackhinzeCorF.md @@ -10,17 +10,17 @@ Given a temperature \is in Celsius / \wanted in Celsius/ | | | | | No | No | - V | | ~~~~~~~~~~~~~~~~~ + V | | ----------------- / \ V |---------------> Print temperature - / \ ~~~~~~~~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~ + / \ ------------------------ | ------------------ /If temperature is \ Take temperature *(9/5) ----------------------------+ \wanted in Fahrenheit/ then add 32 | - | \ ~~~~~~~~~~~~~~~~~~~~~~~ | + | \ ------------------------ | No | \ Yes | | \ | | +----------------------------------------------------------------+ | | - ------------------------------- | + ------------------------------- Take temperature and subtract ---------------------------------------------------+ 32, then multiply by (5/9) ------------------------------ From dc31aed2ab1b3ab8d5abf2d104a9d31045013a1e Mon Sep 17 00:00:00 2001 From: jackhinze <35316852+jackhinze@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:28:46 -0600 Subject: [PATCH 29/65] Update jackhinzeCorF.md --- jackhinzeCorF.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jackhinzeCorF.md b/jackhinzeCorF.md index 8284c20..bc25ce5 100644 --- a/jackhinzeCorF.md +++ b/jackhinzeCorF.md @@ -20,7 +20,7 @@ Given a temperature | \ | | +----------------------------------------------------------------+ | | - ------------------------------- + ------------------------------- | Take temperature and subtract ---------------------------------------------------+ 32, then multiply by (5/9) ------------------------------ From babe909677baa3abb2d925ab5fd0a61692eba304 Mon Sep 17 00:00:00 2001 From: ylopez20 <35316830+ylopez20@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:29:19 -0600 Subject: [PATCH 30/65] Update Yesenia_Lopez.md --- Yesenia_Lopez.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yesenia_Lopez.md b/Yesenia_Lopez.md index 994056b..6f3596e 100644 --- a/Yesenia_Lopez.md +++ b/Yesenia_Lopez.md @@ -29,7 +29,7 @@ | ---------- | | | Print n | | | ---------- | -| | <-----------------------------------+< +| | <------------------------------------+ | V | ----------------------- | | Increase n by adding 1 | From 8879d255b0d3b2b1730b3b8688615cc97260a49c Mon Sep 17 00:00:00 2001 From: jackhinze <35316852+jackhinze@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:31:43 -0600 Subject: [PATCH 31/65] Update and rename jackhinzegrade%.md to jackhinze.md --- jackhinze.md | 75 ++++++++++++++++++++++++++++++++++++++++++++++ jackhinzegrade%.md | 40 ------------------------- 2 files changed, 75 insertions(+), 40 deletions(-) create mode 100644 jackhinze.md delete mode 100644 jackhinzegrade%.md diff --git a/jackhinze.md b/jackhinze.md new file mode 100644 index 0000000..300a163 --- /dev/null +++ b/jackhinze.md @@ -0,0 +1,75 @@ +~~~ +================================== +Given a student's grade percentage +================================== + | + V + / \ + / \ Yes -------------------- +/If the grade is greater than or\---------> Set student's letter ----------------------+ +\equal to 90% / grade to "A" | + | ---------------------- | + | No | + | | + V | + / \ | + / \ Yes ------------------- | + /If the grade is greater than or\--------> Set student's letter ----------------------+ + \equal to 80% / grade to "B" | + | ---------------------- | + | No | ---------------- + | |-----------> Print student's + V | letter grade + / \ | ---------------- + / \ Yes -------------------- | +/If the grade is greater than or\---------> Set student's letter ----------------------+ +\equal to 70% / grade to "C" | + | -------------------- | + | No | + | | + V | + / \ | + / \ Yes --------------------- | +/If the grade is greater than or\---------> Set student's letter ----------------------+ +\equal to 60% / grade to "D" | + | --------------------- | + | No | + | | + | --------------------- | + +-------------------------> Set student's letter ---------------------+ + grade to "F" + ---------------------- + + ~~~ + + Temperature Problem + +~~~ +==================== +Given a temperature +==================== + | + V + / \ + / \ Yes +/If temperature\----------> /If temperature is\------------------------------------+ +\is in Celsius / \wanted in Celsius/ | + | | | + | No | No | + V | | ----------------- + / \ V |---------------> Print temperature + / \ ------------------------ | ------------------ +/If temperature is \ Take temperature *(9/5) ----------------------------+ +\wanted in Fahrenheit/ then add 32 | + | \ ------------------------ | + No | \ Yes | + | \ | + | +----------------------------------------------------------------+ + | | + ------------------------------- | + Take temperature and subtract ---------------------------------------------------+ + 32, then multiply by (5/9) + ------------------------------ + + ~~~ + diff --git a/jackhinzegrade%.md b/jackhinzegrade%.md deleted file mode 100644 index b70b9f7..0000000 --- a/jackhinzegrade%.md +++ /dev/null @@ -1,40 +0,0 @@ -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Given a student's grade percentage -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | - V - / \ - / \ Yes ~~~~~~~~~~~~~~~~~~~ -/If the grade is greater than or\---------> Set student's letter ----------------------+ -\equal to 90% / grade to "A" | - | ~~~~~~~~~~~~~~~~~~~~ | - | No | - | | - V | - / \ | - / \ Yes ~~~~~~~~~~~~~~~~~~~ | - /If the grade is greater than or\--------> Set student's letter ----------------------+ - \equal to 80% / grade to "B" | - | ~~~~~~~~~~~~~~~~~~~~ | - | No | ~~~~~~~~~~~~~~~~ - | |-----------> Print student's - V | letter grade - / \ | ~~~~~~~~~~~~~~~~ - / \ Yes ~~~~~~~~~~~~~~~~~~~~ | -/If the grade is greater than or\---------> Set student's letter ----------------------+ -\equal to 70% / grade to "C" | - | ~~~~~~~~~~~~~~~~~~~~ | - | No | - | | - V | - / \ | - / \ Yes ~~~~~~~~~~~~~~~~~~~~ | -/If the grade is greater than or\---------> Set student's letter ----------------------+ -\equal to 60% / grade to "D" | - | ~~~~~~~~~~~~~~~~~~~~ | - | No | - | | - | ~~~~~~~~~~~~~~~~~~~~ | - +-------------------------> Set student's letter ---------------------+ - grade to "F" - ~~~~~~~~~~~~~~~~~~~~ From 1428e41876ddbe46c90d7b30b1e54e7a1339cb41 Mon Sep 17 00:00:00 2001 From: jackhinze <35316852+jackhinze@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:33:20 -0600 Subject: [PATCH 32/65] Update jackhinze.md --- jackhinze.md | 1 + 1 file changed, 1 insertion(+) diff --git a/jackhinze.md b/jackhinze.md index 300a163..6e57f47 100644 --- a/jackhinze.md +++ b/jackhinze.md @@ -1,3 +1,4 @@ +Grade Percentage Problem ~~~ ================================== Given a student's grade percentage From 4a6e134eb99a1a2925a77d8311a92e4728c578b6 Mon Sep 17 00:00:00 2001 From: jackhinze <35316852+jackhinze@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:35:44 -0600 Subject: [PATCH 33/65] Update jackhinze.md --- jackhinze.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jackhinze.md b/jackhinze.md index 6e57f47..3b70082 100644 --- a/jackhinze.md +++ b/jackhinze.md @@ -52,7 +52,7 @@ Given a temperature | V / \ - / \ Yes + / \ Yes Yes /If temperature\----------> /If temperature is\------------------------------------+ \is in Celsius / \wanted in Celsius/ | | | | From 11acab96b62818e5a2dba8c8e1590e3be0b66954 Mon Sep 17 00:00:00 2001 From: jackhinze <35316852+jackhinze@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:38:39 -0600 Subject: [PATCH 34/65] Delete jackhinzeCorF.md --- jackhinzeCorF.md | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 jackhinzeCorF.md diff --git a/jackhinzeCorF.md b/jackhinzeCorF.md deleted file mode 100644 index bc25ce5..0000000 --- a/jackhinzeCorF.md +++ /dev/null @@ -1,28 +0,0 @@ -~~~ -==================== -Given a temperature -==================== - | - V - / \ - / \ Yes -/If temperature\----------> /If temperature is\------------------------------------+ -\is in Celsius / \wanted in Celsius/ | - | | | - | No | No | - V | | ----------------- - / \ V |---------------> Print temperature - / \ ------------------------ | ------------------ -/If temperature is \ Take temperature *(9/5) ----------------------------+ -\wanted in Fahrenheit/ then add 32 | - | \ ------------------------ | - No | \ Yes | - | \ | - | +----------------------------------------------------------------+ - | | - ------------------------------- | - Take temperature and subtract ---------------------------------------------------+ - 32, then multiply by (5/9) - ------------------------------ - - ~~~ From 62ddd6855acb8671355967d1925487719088b7c8 Mon Sep 17 00:00:00 2001 From: kbenes2 <35316834+kbenes2@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:45:16 -0600 Subject: [PATCH 35/65] Update kbenes2.md --- kbenes2.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/kbenes2.md b/kbenes2.md index f0092eb..0da65d0 100644 --- a/kbenes2.md +++ b/kbenes2.md @@ -1,6 +1,6 @@ -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Given a Student's Grade Percentage -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | V / \ @@ -38,3 +38,48 @@ Given a Student's Grade Percentage | Student's letter | +------------------------------> grade is "F" -----------+ ---------------- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +FizzBuzz +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +--------------------------------- + Start with 1 +--------------------------------- + | +--------------------------------- + Add 1 <----------------------------+ +--------------------------------- | + | | + V | + / \ | + / \ No ----- | + / If the number \------------> Stop | + \ is less than n / ----- | + \ / | + | Yes | + V | + / \ | + / \ Yes ---------------- | + / If the number is \--------> Print "FizzBuzz"------+ + \ divisible by 2 and 3 / ---------------- | + \ / | + |NO | + V | + / \ | + / \ Yes ------------ | + / If the number \----------> Print "Fizz"----------+ + \ is divisible by 2 / ------------ | + \ / | + |NO | + V | + / \ | + / \ Yes ------------ | + / If the number \----------> Print "Buzz"----------+ + \ is divisible by 3 / ------------ | + \ / | + |NO | + V | + | | + | | + ----------------- | + Print Number -------------------------------------+ + ----------------- From 72c9c12e1ba057b3acce1c629b433491fa9a3ff7 Mon Sep 17 00:00:00 2001 From: FormaldaHiya <35316857+FormaldaHiya@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:47:29 -0600 Subject: [PATCH 36/65] Update Shane_Lab --- Shane_Lab | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 109 insertions(+), 1 deletion(-) diff --git a/Shane_Lab b/Shane_Lab index 39d2cc5..d30e158 100644 --- a/Shane_Lab +++ b/Shane_Lab @@ -90,7 +90,115 @@ percentage from 0-100% incremements of 3% until 100% is reached} -________Convert a temperature from C to F and vice versa_______________________________________ +________Convert a temperature from C to F and vice versa_______________________________________ + + -------- + Start + -------- + | + ---------------------------------------- + Identify the temperature for conversion (numerical value) + ---------------------------------------- + | + | + V + / \ + C > F / \ F > C ++------------------------------------/ Identify the type of conversion desired \ -----------------------------------------+ +| \ / | +| \ / | +| \ / | +| | +V V +---------------------------- ---------------------------- +Subtract 32 from value Multiply the value by 9 +---------------------------- ---------------------------- +| | +V V +---------------------------- ---------------------------- +Multiply new value by 5 Divide new value by 5 +---------------------------- ---------------------------- +| | +V V +---------------------------- ---------------------------- +Divide new value by 9 Add 32 to the new value +---------------------------- ---------------------------- +| | +V V +---------------------------- ---------------------------- +Temperature in Fahrenheit is displayed Temperature in Celsius is displayed +---------------------------- ---------------------------- +| | +| ------ | ++--------------------------------------------------> STOP <---------------------------------------------------------------+ + ------ + + +________When given three numbers, return the largest one_______________________________________ + +---------------------------- + Start +---------------------------- + | + V +---------------------------- +Begin with three values +---------------------------- + | + V +---------------------------- +Select one of the values +---------------------------- + | + V + / \ + / \ Yes ----------------- + / Is the value the \ ----------> Print the number + \ greatest of the 3 / ----------------- + \ / + \ / + | + | No + | + V +---------------------------- +Select a different value +---------------------------- + | + V + / \ + / \ Yes ----------------- + / Is the value the \ ----------> Print the number + \ greatest of the 3 / ----------------- + \ / + \ / + | + | No + | + V +---------------------------- +Select a different value +---------------------------- + | + V +---------------------------- +Print the number (largest by default) +---------------------------- + | + V +---------------------------- + Stop +---------------------------- + + + + + + + + + + From cdc6d6247ed1ad309d595fff7855e0654041a0ef Mon Sep 17 00:00:00 2001 From: piiamt <35284426+piiamt@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:48:35 -0600 Subject: [PATCH 37/65] Update piiamt.md --- piiamt.md | 103 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 83 insertions(+), 20 deletions(-) diff --git a/piiamt.md b/piiamt.md index b8ca2bc..61a6cd8 100644 --- a/piiamt.md +++ b/piiamt.md @@ -17,28 +17,91 @@ Set initial "number" to 1 | Yes | | | | | V | +| / \ | +| /if also \ | +| \ divisible by 3/--Yes-+ | +| \ / | | +| | ------------- | +| | print | +| | "FIZZBUZZ" | +| | ------------- | +| | | | --------------------- | | Print "Fizz" | | --------------------- | -| | | -| | /\ | -| V / \ V -| / if "number" is \ -| \ divisible by 3 /----------No-----+ -| \ / | -| \/ | -| | | -| Yes | -| | -------------------------- -| V print the "number" -| --------------------------- -------------------------- -| print "Buzz" | -| --------------------------- | -| | | -| V V -| ----------------------------------------- -| set number -| to "number"+1 -| ----------------------------------------- +| | | +| | /\ | +| | / \ V +| | / if "number" is \ +| | \ divisible by 3 /----------No-----+ +| | \ / | +| | \/ | +| | | | +| | Yes | +| | | -------------------------- +| | V print the "number" +| | --------------------------- -------------------------- +| | print "Buzz" | +| | --------------------------- | +| | | | +| | V V +| | ----------------------------------------- +| +-----------| set number +| | to "number"+1 +| ---------------------------------------- | | +------------------------------------+ + + + + + +CELSIUS-FAHRENHEIT by Piia + +-------------------------- + given temperature +-------------------------- + | | + | | + / \ / \ +/if temp\ /if temp\ +\given in C/ \given in F/ + \ / \ / + | | +---------------- ---------------------- +print print +temp*(9/5)+32 (temp-32)*(9/5) +---------------- ---------------------- + + + + +LARGEST OF THREE NUMBERS by Piia + +------------------------------- + given three numbers, called + n1, n2 and n3 +------------------------------- + | + | + / \ + /if n1>n2 \ + \ /----No------+ + \ / | + | / \ + Yes /if n2>n3\ + | \ /-------No----------+ + / \ \ / | + / if n1>n3 \ | | + \ / Yes | + \ / | | + \ / --------------- | + \ / print n2 | + \ / ---------------- --------------- + \/-----------------------No---------------|print n3 + | --------------- + Yes + | + ----------------- + print n1 + ----------------- From 396f20cb355535fb98061a7a6fb5beea0fb9416f Mon Sep 17 00:00:00 2001 From: JVanderhart <35316788+JVanderhart@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:48:44 -0600 Subject: [PATCH 38/65] Create Jeffrey's Lab 1 --- Jeffrey's Lab 1 | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Jeffrey's Lab 1 diff --git a/Jeffrey's Lab 1 b/Jeffrey's Lab 1 new file mode 100644 index 0000000..18fedc7 --- /dev/null +++ b/Jeffrey's Lab 1 @@ -0,0 +1,63 @@ +to convert from Celsius to Fahrenheit + ----------------------- + Take the input of the number to convert <-----+ + ----------------------- + | + V + / \ + /is this celsius?\ + YES \ / NO-------------------+ + | \/ | + | | + | | + V V + / \ / \ + /Put it into this formula\ / Put the number into this formula\ + / "input number" x 18. + 32\ \ "input number" - 32 x .5556 / + \ / \ / + \ / \ / + \ / + --------------------- + The last step + --------------------- + + + +----------------------- +How to find a letter grade from percentage +input grade + +----------------------- + | + V + / \ + / \ Yes +/Is the number between 100 and 80 \ ------------------------------------+ +\ / | + \ / | + \ / | + | No | + | / \ + | / is the number\ No + | \ in the 90s? / ------------>|You got a B. Not bad| + V \ / + / \ \ / +/ is the number\ Yes | Yes +\ in the 60s? / ---------------------------|You got a C| V + \ / |a good try | / \ + No /you got an A!!!!!!\ + | \ :O :O / + | \ / + V + / \ No + /Is it below 60?\-------------> |You got a D, could be better.| + \ / + | Yes + | + V +|You got a F bro. srsly| +--------------------- +The last step +--------------------- + + From 179aaeab7057347413ceef6179fb275e43e47f88 Mon Sep 17 00:00:00 2001 From: piiamt <35284426+piiamt@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:57:25 -0600 Subject: [PATCH 39/65] Update piiamt.md --- piiamt.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/piiamt.md b/piiamt.md index 61a6cd8..9fe2de1 100644 --- a/piiamt.md +++ b/piiamt.md @@ -6,6 +6,13 @@ Set initial "number" to 1 | +-------------+ | | +| / \ +| / if number<= given max\ ----------- +| \ /-------------No--------| End loop| +| \ / ----------- +| | +| Yes +| | | V | / \ | / \ From 3ece25920848fb3d34a59b8f5d1bc5f2df5c937e Mon Sep 17 00:00:00 2001 From: jfrazie3 <35316740+jfrazie3@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:59:21 -0600 Subject: [PATCH 40/65] Update Frazier.md --- Frazier.md | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/Frazier.md b/Frazier.md index 3a76a10..6cd4bcd 100644 --- a/Frazier.md +++ b/Frazier.md @@ -95,10 +95,43 @@ end -------------- -Convert temp - - +The game of nim + +one pile-take all but one stone +two piles -take all but one they take all of second pile you lose + -take all they take all but one you lose + X -take all but two, they take the rest, go to one pile strategy you win + -take all but two, they take all but + X -take all but two they take all but two of second pile + -take + -take all but + +end= take all but 1 +Goal x=1 + +one pile with n stones +take n-1 stones + +two piles with n and m stones +take n-2 stones + they take m stones + taken n-1 stone x=1 + they take new n stones + take m-1 stones x=1 + they take m-2 stones stone count m=2 n=2 + take n-1 stone count m=2 n=1 + they take n stone count m=2 + take m-1 win + they take m you lose n=1 + they take m-1 stone count m=1 n=1 + they take m-1 + take new n + they take m-#>2 + + + + From d4dd5322d22609092e3587c479a9868108a20934 Mon Sep 17 00:00:00 2001 From: bwortman2 <35316840+bwortman2@users.noreply.github.com> Date: Wed, 24 Jan 2018 20:59:54 -0600 Subject: [PATCH 41/65] Update Ben Lab 1 --- Ben Lab 1 | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/Ben Lab 1 b/Ben Lab 1 index 8b13789..c1c8ac8 100644 --- a/Ben Lab 1 +++ b/Ben Lab 1 @@ -1 +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) + + + + + + + + + + + + + + + + + + From 6c673cf58355df1c029644c76c3200a1d2497549 Mon Sep 17 00:00:00 2001 From: addyvinton <35316784+addyvinton@users.noreply.github.com> Date: Thu, 25 Jan 2018 03:04:46 +0000 Subject: [PATCH 42/65] Create addyvinton.md --- addyvinton.md | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 addyvinton.md diff --git a/addyvinton.md b/addyvinton.md new file mode 100644 index 0000000..6e006f3 --- /dev/null +++ b/addyvinton.md @@ -0,0 +1,135 @@ +number 1 + +--------------------- +Start at the number 0 +--------------------- + |<---------------------------------------------------------------------------+ + |<------------------------------------------------------------------------+ | + |<----------------------------------------------------------------------+ | | + |<-------------------------------------------------------+ | | | + v | | | | +-------------------- | | | | +Add 1 to the number | | | | +-------------------- | | | | + | | | | | + v | | | | + / \ / \ | | | | + / if\ yes / if\ yes ------------------- | | | + /the number is \--------> /the number is \----------> print "fizzbuzz" | | | + \divisible by 2 / \divisible by 3/ ------------------- | | | + \ / \ / | | | + \ / \ / | | | + | | | | | + | |no | | | + | v | | | + |no --------------- | | | + | print "fizz" +----------------------------------+ | | + | --------------- | | + / \ | | + / if\ yes ---------------- | | + /the number is \--------> print "buzz" +------------------------------------+ | + \divisible by 3/ ---------------- | + \ / | + \ / | + | | + |no | + v | +------------------ | +print the number +-------------------------------------------------------------------+ +------------------ + + +number 2 + + + ------- + start + ------- + | + |<-----------------------------------------------------+ + |<--------------------------------------------------+ | + |<------------------------------------------------+ | | + |<---------------------------------------------+ | | | + |<-----------------------------------------+ | | | | +------------------------------------ | | | | | +get input of student's percent grade | | | | | +------------------------------------ | | | | | + | | | | | | + | | | | | | + v | | | | | + / \ | | | | | + / if \ yes ------------- | | | | | + /student's grade is\------------> print "A" +----+ | | | | + \between 90-100 / ------------- | | | | + \ / | | | | + \ / | | | | + | | | | | + |no | | | | + v | | | | + / \ | | | | + / if \ yes ------------ | | | | + /student's grade is\------------> print "B" +--------+ | | | + \between 80-89 / ------------ | | | + \ / | | | + \ / | | | + | | | | + |no | | | + v | | | + / \ | | | + / if\ yes ------------ | | | + /student's grade is\------------> print "C" +------------+ | | + \between 70-79 / ------------ | | + \ / | | + \ / | | + | | | + |no | | + v | | + / \ | | + / if\ yes ------------ | | + /student's grade is\-----------> print "D" +--------------+ | + \between 60-69 / ------------ | + \ / | + \ / | + | | + |no | + v | + / \ | + / if \ yes ------------- | + /student's grade is\--------------> print " F" +--------------+ + \ less than 60 / ------------- + \ / + \ / + + + + + +number 3 + + + +--------- +start +--------- + | + | + v +------------------------- +get input of temperature +------------------------- + | + | + v + / \ + / if\ yes + /temperature is Farenheit\--------------> take the temperature - 32 times (5/9) + \ / + \ / + \ / + | + |no + v + + + + From f355d976f8f0e132b33986f29c5858d07797f844 Mon Sep 17 00:00:00 2001 From: JVanderhart <35316788+JVanderhart@users.noreply.github.com> Date: Wed, 24 Jan 2018 21:07:21 -0600 Subject: [PATCH 43/65] Update Jeffrey's Lab 1 --- Jeffrey's Lab 1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Jeffrey's Lab 1 b/Jeffrey's Lab 1 index 18fedc7..fb40ef7 100644 --- a/Jeffrey's Lab 1 +++ b/Jeffrey's Lab 1 @@ -60,4 +60,23 @@ input grade The last step --------------------- +Sum to 100 +----------------------- +This is the first step <-----+ +----------------------- | + | | + V | + / \ | + / \ Yes | +/ If something is true \ -----+ +\ and the day is / + a Monday + \ / + \ / + | No + v +--------------------- +The last step +--------------------- +I did the two above and I troubleshot like 3 Fizzbuzzes From 1f5518fa71c8577ff90f4738cabd414d9ca71a30 Mon Sep 17 00:00:00 2001 From: JVanderhart <35316788+JVanderhart@users.noreply.github.com> Date: Wed, 24 Jan 2018 21:08:46 -0600 Subject: [PATCH 44/65] Update Jeffrey's Lab 1 --- Jeffrey's Lab 1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Jeffrey's Lab 1 b/Jeffrey's Lab 1 index 18fedc7..4738676 100644 --- a/Jeffrey's Lab 1 +++ b/Jeffrey's Lab 1 @@ -61,3 +61,4 @@ The last step --------------------- +I did the two above and I troubleshot like 3 fizzbuzzes. From eb303802da27b170ec910656f3e2f4185df085c4 Mon Sep 17 00:00:00 2001 From: dburrigh <35316831+dburrigh@users.noreply.github.com> Date: Wed, 24 Jan 2018 21:15:53 -0600 Subject: [PATCH 45/65] Create dburrigh.md I did questions 1, 7, 8 --- dburrigh.md | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 dburrigh.md diff --git a/dburrigh.md b/dburrigh.md new file mode 100644 index 0000000..eac85e9 --- /dev/null +++ b/dburrigh.md @@ -0,0 +1,99 @@ +Fizzbuzz +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +------------------------ +Start with the number 1 +------------------------ + | + V +---------------------------- +Add 1 to the previous number <-----------------+-----------+ +---------------------------- | | + | | | + V | | + / \ | | + / \ No ------- | | +/ If the number \ -------> Stop | | +\ is less than n / ------- | | + \ / | | + | | | + |Yes | | + V | | + / \ | | + / \ | | +/ If the number \ Yes ------------------ | + is divisible by both---------------> Print "FizzBuzz" | +\ 2 and 3 / ------------------ | + \ / | + | | + | | + |No | + V | + / \ | + / \ Yes ------------- | +/ If the new number \ -----------------> Print "Fizz" ----+ +\ is divisible by 2 / ------------- | + \ / | + | | + |No | + V Yes -------------- | +/ If the new number \ -------------------> Print "Buzz" --+ +\ is divisible by 3 / --------------- | + | | + |No | + V | +------------------- | +Print out the number ---------------------------------------+ +------------------- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Find the largest prime number less than a given number +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +------------------ +Given a number n>1 +------------------ + | + V +------------------------ +Decrease the number by 1 <----------+ +------------------------ | + | | + V | + / \ | + / \ Yes | +/ If the number is \ --------+ + divisible by any +\ number between 1 and n / + (1 fib(i) = 1 +\i = int, when i = 0 or i = 1 / ------------ + \ / + |No + V + / \ Yes ---------------------------- + / when i fib(i)= fib(i-1) + fib(i-2) + and i does ---------------------------- + \ does not equal/ + 0 or 1 + \ / + |No + V +--------------------------- +fib(n) = fib(n-1) + fib(n-2) +---------------------------- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From 8c83fe5387b3a17938e0ea637d464473ba9ba0b1 Mon Sep 17 00:00:00 2001 From: Jackson Maschman Date: Wed, 24 Jan 2018 21:19:55 -0600 Subject: [PATCH 46/65] Lab #1 --- Lab_1 | 190 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 190 insertions(+) create mode 100644 Lab_1 diff --git a/Lab_1 b/Lab_1 new file mode 100644 index 0000000..bba72ea --- /dev/null +++ b/Lab_1 @@ -0,0 +1,190 @@ +Lab_1 + +1.) FizzBuzz + +--------------------------------- +First Step: User imputs a number +--------------------------------- + | + | + V <-------------------------------------------------------------+ +/ \ | + Is the number divisible by 2? ---[NO] | +\ / | | + | | + | | | + [YES] | | + | | | + V | | +/ \ | | + Print "Fizz" | | +\ / | | + | | | + |<-------------------------+ | + V | +/ \ | + Is the number divisible by 3? -----[NO]------------------+ | +\ / | | + | | | + [YES] | | + | | | + V | | +/ \ | | + Print "Buzz" | | +\ / | | + | | | + |<----------------------------------------------+ | + V | +/ \ | + Is the number not divisible by 2 or 3? --------[NO] | +\ / | | + | | | + [Yes] | | + | | | + V | | + / \ | | + Print number | | + \ / | | + | <---------------------------------+ | + | | + V | +/ \ | + Add 1 to number --------------------------------------------+ +\ / + + +2.) Student Letter Grade + +------------------------------------------- + Identify Student Grade From 0%-100% +------------------------------------------- + | + V +/ \ / \ + Is the grade 90% or higher? ---[Yes]---> Give the student an A +\ / \ / + | + [No] + | + V +/ \ / \ + Is the grade 80% or higher and lower than 90%? ---[YES]---> Give the student a B +\ / \ / + | + [NO] + | + V +/ \ / \ + Is the grade 70% or higher and lower than 80%? ---[YES]---> Give the student a C +\ / \ / + | + [NO] + | + V +/ \ / \ + Is the grade 60% or higher and lower than 70%? ---[YES]---> Give the student a D +\ / \ / + | + [NO] + | + V +/ \ + Give the student an F +\ / + +3.) Temperature + +------------------------------------------------- + Identify a Value Representing Temperature +------------------------------------------------- + | + V +/ \ / \ + Is the temperature in Fahrenheit? ---[YES]---> Subtract 32 from the number and multiply the result by (5/9) +\ / \ / + | + [NO] + | + V +/ \ / \ + Is the temperature in Celsius? ---[YES]---> Multiply the number by (9/5) and add 32 to the product +\ / \ / + | + [NO] + | + V +/ \ + Scrap that number and move on with your life +\ / + +4.) Three Numbers + +------------------------- + Get Three Numbers +------------------------- + | + V +/ \ / \ / \ +Is the first number greater than the second number? ----[YES]-->Is the first number greater than the third number? -[YES]->Print 1st # +\ / \ / \ / + | | + | [NO] + | | + [NO] <------------------------------------------------------------------+ + | + V +/ \ / \ + Is the second number greater than the third number? ---[YES]--> Print Second Number +\ / \ / + | + [NO] + | + V +/ \ + Print third number +\ / + +6.) First 100 Numbers + +--------------------- + Find a Number +--------------------- + | + | + V +/ \ + Have a counter equal 1. +\ / + | + V +/ \ + Have your number equal the variable x +\ / + | + | <-----------------------------------------+ + V | +/ \ | + Save value x | +\ / | + | | + V | +/ \ | + Have x = x + 1 | +\ / | + | | + V | +/ \ | + Add 1 to counter | +\ / | + | | + V | +/ \ | + Does the counter equal 100? ---[NO]-------------+ +\ / + | + [YES] + | + V +/ \ + Add all saved values and print result. Then stop. +\ / \ No newline at end of file From dd25d7655afc1e83ead8ef9d83dec31d44b52db6 Mon Sep 17 00:00:00 2001 From: jamasch6 <35316865+jamasch6@users.noreply.github.com> Date: Wed, 24 Jan 2018 21:23:33 -0600 Subject: [PATCH 47/65] Rename Lab_1 to Jackson_Maschman_Lab_1 --- Lab_1 => Jackson_Maschman_Lab_1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename Lab_1 => Jackson_Maschman_Lab_1 (99%) diff --git a/Lab_1 b/Jackson_Maschman_Lab_1 similarity index 99% rename from Lab_1 rename to Jackson_Maschman_Lab_1 index bba72ea..1d8c4e8 100644 --- a/Lab_1 +++ b/Jackson_Maschman_Lab_1 @@ -187,4 +187,4 @@ Is the first number greater than the second number? ----[YES]-->Is the first num V / \ Add all saved values and print result. Then stop. -\ / \ No newline at end of file +\ / From c2e5d4e32d10f0cbd3fd18c66497ab1b75262f83 Mon Sep 17 00:00:00 2001 From: jaraujomiranda <35547408+jaraujomiranda@users.noreply.github.com> Date: Wed, 24 Jan 2018 21:27:15 -0600 Subject: [PATCH 48/65] Create jaraujomiranda --- jaraujomiranda | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 jaraujomiranda diff --git a/jaraujomiranda b/jaraujomiranda new file mode 100644 index 0000000..b282759 --- /dev/null +++ b/jaraujomiranda @@ -0,0 +1,89 @@ + Flowchart number 1 +------------------------------------------------------------------------------------------------------------------------------ + Input (1 + 1*(the amount of loops made) +------------------------------------------------------------------------------------------------------------------------------ + A A A A | + | | | | v + | | | | / \ Yes /\ No /\ No /\ No --------------------- + | | | | / Is the number \------>/ Is the number a \ -------->/ Is the number \----------------->/ Is the number \---------> Print out the number + | | | | \the given number/ \ divisible by 6 / \ divisble by 2 / \ divisible by 3 / --------------------- + | | | | \ / \ / \/ \/ + | | | | | \ / | Yes | Yes + | | | | | | Yes v v + | | | | | v ------------------- --------------------- + | | | | | --------------------- Print out "Fizz" Print out "Buzz" + | | | | | Print out "Fizz Buzz" ------------------ --------------------- + | --------- | | | --------------------- + | Loop | ---------- | + | --------- | Loop v + | | | ---------- / \ + | | | | / \ No /\ No /\ No --------------------- + | | --------- | / Is the number a \ -------->/ Is the number \----------------->/ Is the number \---------> Print out the number + | | Loop | \ divisible by 6 / \ divisble by 2 / \ divisible by 3 / --------------------- + --------- | --------- | \ / \/ \/ | + Loop | | | \ / | Yes | Yes | + --------- | | | | Yes v v | + | | | | v ------------------- --------------------- | + | | | | --------------------- Print out "Fizz" Print out "Buzz" | + | | | +-- Print out "Fizz Buzz" ------------------ --------------------- | + | | | --------------------- | | | + | | +-------------------------------------------------+ | | + | +---------------------------------------------------------------------------------------------------+ | + +----------------------------------------------------------------------------------------------------------------------------------------------------------+ + + +Flowchart number 2 +----------------------- + Input grade +----------------------- + | + V + / \ + / \ Yes /\ No /\ No /\ No ---------------- +/ Is the number \ --------->/ Is it between \----->/ Is it between \------>/ Is it between \--------> The grade is A +\ bigger than 59.9% / \ 60% and 69.9% / \ 70% and 79.9%% / \ 80% and 89.9% / ---------------- + \/ \/ \/ \/ + | No | Yes | Yes | + v v v v +--------------------- -------------------- --------------------- ------------------- + The grade is F The grade is D The grade is C The grade is B +--------------------- -------------------- --------------------- ------------------- + + Flowchart number 3 +----------------------- + Input number +----------------------- + | + V + / \ + / Is \ + / the \ + / number \ + \ in / Yes ----------------------------------------- + \Celsius/ -------> Put the number in (9*(input number)/5)+32 + \ / ----------------------------------------- + \ / + | + | No + v +----------------------------------------- +Put the number in 5*((input number)-32)/9 +----------------------------------------- + + Flowchart number 4 +----------------------- + Input numbers given +----------------------- + | + V + / \ + / \ No /\ No ------------------------- +/ Is the first number \ ------>/ Is the second number \------> Display the third number +\ bigger than the other two / \ bigger than the third number/ ------------------------- + \ / \/ + \ / | Yes + | Yes v + v ------------------- +--------------------- Display that number + Display that number ------------------- +--------------------- From b49c31d223d0be28c95b30fe19bede1afc00c76c Mon Sep 17 00:00:00 2001 From: Alexkerr7 <35547240+Alexkerr7@users.noreply.github.com> Date: Wed, 31 Jan 2018 18:47:08 -0600 Subject: [PATCH 49/65] I made two flow charts --- Lab_1.md | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/Lab_1.md b/Lab_1.md index a3d5bfa..2b945f4 100644 --- a/Lab_1.md +++ b/Lab_1.md @@ -43,9 +43,76 @@ The last step #### 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 +--------------------- + | + v + / \ + / \ + / \ + / \ + divide the number by 2 +/ is there a remander ? __>____ no_>__Print "Fizz"____>_______ +\ / | + \ / | + \ / | + \/ | + | | + | | + Yes | + | | + v | + | | + divide the number by 3 | + is the remander = 0 ____>____no____>____Print "buzz"___>_____| + | | + | | + Yes | + | | + 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 From 3117171ddb0ba196c0b681eb53db4b6ba85af4b5 Mon Sep 17 00:00:00 2001 From: Alexkerr7 <35547240+Alexkerr7@users.noreply.github.com> Date: Wed, 31 Jan 2018 18:51:29 -0600 Subject: [PATCH 50/65] Update Lab_1.md --- Lab_1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lab_1.md b/Lab_1.md index 2b945f4..cd7dd64 100644 --- a/Lab_1.md +++ b/Lab_1.md @@ -66,7 +66,7 @@ import user number v | | | divide the number by 3 | - is the remander = 0 ____>____no____>____Print "buzz"___>_____| + is there remander ______>____no____>____Print "buzz"___>_____| | | | | Yes | From 88522004889887927b7fef53f1784afcb9d40174 Mon Sep 17 00:00:00 2001 From: Alexkerr7 <35547240+Alexkerr7@users.noreply.github.com> Date: Wed, 31 Jan 2018 18:59:59 -0600 Subject: [PATCH 51/65] Update Lab_1.md --- Lab_1.md | 54 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/Lab_1.md b/Lab_1.md index cd7dd64..9188a5a 100644 --- a/Lab_1.md +++ b/Lab_1.md @@ -46,33 +46,35 @@ The last step ~~~ ---------------------- import user number +n=1 --------------------- - | - v - / \ - / \ - / \ - / \ - divide the number by 2 -/ is there a remander ? __>____ no_>__Print "Fizz"____>_______ -\ / | - \ / | - \ / | - \/ | - | | - | | - Yes | - | | - v | - | | - divide the number by 3 | - is there remander ______>____no____>____Print "buzz"___>_____| - | | - | | - Yes | - | | - v | - Print "number"___>________________>_________>_____> Break code + | _______>__________>________>__________________>_______| + 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 %. ~~~ From 0042000d26d2e7042e886ccb56cf8065a9204d08 Mon Sep 17 00:00:00 2001 From: Alexkerr7 <35547240+Alexkerr7@users.noreply.github.com> Date: Wed, 31 Jan 2018 19:01:13 -0600 Subject: [PATCH 52/65] Rename Lab_1.md to Alex Kerr lab 1.md --- Lab_1.md => Alex Kerr lab 1.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Lab_1.md => Alex Kerr lab 1.md (100%) diff --git a/Lab_1.md b/Alex Kerr lab 1.md similarity index 100% rename from Lab_1.md rename to Alex Kerr lab 1.md From cbf9567fb59e44cef420c2b393c4042103c56d3b Mon Sep 17 00:00:00 2001 From: jifland Date: Wed, 31 Jan 2018 19:05:23 -0600 Subject: [PATCH 53/65] Create Skylar.md --- Skylar.md | 274 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 274 insertions(+) create mode 100644 Skylar.md diff --git a/Skylar.md b/Skylar.md new file mode 100644 index 0000000..1d53b86 --- /dev/null +++ b/Skylar.md @@ -0,0 +1,274 @@ +# 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: + +#### 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" +~~~ +---------- +Start +---------- + | + v +---------------------------- +Start set initial value at 1 +---------------------------- + |---------------------------------+ + v || ^ +---------------------------- ^| | +Increase Value by 1 || | +---------------------------- || | + | |^ | + V || ^ + / \ || | + / \ || | + / \ Yes || | ____________ +/ Is value divisble by 2 \-----------+|--|----- |Print "Fizz"| +\ / | | |____________| + \ / | ^ + \ / ^ | + |No | | + V | | + / \ | | + / \ | | + / \ Yes | ^ ____________ +/ Is value divisble by 3 \----------- +--|------>|Print "Buzz"| +\ / | |____________| + \ / | + \ / ^ + |No | + v | + ------------- | + Print value -->------------------------+ + ------------- + | + v +----------- +END +------------ + ~~~ +#### Determine a students letter grade when given the %. +~~~ +---------- +Start +---------- + | + v +--------------------------------- +Enter Students Percentage Grade % +--------------------------------- + | + v + / \ + / \ Yes +------------+ +/ Is value greater \ ----->|Print A | +\ than or equal to 90 / +------------+ + \ / + \ / + | + |No + v + / \ + / \ Yes +------------+ +/ Is value greater \ ----->|Print B | +\ than or equal to 80 / +------------+ + \ / + \ / + | + |No + v + / \ + / \ Yes +------------+ +/ Is value greater \ ----->|Print C | +\ than or equal to 70 / +------------+ + \ / + \ / + | + |No + v + / \ + / \ Yes +------------+ +/ Is value greater \ ----->|Print D | +\ than or equal to 60 / +------------+ + \ / + \ / + | + |No + v + + ------------- + Print F + ------------- + | + v +----------- +END +------------ +~~~ +#### Convert a tempature from C to F or vice versa. +~~~ +---------- +Start +---------- + | + v +------------------------------ +Insert Temperature Value +------------------------------ + / \ + / \ Yes+------------------------+ +----------------- ---+ +/ Is value in Celisus \ ----->|Value* multiply(9/5)+32 |----->|Print "New Value" "F"| +\ / +------------------------+ +---------------------+ + \ / + \ / + | + |No + v +------------------------------- +Value subtract 32 multiply 5/9 +-------------------------------- + | + v +-------------------- +Print "New Value" "C" +--------------------- + | + v +----------- +END +------------ +~~~ +#### When given three numbers return the largest of them +~~~ +---------- +Start +---------- + | + v +--------------------------------- +Assign first number as a +assign second number as b +assign third number as c +--------------------------------- + | + v + / \ + / \ Yes +------------+ +/ Is a greater \ -----> |Print a | +\ than b and / +------------+ + greater c + \ / + \ / + | + |No + v + / \ + / \ Yes +------------+ +/ Is b greater \ --------> |Print b | +\ than a and / +------------+ + greater c + \ / + \ / + | + |No + v + ------------- + Print c + ------------- + | + v +----------- +END +------------ +~~~ + +#### Find the sum of the first 100 numbers +1. modify this to find the sum of the next 100 numbers when given a starting value. +~~~ +---------- +Start +---------- + | + v +----------------------- +Insert initial value=n +----------------------- + |<------------------------------+ + v ^ +---------------------- | +set i=0 | +---------------------- | + | | + v | +--------------- | +increase i by 1 | +--------------- | + / \ | + / \ Yes +-------+-----------------------------+ +/ Is i less \ -----------> |n+(n+1)=n | + |add initial value to initial value +1| +\ than 100 / +-------------------------------------+ + + \ / + \ / + | + |No + v +--------------- +Print n +--------------- + | + v +------------ +END +-------------- + +~~~ + +#### 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 From 8945dbf2f99592c6e96760a04f5059adfb1cecc0 Mon Sep 17 00:00:00 2001 From: jaredpohlmann <35316403+jaredpohlmann@users.noreply.github.com> Date: Wed, 31 Jan 2018 19:49:55 -0600 Subject: [PATCH 54/65] Create Jared Pohlmann Lab 1 Code --- Jared Pohlmann Lab 1 Code | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Jared Pohlmann Lab 1 Code diff --git a/Jared Pohlmann Lab 1 Code b/Jared Pohlmann Lab 1 Code new file mode 100644 index 0000000..c37a348 --- /dev/null +++ b/Jared Pohlmann Lab 1 Code @@ -0,0 +1,50 @@ +### 1. Fizzbuzz Code +number = 1 +end = 100 +while(number<=end) +{ +if(number%2==0) +{ + system.out.print("Fizz") + number = number + 1 +} +else if(number%3==0) +{ + system.out.print("Buzz") + number = number + 1 +} +else() +{ +system.out.print(number) +number = number + 1 +} +} + +### 2. Determine a student's letter grade when given % +grade = +if(grade >= 90) +{ +system.out.print("A") +} +else if( grade >=80) +{ +system.out.print("B") +} +else if( grade >= 70) +{ +system.out.print("C") +} +else if( grade >= 60) +{ +system.out.print("D") +} +else() +{ +system.out.print("F") +} +### 8. Find Largest prime number less than a given number +prime = 23 +num = prime - 1 +while(num > 1) +{ +if ( From 87310e6064c8c1d2503735a976e96a4929edad85 Mon Sep 17 00:00:00 2001 From: jifland Date: Wed, 31 Jan 2018 21:29:02 -0600 Subject: [PATCH 55/65] Rename Lab_1.md to dmonrow_lab_1.md --- Lab_1.md => dmonrow_lab_1.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Lab_1.md => dmonrow_lab_1.md (100%) diff --git a/Lab_1.md b/dmonrow_lab_1.md similarity index 100% rename from Lab_1.md rename to dmonrow_lab_1.md From db52f98eff31e6595c105619bf670369771320bb Mon Sep 17 00:00:00 2001 From: jfrazie3 <35316740+jfrazie3@users.noreply.github.com> Date: Fri, 2 Feb 2018 09:50:12 -0600 Subject: [PATCH 56/65] Update Frazier.md --- Frazier.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/Frazier.md b/Frazier.md index 6cd4bcd..e03de21 100644 --- a/Frazier.md +++ b/Frazier.md @@ -36,7 +36,7 @@ else if start%2==0 ---> print fizz + | | | No | | | v | | | ------------------ Yes | | | -else if start%3=0 ----> print buzz + | | +else if start%3==0 ----> print buzz + | | ----------------- | | | | | | | v | | | @@ -58,6 +58,25 @@ Print "done" <----------------------------------+ +start=0; +end=# given by user + +if (start<=end){ + if (start%6==0){ + print "fizzbuzz"} + if else (start%2==0){ + print "fizz"} + if else (start%3==0){ + print "buzz"} + else { + print start} + start=start+1;} +else { +print done +} + + + Letter Grade ------------ @@ -94,6 +113,19 @@ else print fail end -------------- +percent= user input + +if (percent>=90){ + print "A"} +if else (percent>=80){ + print "B"} +if else (percent>=70){ + print "C"} +if else (percent>=60){ + print "D" +else { + print "F"} + The game of nim From 47f33d588f80db81ad481665692ff869a7e11cb2 Mon Sep 17 00:00:00 2001 From: piiamt <35284426+piiamt@users.noreply.github.com> Date: Sun, 4 Feb 2018 18:47:57 -0600 Subject: [PATCH 57/65] Update piiamt.md --- piiamt.md | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/piiamt.md b/piiamt.md index 9fe2de1..fae715d 100644 --- a/piiamt.md +++ b/piiamt.md @@ -58,7 +58,19 @@ Set initial "number" to 1 | ---------------------------------------- | | +------------------------------------+ - +int givenMax=10 +int number=1 +for (i=0; i>=givenMax; i++, number++){ //sets counter i, stops when counter hits max iterations, after every runthrough increases both i and number by 1. + if (number%2==0 and number%3==0){ + System.out.println("FizzBuzz"); + } + else if (number%2==0){ + System.out.println("Fizz"); + } + else if (number%3==0){ + System.out.println("Buzz"); + } +} @@ -79,7 +91,14 @@ CELSIUS-FAHRENHEIT by Piia print print temp*(9/5)+32 (temp-32)*(9/5) ---------------- ---------------------- - +float temp=25.3; +boolean isCelcius=true; +if (isCelcius==true){ + System.out.println("The temparature in Fahrenheit is "+(temp*(9/5)+32) ); +} +else{ + System.out.println("The temparature in Celcius is "+(temp-32)*(9/5) ); +} @@ -112,3 +131,21 @@ LARGEST OF THREE NUMBERS by Piia ----------------- print n1 ----------------- +int n1 = 3; +int n2 = 5; +int n3 = 1; +if (n1>n2){ + if (n1>n3){ + System.out.println("the largest number is n1"); + } + else{ + System.out.println("the largest number is n3"); + } +else if (n1n3){ + System.out.println("the largest number is n2"); + } + else{ + System.out.println("the largest number is n3"); + } + From ff478c6aac1d47969956695407bc6e3477a6f3de Mon Sep 17 00:00:00 2001 From: jaredpohlmann <35316403+jaredpohlmann@users.noreply.github.com> Date: Mon, 5 Feb 2018 10:22:18 -0600 Subject: [PATCH 58/65] Update JaredPohlmannLab1.md --- JaredPohlmannLab1.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/JaredPohlmannLab1.md b/JaredPohlmannLab1.md index fa5c03a..0c53217 100644 --- a/JaredPohlmannLab1.md +++ b/JaredPohlmannLab1.md @@ -33,6 +33,26 @@ Set start number to 1 Print out the number--------------------------------------+ -------------------- ~~~ + number = 1 +end = 100 +while(number<=end) +{ +if(number%2==0) +{ + system.out.print("Fizz") + number = number + 1 +} +else if(number%3==0) +{ + system.out.print("Buzz") + number = number + 1 +} +else() +{ +system.out.print(number) +number = number + 1 +} +} #### 2. Determine a students letter grade when given the %. ~~~ ----------------------- From 5e69eed7a69a6e78816a390b3ffe55da3ff61603 Mon Sep 17 00:00:00 2001 From: jaredpohlmann <35316403+jaredpohlmann@users.noreply.github.com> Date: Mon, 5 Feb 2018 10:25:03 -0600 Subject: [PATCH 59/65] Update JaredPohlmannLab1.md --- JaredPohlmannLab1.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/JaredPohlmannLab1.md b/JaredPohlmannLab1.md index 0c53217..2a68433 100644 --- a/JaredPohlmannLab1.md +++ b/JaredPohlmannLab1.md @@ -32,7 +32,7 @@ Set start number to 1 -------------------- | Print out the number--------------------------------------+ -------------------- - ~~~ + number = 1 end = 100 while(number<=end) @@ -53,6 +53,7 @@ system.out.print(number) number = number + 1 } } +~~~ #### 2. Determine a students letter grade when given the %. ~~~ ----------------------- @@ -105,7 +106,28 @@ Start ------------ Print out "F" ------------ - ~~~ +grade = +if(grade >= 90) +{ +system.out.print("A") +} +else if( grade >=80) +{ +system.out.print("B") +} +else if( grade >= 70) +{ +system.out.print("C") +} +else if( grade >= 60) +{ +system.out.print("D") +} +else() +{ +system.out.print("F") +} +~~~ #### 8. Find the largest prime number less than a given number ~~~ From 03394f12980a0bb26b88f52d4a1576776b1ffb01 Mon Sep 17 00:00:00 2001 From: SkylarGalloway <35279968+SkylarGalloway@users.noreply.github.com> Date: Mon, 5 Feb 2018 18:22:38 -0600 Subject: [PATCH 60/65] Update Skylar.md --- Skylar.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Skylar.md b/Skylar.md index 1d53b86..6df7bcc 100644 --- a/Skylar.md +++ b/Skylar.md @@ -62,13 +62,22 @@ Increase Value by 1 || | V || ^ / \ || | / \ || | + / \ Yes || | __________________ +/ Is value divisble by 6 \-----------+|--|----->|Print "Fizz Buzz" | +\ / || | |__________________| + \ / || ^ + \ / ^ ^ | + |No || | + V | + / \ || | + / \ || | / \ Yes || | ____________ -/ Is value divisble by 2 \-----------+|--|----- |Print "Fizz"| +/ Is value divisble by 2 \-----------+|--|----->|Print "Fizz"| \ / | | |____________| \ / | ^ \ / ^ | |No | | - V | | + V | | / \ | | / \ | | / \ Yes | ^ ____________ From a649d341f93ff1495a85bbe686294bbcc08b0d8a Mon Sep 17 00:00:00 2001 From: piiamt <35284426+piiamt@users.noreply.github.com> Date: Mon, 5 Feb 2018 18:51:01 -0600 Subject: [PATCH 61/65] Update piiamt.md --- piiamt.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piiamt.md b/piiamt.md index fae715d..5140acc 100644 --- a/piiamt.md +++ b/piiamt.md @@ -61,7 +61,7 @@ Set initial "number" to 1 int givenMax=10 int number=1 for (i=0; i>=givenMax; i++, number++){ //sets counter i, stops when counter hits max iterations, after every runthrough increases both i and number by 1. - if (number%2==0 and number%3==0){ + if (number%2==0 && number%3==0){ System.out.println("FizzBuzz"); } else if (number%2==0){ @@ -70,6 +70,9 @@ for (i=0; i>=givenMax; i++, number++){ //sets counter i, stops when counter hits else if (number%3==0){ System.out.println("Buzz"); } + else{ + System.out.println(number); + } } From ce52d08e7224e0f48e961ee1ebfae31ace6f0d8d Mon Sep 17 00:00:00 2001 From: jaraujomiranda <35547408+jaraujomiranda@users.noreply.github.com> Date: Wed, 7 Feb 2018 19:31:18 -0600 Subject: [PATCH 62/65] Rename jaraujomiranda to jaraujomirandalab1 --- jaraujomiranda => jaraujomirandalab1 | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename jaraujomiranda => jaraujomirandalab1 (100%) diff --git a/jaraujomiranda b/jaraujomirandalab1 similarity index 100% rename from jaraujomiranda rename to jaraujomirandalab1 From be36155f7ccc051cf3dc28dca558fea7d57b536d Mon Sep 17 00:00:00 2001 From: jifland Date: Tue, 10 Apr 2018 00:53:17 -0500 Subject: [PATCH 63/65] Update addyvinton.md --- addyvinton.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/addyvinton.md b/addyvinton.md index 6e006f3..ef23207 100644 --- a/addyvinton.md +++ b/addyvinton.md @@ -1,5 +1,5 @@ number 1 - +~~~ --------------------- Start at the number 0 --------------------- @@ -37,11 +37,11 @@ Add 1 to the number | ------------------ | print the number +-------------------------------------------------------------------+ ------------------ - +~~~ number 2 - +~~~ ------- start ------- @@ -100,14 +100,14 @@ get input of student's percent grade | | | | | \ / \ / - +~~~ number 3 - +~~~ --------- start --------- @@ -133,3 +133,4 @@ get input of temperature +~~~ From 9fc6b4aa93765b033ee3c57d0c4efcb644fbad93 Mon Sep 17 00:00:00 2001 From: jifland Date: Tue, 10 Apr 2018 01:00:54 -0500 Subject: [PATCH 64/65] Update kbenes2.md --- kbenes2.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kbenes2.md b/kbenes2.md index 0da65d0..da35153 100644 --- a/kbenes2.md +++ b/kbenes2.md @@ -41,6 +41,7 @@ Given a Student's Grade Percentage ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FizzBuzz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +~~~ --------------------------------- Start with 1 --------------------------------- @@ -83,3 +84,4 @@ FizzBuzz ----------------- | Print Number -------------------------------------+ ----------------- +~~~ From e43b0bc85ab70ea3f6decd50327c721f383cebb4 Mon Sep 17 00:00:00 2001 From: jifland Date: Tue, 10 Apr 2018 01:02:14 -0500 Subject: [PATCH 65/65] Update piiamt.md --- piiamt.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/piiamt.md b/piiamt.md index 5140acc..9cd21bb 100644 --- a/piiamt.md +++ b/piiamt.md @@ -1,5 +1,5 @@ Fizzbuzz by Piia: - +~~~ ---------------------------- Set initial "number" to 1 ---------------------------- @@ -58,6 +58,7 @@ Set initial "number" to 1 | ---------------------------------------- | | +------------------------------------+ +~~~ int givenMax=10 int number=1 for (i=0; i>=givenMax; i++, number++){ //sets counter i, stops when counter hits max iterations, after every runthrough increases both i and number by 1. @@ -79,7 +80,7 @@ for (i=0; i>=givenMax; i++, number++){ //sets counter i, stops when counter hits CELSIUS-FAHRENHEIT by Piia - +~~~ -------------------------- given temperature -------------------------- @@ -94,6 +95,7 @@ CELSIUS-FAHRENHEIT by Piia print print temp*(9/5)+32 (temp-32)*(9/5) ---------------- ---------------------- +~~~ float temp=25.3; boolean isCelcius=true; if (isCelcius==true){ @@ -106,7 +108,7 @@ else{ LARGEST OF THREE NUMBERS by Piia - +~~~ ------------------------------- given three numbers, called n1, n2 and n3 @@ -134,6 +136,7 @@ LARGEST OF THREE NUMBERS by Piia ----------------- print n1 ----------------- + ~~~ int n1 = 3; int n2 = 5; int n3 = 1;