Become an expert on your topic. Explain
- any unethical acts
- what laws, if any , were broken
- what government agency was involved
- what consequences did that party (person or business) suffer
Format: Powerpoint 5-7 slides
Vokswagon Emissions Scandal
Valeant drug scandal
Zenefits Insurance Scandal
Taken from https://teals-introcs.gitbooks.io/2nd-semester-introduction-to-computer-science-pri/units/1_unit/06_lesson/project.html
Overview: Using Python, students will use variables, input, and printing to create a Mad Lib. You will also practice designing a project by planning out your Mad Lib before implementing it. Part of the project is to use your creativity to design your own unique story.
The program will print out the title of the Mad Libs story, as well as a short explanation of game play
A Day in NYC: a Mad Lib.
Welcome! You are about to play a fantastic word game.
I will ask you for nouns, verbs, adjectives, proper nouns and adverbs.
Using those words I will create an unexpected story for you!
The program should then prompt the user to enter in nouns, verbs, adjectives, proper nouns, and adverbs
- Create your story
- Select the missing words
- Determine each words part of speech
- Create introduction
- Create questions
- Divide story into print statements
- 10 different words inputted
- Variable names should correspond to the part of speech requested and part of the story they belong to (e.g.
- You may only use 3 print statements to tell your story
|Program greets user and explains rules
|Program accurately requests 10 words (1 for word, 1 for correct request)
|Program prints full Mad Lib
|Program exhibits creativity
|Program utilizes variable names to convey meaning
|Correct order of inputted words
|Only 3 print statements
Here’s how you get to “==” in Alice. It’s a world function. (and it must be put into an
Alice Supports many types of Math Operations.
For instance, let’s say that we have the variable
someNumber and it has a value of 2
What if we want to multiply 2 by 0.5 ?
- click on the down arrow next to “2” and select “math”
2) select “2*” which means “2 times ”
3) Select “Other” for the second number “b”
4) The calculator appears so you can choose
5) Select “5”
6) Viola: You know have a math expression that represents 2 * 5
8) Now let’s make a variable called “divisor” and then divide this expression by that
9) Select the down arrow
10) select as shown:
11) Viola :
The world object has many, many useful functions including a way to ask the user for information—say a number, a name or something.
- Click on world
- click on functions
- scroll down ot the
ask user functions (See Diagram 1 ) and read below for more
Animated Gif showing the whole process of asking user for a number and then saying that number (using what as a String)
Look at the code below:
Can you see why this student lost credit :
The student did a good job using a function and storing a value in the variable, walkDistance; however, they never then used that variable .
Example 1 :
The code below is almost correct , but the variable
walkingDistance is never used by the move method !
Code Diagram 1 :
Code Diagram 2 :
Unit 4 . Parameters and Objects [advanced]
- Complete Packets:
- #18 Writing a Class Level Method
- #20 Saving an Object to a New Class
- #21 Stepwise Refinement (Follow the instructions carefully on this one). If your method does not seem to work, it’s probably because you switched a left leg with a right leg
- #22 Passing Arguments
- Assignments here
Unit 4 . Loops
- Complete Packets:
- 15 b (The Loop Instruction)
- 16 (The While Instruction)
- Assignments here
Unit 3 Datatypes and if/else
- Complete packets #9-10
- #9 (variables)
- #10 functions vs methods
- Drag Racing
- Spaceship Repair
- Apollo 15
- End of Unit Assign
Assignments and Quiz topics
- Complete packets #3- 8 by Thursday Wednesday 27th
- #1 (Example tutorial)
- #2 (skipped)
- #3 Coach–opacity, color
- #4 Camera and manipulating objects (turn,tumble etc)
- #5a Alice code (how to add instructions)
- #5b Alice Primitive Methods
- #6 ( camelCase, — read only, no tutorials)
- #7 ( primitive methods from object tree)
- #8 (do together )
- Project #1
- at least 10 instructions
- modify a ‘subpart’
- 1 do-together statement
- at least 3 different objects
- Worth 7 points.
- To get a 7/7 you must achieve the ‘wow factor’–ie go above and beyond to create a superior final project
- you must save your file in the format of
- Eventual Quiz 1
- binary number systems (see dropbox notes for review)
- converting from various bases to base 10(see Google drive notes for review)
- comment vs instruction in alice
Phaser.io resources and links
Unit 4 Bootstrap 4
Unit 3 Jquery
Mr M Assignment (reproduce the screenshots in the powerpoint)
- HTML & Css
- Server Stuff
Centigrade to Fahrenheit Modification: Modify the Fahrenheit to centigrade project as follows.
- Use a while loop to do as many temperature conversations as the user wants
- Ask the user for yes no (help)
Miles Per Gallon Modification: Modify the miles per gallon project in the same way as the prior exercise.
- At the start, ask the user how many mpg conversions, they want to convert.
- Then use a loop to do that many conversions
Assignment 4.3) Open assignment. Your open project must have each of the following criteria
- a variable
- store the return value of a function into that variable
- a loop of some kind
4.4 Rock Paper Scissors