Skip to content

Commit 673be52

Browse files
committed
Merge branch 'master' of https://github.com/bhoffman0/CSAwesome
2 parents 0b646c6 + 6495ed6 commit 673be52

File tree

8 files changed

+9
-43
lines changed

8 files changed

+9
-43
lines changed

_sources/Unit4-Iteration/ConsumerReviewLab.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Consumer Review Lab
77

88
.. |student guide| raw:: html
99

10-
<a href="https://apcentral.collegeboard.org/pdf/ap-computer-science-a-consumer-review-lab-student-guide.pdf" target="_blank" style="text-decoration:underline">student guide</a>
10+
<a href="https://drive.google.com/file/d/1IXwiFHJs1UGFAYILrLigQ92sAjPxv05u/view?usp=sharing" target="_blank" style="text-decoration:underline">student guide</a>
1111

1212
.. |cleansentiment.csv| raw:: html
1313

_sources/Unit5-Writing-Classes/CBLabs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ College Board Celebrity and Data Labs
44

55
.. |Celebrity Lab| raw:: html
66

7-
<a href="https://apcentral.collegeboard.org/pdf/ap-computer-science-a-celebrity-lab-student-guide.pdf" target="_blank" style="text-decoration:underline">Celebrity Lab</a>
7+
<a href="https://drive.google.com/file/d/1ED0_6mJQ_Pnw6G3IcVXHksGJX8xCdx_I/view?usp=sharing" target="_blank" style="text-decoration:underline">Celebrity Lab</a>
88

99
.. |Data Lab| raw:: html
1010

11-
<a href="https://apcentral.collegeboard.org/pdf/ap-computer-science-a-data-lab-student-guide.pdf" target="_blank">Data Lab</a>
11+
<a href="https://drive.google.com/file/d/11FGGvlIP2S3mndVRjqOpYmM1M0fkh3vg/view?usp=sharing" target="_blank">Data Lab</a>
1212

1313

1414
The new AP CSA Labs released in 2019, the |Celebrity Lab| (Activity 1-2) and the |Data Lab| (Activity 1-2), are for students to practice writing classes. Each of these labs have further activities that you will finish after Unit 7. The teacher guide and the code files are available in the AP Course Audit Portal. This page will eventually include tips to complete the labs.

_sources/Unit6-Arrays/Exercises.rst

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -486,40 +486,6 @@ You can step through the code above using the Java Visualizer by clicking on the
486486

487487

488488

489-
.. mchoice:: qab_4
490-
:practice: T
491-
:answer_a: All values in positions <i>m+1</i> through <i>myStuff.length-1</i> are greater than or equal to <i>n</i>.
492-
:answer_b: All values in position 0 through <i>m</i> are less than <i>n</i>.
493-
:answer_c: All values in position <i>m+1</i> through <i>myStuff.length-1</i> are less than <i>n</i>.
494-
:answer_d: The smallest value is at position <i>m</i>.
495-
:correct: a
496-
:feedback_a: Mystery steps backwards through the array until the first value less than the passed num (<i>n</i>) is found and then it returns the index where this value is found.
497-
:feedback_b: This would be true if mystery looped forward through the array and returned when it found a value greater than the passed num (<i>n</i>).
498-
:feedback_c: This would be true if it returned when it found a value at the current index that was greater than num (<i>n</i>).
499-
:feedback_d: It returns the first time the condition is met so nothing is known about the values which are unchecked.
500-
501-
Given the following array instance variable and method, which of the following best describes the contents of ``myStuff`` after (``int m = mystery(n);``) has been executed?
502-
503-
.. code-block:: java
504-
505-
// private field in the class
506-
private int[ ] myStuff;
507-
508-
//precondition: myStuff contains
509-
// integers in no particular order
510-
public int mystery(int num)
511-
{
512-
for (int k = myStuff.length - 1; k >= 0; k--)
513-
{
514-
if (myStuff[k] < num)
515-
{
516-
return k;
517-
}
518-
}
519-
return -1;
520-
}
521-
522-
523489
Hard Multiple Choice Questions
524490
----------------------------------
525491

_sources/Unit7-ArrayList/CBLabs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ College Board Celebrity and Data Labs
44

55
.. |Celebrity Lab| raw:: html
66

7-
<a href="https://apcentral.collegeboard.org/pdf/ap-computer-science-a-celebrity-lab-student-guide.pdf" target="_blank" style="text-decoration:underline">Celebrity Lab</a>
7+
<a href="https://drive.google.com/file/d/1ED0_6mJQ_Pnw6G3IcVXHksGJX8xCdx_I/view?usp=sharing" target="_blank" style="text-decoration:underline">Celebrity Lab</a>
88

99

1010
.. |Data Lab| raw:: html
1111

12-
<a href="https://apcentral.collegeboard.org/pdf/ap-computer-science-a-data-lab-student-guide.pdf" target="_blank" style="text-decoration:underline">Data Lab</a>
12+
<a href="https://drive.google.com/file/d/11FGGvlIP2S3mndVRjqOpYmM1M0fkh3vg/view?usp=sharing" target="_blank" style="text-decoration:underline">Data Lab</a>
1313

1414

1515
You may have completed Activity 1 and 2 in the |Celebrity Lab| and |Data Lab|, new AP CSA Labs released in 2019, in Unit 5. The next activities in these labs, especially Activity 3, can be completed here for more practice with ArrayLists. The teacher guide and the code files are available in the AP Course Audit Portal. This page will eventually include tips to complete the labs.

_sources/Unit8-2DArray/CBLabs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ College Board Picture Lab and Steganography Lab for 2D Arrays
88

99
.. |Steganography lab| raw:: html
1010

11-
<a href= "https://apcentral.collegeboard.org/pdf/ap-computer-science-a-steganography-lab-student-guide.pdf" style="text-decoration:underline" target="_blank" >Steganography Lab</a>
11+
<a href= "https://drive.google.com/file/d/1pa5-KLRRE-5awoqnbPQd1yhqCaoPv_n4/view?usp=sharing" style="text-decoration:underline" target="_blank" >Steganography Lab</a>
1212

1313
The |Picture Lab| is a fun lab that you may have started in 8.2 and can finish in the next pages:
1414

_sources/Unit8-2DArray/pictureLabA5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ divide by 3). Be sure to call the new test method in the main method.
775775
:align: left
776776

777777
4. Challenge — Explore the water.jpg picture. Write a method
778-
fixUnderwater() to modify the pixel colors to make the fish easier to see. There are many ways to do this, but you could try increasing one of the colors by a certain factor. Here are some more complex algorithms for increasing the brightness and contrast of images https://ie.nitk.ac.in/blog/2020/01/19/algorithms-for-adjusting-brightness-and-contrast-of-an-image/.
778+
fixUnderwater() to modify the pixel colors to make the fish easier to see. There are many ways to do this, but you could try increasing one of the colors by a certain factor. Here are some more complex algorithms for increasing the brightness and contrast of images https://web.archive.org/web/20240911001714/https://ie.nitk.ac.in/blog/2020/01/19/algorithms-for-adjusting-brightness-and-contrast-of-an-image/.
779779

780780
.. activecode:: picture-lab-A5-fix-underwater
781781
:language: java

_sources/Unit8-2DArray/pictureLabA9.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,6 @@ Steganography Lab
679679

680680
.. |Steganography lab| raw:: html
681681

682-
<a href= "https://apcentral.collegeboard.org/pdf/ap-computer-science-a-steganography-lab-student-guide.pdf" style="text-decoration:underline" target="_blank" >Steganography Lab</a>
682+
<a href= "https://drive.google.com/file/d/1pa5-KLRRE-5awoqnbPQd1yhqCaoPv_n4/view?usp=sharing" style="text-decoration:underline" target="_blank" >Steganography Lab</a>
683683

684684
If you enjoyed this lab and have time, continue on with the |Steganography lab| that explores hiding messages in images.

_sources/Unit9-Inheritance/CBLabs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ College Board Celebrity Lab
44

55
.. |Celebrity Lab| raw:: html
66

7-
<a href="https://apcentral.collegeboard.org/pdf/ap-computer-science-a-celebrity-lab-student-guide.pdf" target="_blank" style="text-decoration:underline">Celebrity Lab</a>
7+
<a href="https://drive.google.com/file/d/1ED0_6mJQ_Pnw6G3IcVXHksGJX8xCdx_I/view?usp=sharing" target="_blank" style="text-decoration:underline">Celebrity Lab</a>
88

99
The new AP CSA |Celebrity Lab| Activity 4 and 5 involve inheritance. The teacher guide and the code files are available in the AP Course Audit Portal. This page will eventually include tips to complete the labs.

0 commit comments

Comments
 (0)