AP Computer Science Principles
*********
*********

You may need to sign into College Board AP for additional information.
Click here to sign on to AP College Board.

*********
*********

Period 2 Teams 


Period 6 Teams 


*********
*********
 
  
Cyber Range Passwords 
Sign on ids for Period 2
Click here and get your id and password.

Cyber Range Passwords 
Sign on ids for Period 6
Click here and get your id and password.

Click here for your cyber range.
https://apps.cyber.org/login


**********
**********
Due Date: February 7, 2024

You will be building programs:
Drop off the following file into google classroom.
Your file name will be PX_States_lastname.py
Your file name will be PX_States_lastname.mp4 (Video of the program running)
Your file name will be PX_States_lastname.png (Screen print of the program inside the IDE or jdoodle)

Click here to see this program running.
or
Click here to see this program running. (YouTube).

file:///C/Users/JoePhotos/Downloads/CapitalStates.txt[1/31/2024 10:42:23 PM] comment remove

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

MIN = 0
MAX = 49
import random
def main():
stateDict = {'Alabama': 'Montgomery',
'Alaska': 'Juneau',
'Arizona': 'Phoenix',
'Arkansas': 'Little Rock',
'California': 'Sacramento',
'Colorado': 'Denver',
'Connecticut': 'Hartford',
'Delaware': 'Dover',
'Florida': 'Tallahassee',
'Georgia': 'Atlanta',
'Hawaii': 'Honolulu',
'Idaho': 'Boise',
'Illinois': 'Springfield',
'Indiana': 'Indianapolis',
'Iowa': 'Des Moines',
'Kansas': 'Topeka',
'Kentucky': 'Frankfort',
'Louisiana': 'Baton Rouge',
'Maine': 'Augusta',
'Maryland': 'Annapolis',
'Massachusetts': 'Boston',
'Michigan': 'Lansing',
'Minnesota': 'Saint Paul',
'Mississippi': 'Jackson',
'Missouri': 'Jefferson City',
'Montana': 'Helena',
'Nebraska': 'Lincoln',
'Nevada': 'Carson City',
'New Hampshire': 'Concord',
'New Jersey': 'Trenton',
'New Mexico': 'Santa Fe',
'New York': 'Albany',
'North Carolina': 'Raleigh',
'North Dakota': 'Bismarck',
'Ohio': 'Columbus',
'Oklahoma': 'Oklahoma City',
'Oregon': 'Salem',
'Pennsylvania': 'Harrisburg',
'Rhode Island': 'Providence',
'South Carolina': 'Columbia',
'South Dakota': 'Pierre',
'Tennessee': 'Nashville',
'Texas': 'Austin',
'Utah': 'Salt Lake City',
'Vermont': 'Montpelier',
'Virginia': 'Richmond',
'Washington': 'Olympia',
'West Virginia': 'Charleston',
'Wisconsin': 'Madison',
'Wyoming': 'Cheyenne'}
statesList = list(stateDict)
correct = 0
incorrect = 0
again = 'y'
while (again == 'y'):
num = random.randint(MIN,MAX)
state = statesList[num]
print('\n' + state)
ans = input("\nEnter the capital of this state: ")
if (ans == stateDict[state]):
correct += 1
print("Correct")
again = input("Type y to play again, anything else to stop: ")
else:
incorrect += 1
print("Incorrect")
again = input("Type y to play again, anything else to stop: ")
print("\nYou have",correct,"correct answers")
print("\nYou have",incorrect,"incorrect answers")
main()

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

Click below on the 3 for hints on the indentations.
(Gaps in code may exist)
Part1
Part2
Part3

**********
**********
Due Date: February 9, 2024
Drop off the following file into google classroom.
Your file name will be PX_Government_lastname.py (Use the google document)
Your file name will be PX_Government_lastname.mp4 (Video of the program running in the Virtual Kali Linux)
Your file name will be PX_Government_lastname.png (Screen print of the program inside the Virtual Kali Linux)
Soure of my information:
https://en.wikipedia.org/wiki/List_of_countries_by_system_of_government
Modify this program to identify what type constitutional form they have.
ie:
Provisional
Republic
Constitutional Monarchy
Absolute monarchy
Rename the variables to be more appropriate

Period 2
Click here to find your countries.

Period 6
Click here to find your countries.

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

MIN = 0
MAX = 49
import random
def main():
stateDict = {'Afghanistan': 'Provisional',
'xxx': 'xxx',
'xxxxx': 'xxxxx',
'xxxxxxx': 'xxxxxx'}

statesList = list(stateDict)
correct = 0
incorrect = 0
again = 'y'
while (again == 'y'):
num = random.randint(MIN,MAX)
state = statesList[num]
print('\n' + state)
ans = input("\nEnter the capital of this state: ")
if (ans == stateDict[state]):
correct += 1
print("Correct")
again = input("Type y to play again, anything else to stop: ")
else:
incorrect += 1
print("Incorrect")
again = input("Type y to play again, anything else to stop: ")
print("\nYou have",correct,"correct answers")
print("\nYou have",incorrect,"incorrect answers")
main()

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

**********
**********
Due Date: January 29, 2024

AP Principles 3.1, 3.2, 3.3, 3.4, 3.5 MCQ

Click here to review your questions.

**********
**********
Due Date: January 30, 2024
Big Idea 3
ALGORITHMS AND PROGRAMMING
Watch these video below:
You need to watch the entire video from start to finish.

3.6Conditionals
3.6: Daily Video 1 In this video, we will create algorithms using selection to choose from possible outcomes. We can select which statements to execute based on the outcome of a condition.

3.6: Daily Video 2 In this video, we will implement conditional statements, or “if-statements,” to choose between different blocks of code based on the outcome of a Boolean expression.

3.6: Daily Video 3 In this video, we will determine the outcome of program code that uses conditional statements. We will explore how “if” and “if-else” statements can be used to choose which statements to execute.
-----------------------------------------------------------------

3.7NestedConditionals

3.7: Daily Video 1 In this video, we will determine the outcome of program code that uses nested conditional statements. When conditionals are nested, we select statements based on the outcome of multiple conditions.

3.7: Daily Video 2 In this video, we will create algorithms that use nested conditional statements. When nesting conditional statements, we must adjust the logic and flow to meet the needs of our algorithm.
-----------------------------------------------------------------

3.8Iteration	

3.8: Daily Video 1 In this video, we will represent algorithms using iteration with a flow chart or natural language. We can iterate (or repeat) a part of our algorithm as many times as needed to accomplish our goal.

3.8: Daily Video 2 In this video, we will determine the outcome of program code that uses iteration. We will determine how many times to iterate based on the pseudocode provided.

3.8: Daily Video 3 In this video, we will create algorithms that use iteration using pseudocode. Small adjustments in the pseudocode can have a major impact on the outcome of the iteration.

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

3.9DevelopingAlgorithms

3.9: Daily Video 1 In this video, we will determine the outcome of similar algorithms. We will compare the similar algorithms to better understand their outcomes.

3.9: Daily Video 2 In this video, we will represent algorithms using a flowchart or natural language. Whether algorithms contain selection or iteration, they must be sequenced properly.

3.9: Daily Video 3 In this video, we will create algorithms by modifying existing correct algorithms. We will explore advantages and concerns that arise when modifying existing correct algorithms.
-----------------------------------------------------------------

3.10 Lists

3.10: Daily Video 1 In this video, we will use the pseudocode for lists on the exam reference sheet to implement an algorithm.

3.10: Daily Video 2 In this video, we will use the pseudocode for lists on the exam reference sheet to determine lines of code necessary to complete the algorithm.

3.10: Daily Video 3 In this video, we will use the pseudocode for lists on the exam reference sheet to interpret code to determine the output of given code.
-----------------------------------------------------------------

**********
**********
Due Date: January 29, 2024

Big Idea 3
ALGORITHMS AND PROGRAMMING
3.6 Conditionals
3.7 Nested Conditionals
3.8 Iteration
3.9 Developing Algorithms
3.10 Lists

Purpose: Gain an understanding of "AP Principles 3.6 3.7 3.8 3.9 3.10 MCQ"
	-Build your Grading sheet.
	-Follow the instruction found on the Grading sheet.
	-Once build, e-mail only the LINK to Mr. Cusack.
	-jcusack1@kleinisd.net
				
Lastname - AP Principles 3.6 3.7 3.8 3.9 3.10 MCQ - Grading Sheet

Instructions: 
-Duplicate the google document below.
-Insert your last name in front of "AP Principles AP Principles 3.6 3.7 3.8 3.9 3.10 MCQ - Grading Sheet" - Grade Sheet
Insert a standard heading.

-Review Sample:
-Click on the site tab at the top.
-Select "Standard Heading"
Configure the google document below.
-duplicate the google document
-You will find signature boxes.
-Pick the table that is associated with your team.
-Delete all other tables.
-Email me the link for this google document.

I will print it.

Click here to access the google document.

**********
**********
Due Date: February 1, 2024

AP Principles 3.6 3.7 3.8 3.9 3.10 MCQ

Click here to review your questions.