Skip to content

Commit 2fe489b

Browse files
committed
Finished all junit tests in Units 1-4! and added custom turtle challenge in 2.2
1 parent 836c61c commit 2fe489b

31 files changed

Lines changed: 3496 additions & 280 deletions

‎CodeTestHelper.java‎

Lines changed: 177 additions & 70 deletions
Large diffs are not rendered by default.

‎_sources/Unit1-Getting-Started/preface.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Preface
1010

1111
CSAwesome is a free AP CS A curriculum that was created in 2019 by adapting the AP CS A Java Review e-book written by Dr. Barbara Ericson, while she was a senior research scientist at Georgia Tech, currently Assistant Professor of Information at University of Michigan. She published this book using a modified BSD license to encourage people to use it, change it, and modify it for their own purposes.
1212

13-
CSAwesome is an official College Board CS A curriculum and PD provider as of 2020. Dr. Beryl Hoffman, Associate Professor of Computer Science at Elms College, MA, created and adapted the CSAwesome curriculum to follow the College Board CS A 2019 guidelines with the support of a 2019 Google CS-ER grant and the Mobile CSP project (https://www.mobile-csp.org). Special thanks to Barb Ericson, Beth Simon, John Figliulo, Pauline Lake, Jennifer Rosato, Kim Evelti, Becky Stacey, Art Lopez, and Kyle Gillette for feedback, edits, and ideas. In the summer 2020, we are very grateful to CSA teacher extraordinaire Kate McDonnell who created JUnit test helper code for our Java server, and many volunteers who are helping to add junit tests to each active code to make them auto-gradable. Our hopes are that CSP teachers and students can use this interactive book to help transition from AP CSP to AP CS A.
13+
CSAwesome is an official College Board CS A curriculum and PD provider as of 2020. Dr. Beryl Hoffman, Associate Professor of Computer Science at Elms College, MA, created and adapted the CSAwesome curriculum to follow the College Board CS A 2019 guidelines with the support of a 2019 Google CS-ER grant and the Mobile CSP project (https://www.mobile-csp.org). Special thanks to Barb Ericson, Beth Simon, John Figliulo, Pauline Lake, Jennifer Rosato, Kim Evelti, Becky Stacey, Art Lopez, and Kyle Gillette for feedback, edits, and ideas. In the summer 2020, we are very grateful to CSA teacher extraordinaire Kate McDonnell who created JUnit test code suite for our Java server, and many volunteers including Pat Clark, Emma Brown, Emma Pinnell, who are helping to add junit tests to each active code to make them auto-gradable. Our hopes are that CSP teachers and students can use this interactive book to help transition from AP CSP to AP CS A.
1414

1515
.. |form| raw:: html
1616

‎_sources/Unit1-Getting-Started/topic-1-3-variables.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Data Types
6666

6767
There are two types of variables in Java: **primitive variables** that hold primitive types and **object variables** that hold a reference to an object of a class. A reference is a way to find the object (like a UPS tracking number helps you find your package). The primitive types on the Advanced Placement Computer Science A exam are:
6868

69-
- int - which store integers (whole numbers like 3, -76, 20393)
69+
- int - which store integers (numbers like 3, -76, 20393)
7070

7171
- double - which store floating point numbers (decimal numbers like 6.3 -0.9, and 60293.93032)
7272

@@ -394,7 +394,7 @@ The equal sign here ``=`` doesn't mean the same as it does in a mathematical equ
394394
What type should you use for a number of tickets?
395395

396396
- :^\s*int$: Correct. You can't buy half a ticket so this will be an integer.
397-
:.*: Use a type that representes whole numbers like 1, 2, 3, etc
397+
:.*: Use a type that represents whole numbers like 1, 2, 3, etc.
398398

399399

400400
**Mixed up Code Problems**
@@ -612,7 +612,7 @@ Summary
612612
613613
614614
- **Data types** can be categorized as either primitive type (like int) or reference type (like String).
615-
- The three primitive data types used in this course are **int** (whole numbers), **double** (decimal numbers), and **boolean** (true or false).
615+
- The three primitive data types used in this course are **int** (integer numbers), **double** (decimal numbers), and **boolean** (true or false).
616616
- Each variable has associated memory that is used to hold its value.
617617
- The memory associated with a variable of a primitive type holds an actual primitive value.
618618
- When a variable is declared final, its value cannot be changed once it is initialized.

‎_sources/Unit1-Getting-Started/topic-1-6-casting.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ For example, int values are stored in 4 bytes of memory. There is an Integer.MAX
128128
:language: java
129129
:autograde: unittest
130130

131-
Try the code below to see two integer overflow errors for a too large positive and negative number. An int cannot hold that high a value! Fix the integer overflow error by deleting the last 0 in the numbers.
131+
Try the code below to see two integer overflow errors for a positive and negative number. An int cannot hold that many digits! Fix the integer overflow error by deleting the last 0 in the numbers.
132132
~~~~
133133
public class TestOverflow
134134
{

0 commit comments

Comments
 (0)