Shorr PLTW CSP 2021-22-Per 6 Assignments

Upcoming Assignments RSS Feed

No upcoming assignments.

Past Assignments

Due:

Final in Google Classroom

Final

Answer the questions in a Google Doc that you will submit at the end of the period.



1st video: https://www.youtube.com/watch?v=tUMY9s_kxD4  0:00 through 22:50

Questions for during the 1st video:


1. How did Hugh make his climbing friends envious?

2. How did Hugh prank his classmates?

3. What's the drawback of the old amputation surgery?

4. What's different about the new surgery?

5. What's the distinction Hugh Herr makes between his bionic prosthetic and having cyborg function?


Ethical Questions for the 1st video:


1. Hugh has said, “Today we live in a world where disability is commonplace. The level of human suffering is beyond all human comprehension. So many people have disabilities and a poorer quality of life than they seek. The field of bionics imagines a future where that’s not the case, where disability has largely been solved.”

Yet, the cost of advanced bionic prosthetics is very high, and many who would benefit from them cannot afford them. Should society provide advanced bionics to those in need who cannot afford them? Why or why not?


2. Hugh also has said, "The science and technology that will enable the elimination of disability after disability, will also, I believe, set the technological foundation for human augmentation."

Rather than restoring non-disabled function, the technology could enhance function beyond non-disabled capabilities. Some basic examples could be to run faster, walk farther with more endurance, or expand our sensory inputs.

a) Would breaking a world record in running using bionic augmentation be as meaningful as doing so without? Why or why not?

b) If resources are limited, should bionic augmentation be allowed before bionic prosthetics are available for all those who want them to address disabilities? Why or why not?

-------------

Video 2: https://www.youtube.com/watch?v=gV0_raKR2UQ


Questions for during the 2nd video:
1. Below are the 5 types of algorithmic bias from the video. As you watch the video, note one example for each:

a. Data Reflects Existing Biases

b. Unbalanced Classes in Training Data

c. Data doesn't capture the right value

d. Data amplified by feedback loop

e. Malicious data attack or manipulation

2. What are two ways to monitor AI for bias and discrimination?


For after the video:


3. Search online for a real example of algorithmic discrimination (different from the one you may have found during the AI Weirdness reading) and do the following:
a. Describe the situation.
b. Explain which type or types of alogrithmic bias were likely displayed and why.
c. How do you think this algorithimic bias could have been identified before it was used in public?
d. What changes do you think could be made to address the bias? Or should the algorithm be stopped from being used completely?
(Hint: Try searching for "algorithmic discrimination examples")
Created by Garrett Shorr: Wednesday, December 22 4:37 PM

Due:

Catch a Turtle Submission in Google Classroom

Catch a Turtle Submission

Show me the working game with the score and timer correctly showing and a game over message at the end.
Created by Garrett Shorr: Friday, December 3 5:03 PM

Due:

Logical & Relational Operator Practice in Google Classroom

Logical & Relational Operator Practice

Write the condition in python for each of these:

math.sqrt()  or x ** 0.5 works for square root

math.abs()  does absolute value

a. z is odd.

b. z is not greater than y's square root.

c. y is positive.

d. Either x or y is even, and the other is odd. 

e. y is a multiple of z.

f. z is not zero.

g. y is greater in magnitude than z.

h. x and z are of opposite signs.

i. y is a nonnegative one-digit number.

j. z is nonnegative.

k. x is even

l. x is closer in value to y than z is.






Solutions:















a. z is odd.

z % 2 != 0   (this works in more languages)

z % 2 == 1

b. z is not greater than y's square root.

z <= math.sqrt(y)

z <= y ** 0.5




c. y is positive.

y > 0     (0 is neither positive nor negative, but it is even)




d. Either x or y is even, and the other is odd. 

(x % 2 == 0 and y % 2 != 0) or (x % 2 != 0 and y % 2 == 0)

(x - y) % 2 != 0

(x + y) % 2 != 0




e. y is a multiple of z.

y % z == 0

y / z == y // z




f. z is not zero.

z != 0




g. y is greater in magnitude than z.

math.abs(y) > math.abs(z)




h. x and z are of opposite signs.

x > 0 and z < 0 or x < 0 and z > 0

x == z * -1  (works for all but 0)

x * z < 0




i. y is a nonnegative one-digit number.

0 ... 9

0 <= y <= 9

0 <= y < 10

y >= 0 and y <= 9




j. z is nonnegative.

z >= 0




k. x is even

x % 2 == 0




l. x is closer in value to y than z is.

math.abs(y-x) < math.abs(z-y)
Created by Garrett Shorr: Tuesday, November 16 6:19 PM

Due:

Modulus Towers in Google Classroom

Modulus Towers

Starter Code: https://gist.github.com/gshorrSPHS/21e9f10c9d4a48d9cee028ca663c81c5


1. make the tower rotate through 3 colors all the way up
2.  make a 2nd and 3rd tower to the right of the first that also rotates through 4 and 5 colors respectively.


Checked in class, mark complete if you finished it.
Created by Garrett Shorr: Friday, November 5 8:07 PM

Due:

AI Weirdness #1 in Google Classroom

AI Weirdness #1

Due start of class on Tuesday


1. Read the attached excerpt from chapter 1 of Janelle Shane's "You Look Like a Thing and I Love You".  (Start with the section SOMETIMES ITS RULES ARE BAD)


In a Google Doc...

2. Generally reflect on what you've read. What new things did you learn? What new questions did it inspire in you? If you are having trouble getting started, write 4 statements. 2 of the statements should start with "I noticed..." and the other 2 statements should start with "I wonder..."

3. Think about the AI focusing on the rolling green hills when learning how to identify sheep. What's something else that an AI might learn to recognize incorrectly from an image? What mistake do you anticipate it making?

4. Search the internet for real instances of AIs going wrong. Pick one that you find interesting.
a. Describe the situation, and then think about the Four Signs of AI Doom you read about from the excerpt of chapter 1.
b. Which warning sign(s) do you think, in hindsight, applied to the problem? Why?




If you have some extra time, here are some AI Generated Drawing Prompts from October:


https://www.aiweirdness.com/botober2021/


This is google's deep dream generator: it will take a photo and make it in the style of a particular artist. You can log in with your google account.
https://deepdreamgenerator.com/generator


This is google's quick draw. You train an AI to recognize doodles.
https://quickdraw.withgoogle.com/


A list of other AI experiments:
https://experiments.withgoogle.com/collection/ai
Created by Garrett Shorr: Friday, October 15 5:32 PM

Due:

Interactive Fiction Final Submission in Google Classroom

Interactive Fiction Final Submission

Your stories will get posted two places:
Paste a link to your repl into a google doc and submit it here.
In the class comments below this assignment, paste that same link.
You should have in your stories the following:

at least 4 decisions
color
delays
something random (can be a plot point or just some flavor text, but random.random() should be used in an if statement correctly somewhere)
Created by Garrett Shorr: Monday, October 11 3:04 PM

Due:

Interactive Fiction Part III (Out Wednesday 9/29) in Google Classroom

Interactive Fiction Part III (Out Wednesday 9/29)

Take your story and start breaking it up into smaller scenes to fit the interactive nature of the
story. Include the text of the questions you will ask to give the player choices and what choices
are acceptable. Make a separate google doc for this or add it to the bottom of the original story
google doc.  Example follows.


Original Story Example:
You find yourself in a forest and you don't know who you are or why you are here. You see a path
heading off to the west and a note on the ground next to you. You pick up the note and read it, eyes
growing wide, and immediately start running down the path to the west.


Broken up into a scene format:


Scene Number: Title
Description
Question to Player [choice1, choice2, etc...]
[choice 1]: Text response for picking this choice
result: which scene you go to or if the game ends here
[choice 2]: Text response for picking this choice
result: which scene you go to or if the game ends here
etc...


Scene 1: Forest
You find yourself in a forest and you don't know who you are or why you are here. You see a path
heading off to the west and a note on the ground next to you.
What do you want to do? [read note, go west, go back to sleep]


[read note] : Run! Run west now! Go! Don't delay! You are in grave danger! Why are you still reading
this note? Start running! Go! Hurry up!
result : Stay in Scene 1


[go west] : You bolt west as fast as you can!
result : Start Scene 2


[go back to sleep] : You go back to sleep. You wake up feeling hot breath on your face. You open your
eyes and the last thing you ever see is the gaping maw of a tyrannosaur. *Chomp*
result: Game over. Try again?


Continue this style for each scene in your story. This will be due end of class on Wednesday.





If you are done with this, make
a Python project on replit.com and make sure that your scenes' text isn't too
long.


Example for making sure no text is too long:


If the text looks like this:




You find yourself in a forest and
you don't know who you are or why you are here. You see a path heading off to
the west and a note on the ground next to you.




It will automatically wrap in a word processor. But in
python, we will want to put in manual line breaks so the text isn't too wide.




You find yourself in a forest and
you don't know who\nyou are or why you are here. You see a\n path heading off
to the west and a note on the\nground next to you.




To make a line break, you put the symbol: \n




In the python project, I would write:




print("You find yourself in a
forest and you don't know who\nyou are or why you are here. You see a\n path
heading off to the west and a note on the\nground next to you.")




Wherever there's a \n, it will skip down to the next line
and continue from there. Run the repl and see the output wrapping appropriately.




Example: https://replit.com/@garrettshorr/Interactive-Fiction-Per-6-2021-22#main.py
Created by Garrett Shorr: Friday, October 1 3:23 PM

Due:

Interactive Fiction Part 1 in Google Classroom

Interactive Fiction Part 1

Part 1:

1. All stories start with a plot, read through The Seven Basic Plots. Choose a plot for your story and write it it down. https://en.wikipedia.org/wiki/The_Seven_Basic_Plots

2. Choose a setting and write it down.  https://en.wikipedia.org/wiki/Setting_(narrative)

3. Choose the character your user will play as, you may also have other characters your user interacts with. Write down your characters.

4. Now the fun part! Using your plot, setting and characters write a short story. Here is a suggestion from author Rebecca Makkai.

Most stories we tell in real life are under 500 words. You're at a party and suddenly you have the floor. You throw out your little story like a grenade. “Once I knew a guy who...” And if you have any social graces at all, you probably keep it under 500 words. So my advice would be this: Just tell a story, quick while they're still listening.



Fill out the google form that's attached once you've done everything above in a google doc.
Created by Garrett Shorr: Thursday, September 23 8:37 PM

Due:

Interactive Fiction Part II in Google Classroom

Interactive Fiction Part II

Probably due end of class Monday. 


You will be making a flowchart of all the decision space of your interactive fiction story using https://drawings.google.com.

1. Think about all the places in your story where the main character could have made a choice. Decide what happens if they choose to do something that's not part of your original plot. The choice could cause the story to end there, merely delay the plot, or cause a whole new plot branch to develop.


2. Create a google drawing using flowchart symbols to map out the decision-space of your interactive fiction. See example attached (soon).
Remember that decisions are represented by diamonds and rectangles are for story exposition without choices.
Created by Garrett Shorr: Thursday, September 23 8:37 PM

Due:

Hobby Website Submission & Requirements in Google Classroom

Hobby Website Submission & Requirements

Requirements Checklist:
Have at least 3 individual pages + 1 bibliography/sources page
Have a navigation menu to link them together
      *Try clicking each link on the navigation menu FROM EACH PAGE to make sure you don't have any broken links and all destinations are correct
Include images (anything you find online that you didn't make yourself should be credited on the bibliography page which is a list of links)
Have CSS formatting site-wide on the style.css page
Have at least 1 custom font
Each page should have its own title (look in the meta tag for the title tag)
Each page should have a favicon


When complete, submit two things IN A GOOGLE DOC (please don't submit the links directly, it's kind of annoying on the teacher side of google classroom):
The link to the code (looks like this: https://replit.com/@garrettshorr/Favicons-Per-4-2021-22#index.html)
The link to your website (looks like this: https://Favicons-Per-4-2021-22.garrettshorr.repl.co)
Created by Garrett Shorr: Tuesday, August 31 4:25 PM

Due:

Syllabus in Google Classroom

Syllabus

With your folks at home, read and digitally sign the attached syllabus using the google form, then mark this assignment as complete.
Created by Garrett Shorr: Thursday, September 2 3:57 PM

Due:

Top 5 List Submission in Google Classroom

Top 5 List Submission

Requirements:

ordered/unordered list of 5 things
5 images
5 hyperlinks
change at least one font color somewhere
change at least one font somewhere
Submission Instructions:


Make a google doc with the following links (see the attached screenshot):
The link to your repl from the url bar at the top of the browser
The link to the standalone site from the preview section in the upper right corner of the repl
Created by Garrett Shorr: Monday, August 30 2:15 PM

Due:

First Day Survey in Google Classroom

First Day Survey

Please fill out the attached google form.
Created by Garrett Shorr: Monday, August 30 2:15 PM