3 - Programming 19-20-19/20 - T3P3 Assignments
- Instructors
- Term
- 2019-20 School Year
- Department
- Technology
- Description
-
Upcoming Assignments
No upcoming assignments.
Past Assignments
Due:
- CodeHS: complete to Lesson: 5.5.1 Looping Quiz - 100 pts.
- Complete missing assignments
- Complete missing assignments
Due:
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")
# 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:
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.
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:
- CodeHS: complete to Lesson: 4.4.6 Presidential Eligibility- Extended - 100 pts.
- Complete missing assignments
- Complete missing assignments
Due:
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 = ‘))
player = input (‘Enter your name: ')
print((player),(’ vs ‘),(’Computer = ‘))
Due:
- CodeHS: complete to Lesson: 4.3.10 Transaction - 100 pts.
- Complete missing assignments
- Complete missing assignments
Due:
Which is the correct way to create a variable for the first instance in Python?
Select the correct answer.
Select the correct answer.
Due:
- 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.
- Wk8 | if/else Fix Errors - 100 pts.
- Add a copy of your code for the if/else fix errors using Google Docs.
Due:
- 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.
- Wk8 | if/else Fix Errors - 100 pts.
- Add a copy of your code for the if/else fix errors using Google Docs.
Due:
- CodeHS: complete to Lesson: 3.7 Basic Python and Console Interaction Quiz - 100 pts.
- Wk7 | Fix Errors - 100 pts.
- Wk7 | Fix Errors - 100 pts.
Due:
- CodeHS: complete to Lesson: 3.7 Basic Python and Console Interaction Quiz - 100 pts.
- Wk7 | Fix Errors - 100 pts.
- Wk7 | Fix Errors - 100 pts.
Due:
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***
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:
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:
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 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:
=
+= Add AND
-= Subtract AND
*= Multiply AND
/= Divide AND
%= Modulus AND
**= Exponent AND
//= Floor Division
+= Add AND
-= Subtract AND
*= Multiply AND
/= Divide AND
%= Modulus AND
**= Exponent AND
//= Floor Division
Due:
== 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.
!= 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:
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:
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus
** Exponent
//
- Subtraction
* Multiplication
/ Division
% Modulus
** Exponent
//
Due:
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:
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:
What words are pronounced differently by merely capitalizing the first letter? Name at least 3 (there could be more).
Due:
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:
I can travel from there to here by disappearing, and here to there by reappearing.
What am I?
What am I?
Due:
Jimmy’s mother had three children. The first was called April, the second was called May. What was the name of the third?
Due:
Explain a sequence and give mBlock examples.
Give the sequence of making a peanut butter and jelly sandwich.
Give the sequence of making a peanut butter and jelly sandwich.
Due:
Due:
One is to three as three is to five and five is to four and four is the magic number.
What is the pattern?
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?
Due:
What single word can be added to all of the following words to create legitimate new
compound words?
jail, cage, brain, call, song
compound words?
jail, cage, brain, call, song
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?
Due:
Print the permission slip on the Course page, have a parent sign, and return by Thursday.