Difference between revisions of "Computer Science"

From WLCS
(Wednesday - Thursday (2/2/11-2/3/11))
 
(911 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Wednesday - Friday  (2/2/11-2/4/11) ==
 
'''Warmup:'''
 
* The following code is supposed to wrap the player in Robot.
 
 
<syntaxhighlight lang="Python">
 
from gasp import *
 
begin_graphics(800, 600, title="Catch", background=color.YELLOW)
 
ball_x=-10
 
ball_y = 300
 
ball = Circle((ball_x, ball_y), 10, filled=True)
 
set_speed(120)
 
 
while True:
 
    if ball_x<=0:  # REPLACE WITH COMMENT ON WHAT THIS & THE NEXT LINE DO
 
        ball_x=800
 
    elif ball_x>=800:  # REPLACE WITH COMMENT ON WHAT THIS & THE NEXT LINE DO
 
        ball_x=0
 
    move_to(ball,( ball_x,ball_y))
 
    update_when('next_tick')
 
 
end_graphics()
 
</syntaxhighlight>
 
*Copy and paste this code, and save it as a new program, and test it
 
*Next, replace the comments
 
*Finally, write answers to the following questions, then discuss them with your partner:
 
# What behavior do you see?
 
# Why do you think this is happening (what's your ''hypothesis'')? 
 
# How could you test your hypothesis?
 
# How can you fix the code?
 
'''Agenda:'''
 
* Debrief warm up
 
* [[Debugging short exercise]]
 
* Continue work on  [[Robot game]]  : due  Thursday (2/10/11)
 
* Closure
 
Review Robot grading rubric. See [[Media:Robot_game.ppt]]
 
 
== Monday  (1/31/11) - Tuesday (2/1/11) ==
 
'''Warmup:'''
 
* Write a program that prompts the user for x and y coordinates between 0 and 200. Compare their input to a point at (75, 100). Tell the user if they are left or right of that point, and by how much. Likewise, tell them if they are below or above that point , and by how much.
 
 
'''Agenda:'''
 
* [[Media:Robot_game.ppt]]
 
** Complete Robot hand out
 
* Work on [[Robot game]], even if you haven't finished Pong yet.
 
 
 
== Monday - Tuesday (1/24/11 - 1/25/11) ==
 
'''Agenda:'''
 
* Continue working on [[Pong]] - aim to be finished this week. 
 
* Work on [[Robot game]].  Use the 8.8 version of [http://www.openbookproject.net/thinkcs/python/english2e/ch08.html Catch]!
 
* Once you have finished the core of the Robot assignment, complete the extension work.
 
 
== Thursday - Friday (1/13/11 - 1/21/11) ==
 
'''Agenda:'''
 
* Begin working on [[Pong]].  Use the 8.10 version of Catch!
 
* If you complete Pong, then go onto the [[Robot game]].  Use the 8.8 version of Catch!
 
* NVCC Dual Enrollment
 
 
== Tuesday - Wednesday (1/11/11 - 1/12/11) ==
 
'''Warmup:'''
 
* Without using the computer, what does the following code display?
 
 
<syntaxhighlight lang="Python">
 
from gasp import *
 
begin_graphics(width=800, height=600, title="Question 23")
 
 
x = 0
 
while x < 100:
 
  Circle( (400, 300), x )
 
  Line( (x, 0), (400, 300) )
 
  x = x + 10
 
 
update_when('key_pressed')
 
end_graphics()
 
</syntaxhighlight>
 
 
'''Agenda:'''
 
* 2nd Quarter Exam Make-ups
 
* Turn in any missing assignments
 
** [[Looping with GASP Exercises]]
 
** Following Game
 
** Begin working on [[Pong]].  Use the 8.10 version of Catch!
 
 
== Friday - Monday (1/7/11 - 1/10/11) ==
 
'''Agenda:'''
 
* 2nd Quarter Exam
 
 
== Wednesday - Thursday (1/5/11 - 1/6/11) ==
 
'''Agenda:'''
 
* 2nd Quarter Exam will be on...
 
** Period 1 - Friday (1/7/11)
 
** Period 2 - Monday (1/10/11)
 
* 2nd Quarter Exam Review
 
** [[Media:2ndQExamReview.txt]]
 
* input, output, variables, and math expressions
 
* functions
 
** function definitions
 
** function header
 
** function body
 
** return keyword
 
* if statements
 
** comparison operators
 
*** ==
 
*** !=
 
*** <
 
*** >
 
*** <=
 
*** >=
 
** Boolean operators
 
*** and
 
*** or
 
*** combining Boolean operators
 
* while loops
 
** sequences
 
** break keyword
 
* GASP
 
* Catch/Follow game
 
 
* Exam Format:
 
** Open and closed-book sections
 
** Multiple-choice
 
** Short-answer code
 
** Identify syntax errors
 
** Identify the purpose of code sections
 
 
* Begin working on [[Pong]]
 
 
== Monday - Tuesday (1/3/11 - 1/4/11) ==
 
'''Warmup:'''
 
* Write a while loop that prints your name 10 times
 
 
'''Agenda:'''
 
* Winter Break de'''brief'''
 
* 2nd Quarter Exams Reminder
 
* Following Game Review
 
* Begin working on [[Pong]]
 
 
 
== Archives ==
 
== Archives ==
* [[CS1 - 1011 - December]]
+
* CS1 - 1819 (Poland) - APS Canvas
* [[CS1 - 1011 - November]]
+
* CS1 - 1718 (Poland) - APS Canvas
* [[CS1 - 1011 - October]]
+
* CS1 - 1617 (Poland) - Google Classroom
* [[CS1 - 1011 - September]]
+
** [https://docs.google.com/a/apsva.us/document/d/1VnXYBgVIABKBGVYNuoQQ6E_6kUzcNah2TFlM5QgTOW0/edit?usp=sharing 2017 Syllabus]
 +
* [https://sites.google.com/a/apsva.us/ocopcompsci/ CS1 - 1516 (MacLeod)]
 +
* [[CS1 - 1415]]
 +
* [[CS1 - 1314]]
 +
* [[CS1 - 1213]]
 +
* [[CS1 - 1112]]
 +
* [[CS1 - 1011]]
 +
* [[CS1 - 0910]]
 +
* [[CS1 - 0809]]
 +
* [http://www.paulbui.net/wl0708/cs1 CS1 - 0708]
 +
* [http://www.paulbui.net/wl0607/cs1/schedule.html CS1 - 0607]

Latest revision as of 11:04, 13 November 2018

Archives