3 - Programming 19-20-19/20 - T3P3 Assignments

Upcoming Assignments RSS Feed

No upcoming assignments.

Past Assignments

Due:

Wk11 | Week of 5/4/20 | CodeHS in Google Classroom

Wk11 | Week of 5/4/20 | CodeHS

- CodeHS: complete to Lesson: 5.5.1 Looping Quiz - 100 pts.
- Complete missing assignments

Due:

Chose the correct selection (A, B, C, D) for the following code. in Google Classroom

Chose the correct selection (A, B, C, D) for the following code.

Selection A.
# Program checks if the number is positive or negative
# And displays an appropriate message

num = int(input("Choose a from -5 to 5: "))

if num >= 0:
else:
print("Positive or Zero")
print("Negative number")
=====================================================
Selection B.
# Program checks if the number is positive or negative
# And displays an appropriate message

num = int(input("Choose a from -5 to 5: "))

if num >= 0
print("Positive or Zero")
else
print("Negative number")
=====================================================
Selection C.
if num >= 0:
print("Positive or Zero")
else:
print("Negative number")

num = int(input("Choose a from -5 to 5: "))

# Program checks if the number is positive or negative
# And displays an appropriate message
=====================================================
Selection D.
# Program checks if the number is positive or negative
# And displays an appropriate message

num = int(input("Choose a from -5 to 5: "))

if num >= 0:
print("Positive or Zero")
else:
print("Negative number")

Due:

Final | Rock Paper Scissors = CodeHS in Google Classroom

Final | Rock Paper Scissors = CodeHS

On Wednesday, May 6th (this is the only day you will have access to the test):

Go to CodeHS.com > 14. FINAL | RPS > FINAL | RPS > RPS | Rock, Paper, Scissors

You can follow the instructions for a completed game of Rock, Paper, Scissors in CodeHS for a guaranteed 85 points. For extra credit, you can complete several steps to earn 90 - 95 - 100 points.

Due:

Wk10 | Week of 4/27/20 in Google Classroom

Wk10 | Week of 4/27/20

- CodeHS: complete to Lesson: 4.4.6 Presidential Eligibility- Extended - 100 pts.
- Complete missing assignments

Due:

When we write code, we want it to be clean and efficient. How can we clean up the following code? in Google Classroom

When we write code, we want it to be clean and efficient. How can we clean up the following code?

Understand that GC won't allow two lines per answer so image there are two lines.

player = input (‘Enter your name: ')
print((player),(’ vs ‘),(’Computer = ‘))

Due:

Wk9 - Week of April 20 in Google Classroom

Wk9 - Week of April 20

- CodeHS: complete to Lesson: 4.3.10 Transaction - 100 pts.
- Complete missing assignments

Due:

Which is the correct way to create a variable in the first instance in Python? in Google Classroom

Which is the correct way to create a variable in the first instance in Python?

Which is the correct way to create a variable for the first instance in Python?

Select the correct answer.

Due:

Wk8 - Week of April 13th - CodeHS Progress in Google Classroom

Wk8 - Week of April 13th - CodeHS Progress

- CodeHS: complete to Lesson: 4.2.7 Conditional Badge - 100 pts.
- Wk8 | if/else Fix Errors - 100 pts.
- Add a copy of your code for the if/else fix errors using Google Docs.

Due:

Wk8 - Week of April 13th - Fix Errors in Google Classroom

Wk8 - Week of April 13th - Fix Errors

- CodeHS: complete to Lesson: 4.2.7 Conditional Badge - 100 pts.
- Wk8 | if/else Fix Errors - 100 pts.
- Add a copy of your code for the if/else fix errors using Google Docs.

Due:

Wk7 | Week of April 6th - CodeHS Progress in Google Classroom

Wk7 | Week of April 6th - CodeHS Progress

- CodeHS: complete to Lesson: 3.7 Basic Python and Console Interaction Quiz - 100 pts.
- Wk7 | Fix Errors - 100 pts.

Due:

Wk7 | Week of April 6th - Fix Errors in Google Classroom

Wk7 | Week of April 6th - Fix Errors

- CodeHS: complete to Lesson: 3.7 Basic Python and Console Interaction Quiz - 100 pts.
- Wk7 | Fix Errors - 100 pts.

Due:

C19-2 | Mad Libs Test in Google Classroom

C19-2 | Mad Libs Test

Mad-Libs
Create a “Mad-libs” using Python. This assignment is based on the concepts introduced in the Basic Python and Console Interaction module of codehs.com. Create the program in the sandbox.

Ask the user to input his or her name.

Then, using 5 additional inputs, ask the user to supply 5 words.

Save each word in a separate variable.

Then using the print command, print to the screen the information stored in variables to display a “Mad-libs” type of story, i.e. create a few sentences of information in story format. Remember to concatenate your strings (text) and variables using the “+” sign.

**Make sure to comment every line & copy the code and turn it in here. This will be your Midterm Test***

Due:

C19 in Google Classroom

C19

How can Python coding be used to determine the spread and rate of spread of the Covid-19 virus? What kind of application would you create to keep your friends and family safe?

Due:

C-19 Welcome to ONLINE in Google Classroom

C-19 Welcome to ONLINE

CodeHS to 2.2

Due:

A poor farmer went to the market to sell some peas and lentils. However, as he had only one sack and didn't want to mix peas and lentils, he poured in the peas first, tied the sack in the middle, and then filled the top portion of the sack with the lentils. At the market a rich innkeeper happened by with his own sack. He wanted to buy the peas, but he did not want the lentils.
Pouring the seed anywhere else but the sacks is considered soiling. Trading sacks is not allowed. The farmer can't cut a hole in his sack.
How would you transfer the peas to the innkeeper's sack, which he wants to keep, without soiling the produce? in Google Classroom

A poor farmer went to the market to sell some peas and lentils. However, as he had only one sack and didn't want to mix peas and lentils, he poured in the peas first, tied the sack in the middle, and then filled the top portion of the sack with the lentils. At the market a rich innkeeper happened by with his own sack. He wanted to buy the peas, but he did not want the lentils. Pouring the seed anywhere else but the sacks is considered soiling. Trading sacks is not allowed. The farmer can't cut a hole in his sack. How would you transfer the peas to the innkeeper's sack, which he wants to keep, without soiling the produce?

Due:

In a year there are 12 months. 7 months have 31 days. How many months have 28 days? in Google Classroom

In a year there are 12 months. 7 months have 31 days. How many months have 28 days?

Due:

A plane crashes on the border of the U.S. and Canada. Where do they bury the survivors? in Google Classroom

A plane crashes on the border of the U.S. and Canada. Where do they bury the survivors?

Due:

Wk4 | D3 | Operators Review Questions in Google Classroom

Wk4 | D3 | Operators Review Questions

Due:

Imagine you are in a dark room. How do you get out? in Google Classroom

Imagine you are in a dark room. How do you get out?

Due:

Wk4 | D2 | Basic Operators in Google Classroom

Wk4 | D2 | Basic Operators

Bitwise, Logical, Membership, Identity, Precedence

Due:

In a regional tennis tournament, the eventual champion will be determined from 128 competitors by single elimination. When one of the competitors loses a match, he is eliminated from further play.

How many matches are played in order to arrive at the eventual champion? in Google Classroom

In a regional tennis tournament, the eventual champion will be determined from 128 competitors by single elimination. When one of the competitors loses a match, he is eliminated from further play. How many matches are played in order to arrive at the eventual champion?

Due:

Wk4 | D1 | Operators - Assignment in Google Classroom

Wk4 | D1 | Operators - Assignment

=
+= Add AND
-= Subtract AND
*= Multiply AND
/= Divide AND
%= Modulus AND
**= Exponent AND
//= Floor Division

Due:

What kind of nut has no shell. in Google Classroom

What kind of nut has no shell.

Due:

Wk3 | D3 | Operators - Comparison/Relational in Google Classroom

Wk3 | D3 | Operators - Comparison/Relational

== Equal
!= Not equal
<> Not equal
> Greater than
< Less than
>= Greater than or equal
<= Less than or equal


Create three variables that equal the numbers 21, 10, and 0.

Due:

Wk3 | D3 | Variables Review Questions in Google Classroom

Wk3 | D3 | Variables Review Questions

Due:

Two fathers and two sons went fishing. Each of them caught a fish and put it in the bucket. When they went home there were only three fish in the bucket. How is this possible? in Google Classroom

Two fathers and two sons went fishing. Each of them caught a fish and put it in the bucket. When they went home there were only three fish in the bucket. How is this possible?

Due:

Wk3 | D3 | Operators - Arithmetic in Google Classroom

Wk3 | D3 | Operators - Arithmetic

+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus
** Exponent
//

Due:

Wk3 | D2 | Algorithm Review Questions in Google Classroom

Wk3 | D2 | Algorithm Review Questions

Due:

Why is it better for manhole covers to be round rather than square? in Google Classroom

Why is it better for manhole covers to be round rather than square?

Due:

Wk3 | D2 | Variables, & Constants in Google Classroom

Wk3 | D2 | Variables, & Constants

Due:

What occurs once in every minute, twice in every moment, yet never in a thousand years? in Google Classroom

What occurs once in every minute, twice in every moment, yet never in a thousand years?

Due:

What number comes next? 

3, 4, 6, 9, 13, 18, 24, 31... in Google Classroom

What number comes next? 3, 4, 6, 9, 13, 18, 24, 31...

Due:

Wk3 | D1 | Algorithms in Google Classroom

Wk3 | D1 | Algorithms

Due:

Game Critique in Google Classroom

Game Critique

Due:

Game in Google Classroom

Game

Create 2 games using the instructions attached - make them your own. The more creativity and parts used a whole for your individual game will be worth more points.

Due:

Function: What is a function in Python code? in Google Classroom

Function: What is a function in Python code?

Due:

Variable: Explain what a variable is in coding. in Google Classroom

Variable: Explain what a variable is in coding.

Due:

You are driving a bus. At the first stop, 2 women get on. The second stop, 3 men get on and 1 woman gets off. Third stop, 3 kids and their mom get on, and a man gets off. The bus is grey, and it is raining outside. What color is the bus driver’s hair? in Google Classroom

You are driving a bus. At the first stop, 2 women get on. The second stop, 3 men get on and 1 woman gets off. Third stop, 3 kids and their mom get on, and a man gets off. The bus is grey, and it is raining outside. What color is the bus driver’s hair?

Due:

Wk2 | D3 | Logic in Google Classroom

Wk2 | D3 | Logic

What words are pronounced differently by merely capitalizing the first letter? Name at least 3 (there could be more).

Due:

Loops in Google Classroom

Loops

Research and explain what a loop in coding is.

Due:

Conditionals in Google Classroom

Conditionals

Research and explain what a condition is in coding.

Due:

Loops & Conditional in Google Classroom

Loops & Conditional

Follow instructions and load mBlock to the assignment when complete.

Due:

Event  in Google Classroom

Event

Choose one of the following events: "jump" or "glide". Complete the exercise in mBlock. Save the exercise as an mBlock file named: Last name_First name_event. Turn it in along with a document describing each of your blocks.

Due:

Can a man legally marry his widow's sister in the state of California? in Google Classroom

Can a man legally marry his widow's sister in the state of California?

Due:

Wk2 | D2 | Logic in Google Classroom

Wk2 | D2 | Logic

I can travel from there to here by disappearing, and here to there by reappearing.

What am I?

Due:

1 Container of Antistatic Wipes in Google Classroom

1 Container of Antistatic Wipes

Turn in Classroom Supplies

Due:

Events in Google Classroom

Events

Explain an event and give mBlock examples.

Due:

Jimmy’s mother had three children. The first was called April, the second was called May. What was the name of the third? in Google Classroom

Jimmy’s mother had three children. The first was called April, the second was called May. What was the name of the third?

Due:

Wk2 | D1 | Logic in Google Classroom

Wk2 | D1 | Logic

What number comes next?

3, 4, 6, 9, 13, 18, 24, 31 . . .

Due:

Little Brother |  Chapter 1 in Google Classroom

Little Brother | Chapter 1

Due:

Sequencing in Google Classroom

Sequencing

Explain a sequence and give mBlock examples.
Give the sequence of making a peanut butter and jelly sandwich.

Due:

"Forwards I am heavy, I sure weigh a lot. But when I'm backwards, I certainly am not.

What am I?" in Google Classroom

"Forwards I am heavy, I sure weigh a lot. But when I'm backwards, I certainly am not. What am I?"

Due:

Wk1 | D5 | Logic in Google Classroom

Wk1 | D5 | Logic

One is to three as three is to five and five is to four and four is the magic number.

What is the pattern?

Due:

You are on an island in the middle of a lake. The lake is in a remote part of the country and there has never been a bridge connecting the island to the mainland. Every day a tractor and wagon gives hay rides around the island. Puzzled as to how the tractor had gotten onto the island, you ask around and find out that the tractor was not transported to the island by boat or by air. Nor was it built on the island. Explain how the tractor got there? in Google Classroom

You are on an island in the middle of a lake. The lake is in a remote part of the country and there has never been a bridge connecting the island to the mainland. Every day a tractor and wagon gives hay rides around the island. Puzzled as to how the tractor had gotten onto the island, you ask around and find out that the tractor was not transported to the island by boat or by air. Nor was it built on the island. Explain how the tractor got there?

Due:

Wk1 | D4 | Logic in Google Classroom

Wk1 | D4 | Logic

What single word can be added to all of the following words to create legitimate new
compound words?

jail, cage, brain, call, song

Due:

Wk1 | D3 | Logic in Google Classroom

Wk1 | D3 | Logic

What number comes next?

1, 1, 2, 3, 5, 8, 13, 21, 34, 55 . . .

Due:

Your sock drawer contains 24 white socks and 30 black socks. The lights in your room are off, so you cannot see the color of the socks. How many socks must you grab to ensure to have at least one matching pair? in Google Classroom

Your sock drawer contains 24 white socks and 30 black socks. The lights in your room are off, so you cannot see the color of the socks. How many socks must you grab to ensure to have at least one matching pair?

Due:

Class Syllabus in Google Classroom

Class Syllabus

Print the permission slip on the Course page, have a parent sign, and return by Thursday.

Due:

Wk1 | D2 | Intro Program in Google Classroom

Wk1 | D2 | Intro Program

Type up an Google Doc and use pseudo code on how it works.

Due:

WK1 | D2 | Logic in Google Classroom

WK1 | D2 | Logic

Due:

Wk1 | D2 | Tri 1 Questions - Syllabus in Google Classroom

Wk1 | D2 | Tri 1 Questions - Syllabus