Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
5ffe9d5
module 1 update 1
tar3kmp3 Jun 8, 2022
ec64886
module 1
tar3kmp3 Jun 10, 2022
0f93906
working on module2
tar3kmp3 Jun 10, 2022
cb7592a
recommitting module 1
tar3kmp3 Jun 10, 2022
8743ec9
module2 commit 2
tar3kmp3 Jun 10, 2022
fed720f
finished module 2
tar3kmp3 Jun 11, 2022
7b70324
module 3 done
tar3kmp3 Jun 11, 2022
d724817
m3 updates, started m4
tar3kmp3 Jun 12, 2022
15fed16
module 4 done
tar3kmp3 Jun 13, 2022
c2b1d5c
module 5 done
tar3kmp3 Jun 16, 2022
b1aca68
module 6 done
tar3kmp3 Jun 19, 2022
1719861
module 7 done
tar3kmp3 Jun 20, 2022
af1bf9c
module 8 and 9
tar3kmp3 Jun 22, 2022
1f2123e
reorganized
tar3kmp3 Jun 29, 2022
9e1f385
get_master_url()
tar3kmp3 Jul 4, 2022
0f54e43
updating book settings
digshake Aug 25, 2022
20c4d04
started incorporating 131 materials
Aug 25, 2022
19fbe3f
major restructure
digshake Aug 26, 2022
30d12d4
major reorg
digshake Aug 27, 2022
923bedd
fixing git links
digshake Aug 27, 2022
fd11934
updating module 0
digshake Aug 27, 2022
03f3e69
module 0 fixes
digshake Aug 27, 2022
14a6fa4
update css
digshake Aug 27, 2022
89cedbd
update css
digshake Aug 27, 2022
ac3dd1b
update css
digshake Aug 27, 2022
a8d124d
update css
digshake Aug 27, 2022
674ea50
update css
digshake Aug 27, 2022
a9aa90b
update settings
digshake Aug 27, 2022
1bd76fc
updated toc
digshake Aug 27, 2022
33d0b09
reshuffle modules 1 and 2
digshake Aug 27, 2022
0b092ab
restructure first batch
digshake Aug 27, 2022
21daa3a
restructure first batch
digshake Aug 27, 2022
c0d357d
whoops
digshake Aug 27, 2022
c4b71df
small fixes
digshake Aug 27, 2022
dcf5d01
updating module 1
digshake Aug 27, 2022
3fee9b5
updating module 1
digshake Aug 27, 2022
37c1153
finish review of first 3 modules
digshake Aug 28, 2022
70f8cd4
finish review of first 3 modules
digshake Aug 28, 2022
9ebb15b
updating software instructions
digshake Aug 29, 2022
4a89831
software install updates
digshake Aug 31, 2022
057b17d
software install updates
digshake Aug 31, 2022
885f286
updating studio 0
digshake Aug 31, 2022
e11f6f4
udpating studio 0 link
digshake Aug 31, 2022
eee27dc
first batch of extensions
digshake Sep 5, 2022
ad6e7b2
removing extensions from main menu
digshake Sep 5, 2022
e765323
extensions updates
digshake Sep 5, 2022
08f84e2
extensions updates
digshake Sep 5, 2022
4e66cc5
extensions updates
digshake Sep 5, 2022
7914887
extensions updates
digshake Sep 5, 2022
9df7f78
extensions updates
digshake Sep 5, 2022
50120f6
extensions updates
digshake Sep 5, 2022
78abe0c
extensions updates
digshake Sep 5, 2022
3b7062c
extensions updates
digshake Sep 5, 2022
7011080
extensions updates
digshake Sep 5, 2022
2605680
extensions updates
digshake Sep 5, 2022
d069ccc
extensions updates
digshake Sep 5, 2022
b4831ab
extensions updates
digshake Sep 5, 2022
7ff9c0f
extensions updates
digshake Sep 5, 2022
922251b
extensions updates
digshake Sep 5, 2022
d4e4eb7
extensions updates
digshake Sep 5, 2022
7042889
updating studio 1
digshake Sep 7, 2022
1169444
updates to studio 1
digshake Sep 8, 2022
149cdbc
studio and assignment 1 fixes
digshake Sep 12, 2022
2b609bd
publishing extensions
digshake Sep 13, 2022
06a38e5
fixing extensions
digshake Sep 20, 2022
2796d90
updating an extension
digshake Sep 21, 2022
1d62b4c
updating extension points
digshake Sep 26, 2022
1999885
extension points
digshake Oct 3, 2022
1524083
extension points
digshake Oct 3, 2022
089436a
module 4 wip
digshake Oct 4, 2022
15df272
updating second third
digshake Oct 4, 2022
967934b
here we go, second third ready for proofing
digshake Oct 5, 2022
8214e65
here we go, second third ready for proofing
digshake Oct 5, 2022
6fe00a8
toc fix
digshake Oct 5, 2022
3e12693
toc fix
digshake Oct 5, 2022
dfc4225
toc fix
digshake Oct 5, 2022
761b845
extension batch 2 wip
digshake Oct 14, 2022
771258e
work in progress
digshake Oct 17, 2022
343c71b
extension batch 2 draft
digshake Oct 17, 2022
4a25269
fixing some stuff
digshake Oct 18, 2022
205f1cf
fixing some stuff
digshake Oct 18, 2022
fe1008f
fixing some stuff
digshake Oct 18, 2022
ce4efc0
fixing some stuff
digshake Oct 18, 2022
12a6352
fixing some stuff
digshake Oct 18, 2022
e5b63de
fixing some stuff
digshake Oct 18, 2022
32adf85
fixing some stuff
digshake Oct 18, 2022
d30d212
fixing some stuff
digshake Oct 18, 2022
ce5e307
fixing some stuff
digshake Oct 18, 2022
8472849
module 7
digshake Oct 26, 2022
18d82a2
title change
digshake Oct 27, 2022
cd36177
EB1 and Studio 6 edits
cgnov Oct 27, 2022
9b30449
Merge branch 'master' of https://github.com/digshake/CSJavaWUSTL
cgnov Oct 27, 2022
9a27229
Smol Studio 5 edits (typos, capitalization, titles)
cgnov Oct 27, 2022
6cecb81
Clarify A7 confusions
cgnov Nov 7, 2022
c743d7a
module 8
digshake Nov 14, 2022
2fb89bb
module 8
digshake Nov 14, 2022
2a100fa
studio 8 updates and fixes
digshake Nov 16, 2022
9fed312
formatting
digshake Nov 16, 2022
9733781
fixing github link
digshake Nov 16, 2022
6c744b6
module 9 stuff
digshake Nov 22, 2022
80d54d1
studio 9 updates
digshake Nov 28, 2022
dd28918
updating for spring 23
digshake Jan 10, 2023
67757c5
setup and assignment 1 edits
digshake Jan 11, 2023
af62d6a
setup and assignment 1 edits
digshake Jan 11, 2023
b964109
setup and assignment 1 edits
digshake Jan 11, 2023
c8392d9
Studio 0 rewording
cgnov Jan 12, 2023
8027c0a
Merge
cgnov Jan 12, 2023
758e40c
Fix Studio 0 Github links
cgnov Jan 12, 2023
7286781
setup instruction updates
digshake Jan 12, 2023
b5790d5
Merge branch 'master' of https://github.com/digshake/CSJavaWUSTL
digshake Jan 12, 2023
b0d4dea
setup instruction updates
digshake Jan 12, 2023
f6d9a81
setup instruction updates
digshake Jan 12, 2023
3d1fce6
Add empty lines to fix "definition list" bolding
cgnov Jan 12, 2023
3645565
Merge branch 'master' of https://github.com/digshake/CSJavaWUSTL
cgnov Jan 12, 2023
0008071
Studio 0 formatting - smaller list indents
cgnov Jan 13, 2023
552ef16
slight update to software installation instructions
digshake Jan 17, 2023
4abcf4d
Suggest new group in Studio 1
cgnov Jan 19, 2023
7401c24
Merge branch 'master' of https://github.com/digshake/CSJavaWUSTL
cgnov Jan 19, 2023
9496f1f
A0 re-flow
cgnov Jan 23, 2023
5a3c465
Add Studio 2 conceptual checkpoints
cgnov Jan 24, 2023
2c1785e
Remove extra 0s in A1 output
cgnov Jan 25, 2023
5908dfb
A1 styling and content fixes
cgnov Jan 25, 2023
b438150
S1 hotfix
cgnov Jan 26, 2023
5c8e6d2
Studio Team name number fixes
cgnov Jan 26, 2023
aa41a2b
Fix A1 rounding
cgnov Jan 27, 2023
2bcbfc9
slight modification to studio 1
digshake Jan 27, 2023
8ebbfd5
S3 improvements
cgnov Feb 2, 2023
774adff
Merge branch 'master' of https://github.com/digshake/CSJavaWUSTL
cgnov Feb 2, 2023
968a726
Fix S3 number
cgnov Feb 2, 2023
7f8cea4
Add A3 freq table tips
cgnov Feb 4, 2023
dc01281
E1.1 syntax fix
cgnov Feb 4, 2023
f0c5f6e
E2.1: Give loop variable name tip
cgnov Feb 4, 2023
aed082a
E3.1 format fixes
cgnov Feb 4, 2023
138c66e
Fix E3.5 formatting
cgnov Feb 5, 2023
3e35e9d
E3.5 formatting fix: indent nested list
cgnov Feb 5, 2023
56a2c7c
E3.7 Formatting fixes
cgnov Feb 5, 2023
fe8ff5d
E1.1 Add JUnit primer and allow if when no fine
cgnov Feb 5, 2023
cf4f2cb
E2.1: Elaborate on testing
cgnov Feb 5, 2023
6758d1a
E3.7: Remove outdated hint
cgnov Feb 7, 2023
5c223ae
S4 setup simplification + format fixes
cgnov Feb 16, 2023
3289e50
E3.5 Show correct points for Data Sorting in title
cgnov Feb 17, 2023
71097c6
fixing image path
digshake Mar 7, 2023
f611419
updating for fall 23
digshake Aug 24, 2023
201348f
updating for fall 23
digshake Aug 24, 2023
f0eafba
assignment 1 tweak
digshake Sep 6, 2023
c70c5e5
fixing studio 1 link
digshake Sep 6, 2023
eec4e60
fixing incorrect weights
digshake Sep 8, 2023
c9014f8
Merge branch 'master' of https://github.com/digshake/CSJavaWUSTL
digshake Sep 8, 2023
4eb24ae
studio 3
digshake Sep 20, 2023
d0be2e7
updating for exam prep 1
digshake Sep 22, 2023
896c242
updating for exam prep 1
digshake Sep 22, 2023
fbb8fbe
fixing github link
digshake Oct 2, 2023
52c7bab
Merge branch 'master' of https://github.com/digshake/CSJavaWUSTL
digshake Oct 2, 2023
1bf4f28
reordering problems, fixing a typo, adding alert to only write code i…
victoriaprisco Oct 23, 2023
d3c4097
Merge pull request #1 from digshake/Studio6Changes
digshake Oct 25, 2023
1e1e8e0
updating modules 8 and 9
digshake Oct 27, 2023
8a6fd8a
Merge branch 'master' of https://github.com/digshake/CSJavaWUSTL
digshake Oct 27, 2023
a48477f
updating toc
digshake Oct 27, 2023
4357d7c
updating toc
digshake Oct 27, 2023
11e3dc5
updating toc
digshake Oct 27, 2023
9ea3e54
updating exam prep 2
digshake Oct 31, 2023
30ab414
reorg
digshake Nov 9, 2023
62e8325
assignment 8
digshake Nov 11, 2023
777c931
studio 8
digshake Nov 11, 2023
2529fa9
fixing toc
digshake Nov 11, 2023
2afa7ca
fixing studio 8
digshake Nov 11, 2023
38aa3d1
fixing studio 8
digshake Nov 11, 2023
7d3d0b6
studio 8 and assignment 8 fixes
digshake Nov 14, 2023
1aa5a34
removing sets
digshake Nov 20, 2023
534958c
updating equality
digshake Nov 20, 2023
04e2b5a
updating equality
digshake Nov 20, 2023
b9424e6
updating module 9 assignment and studio
digshake Nov 26, 2023
9adfd10
updating toc
digshake Nov 26, 2023
43a13b3
fixing typos and such
digshake Nov 26, 2023
e35a0e2
fixing typo
digshake Nov 28, 2023
6899f8f
updating studio 8
digshake Nov 29, 2023
118dbd2
adding exam 3 prep
digshake Dec 1, 2023
316be33
updating GHC links
digshake Jan 11, 2024
11bfb51
updating module 3 exercises
digshake Feb 6, 2024
507f8c3
update typo in module 4 studio instructions
victoriaprisco Mar 20, 2024
16b5c17
updating studio 8 instructions
digshake Apr 3, 2024
0c30529
updating assignment 8
digshake Apr 10, 2024
dc3c0c3
assignment 9 tweak
digshake Apr 20, 2024
1c10b58
adding github links and questions
digshake Aug 21, 2024
9cc29f6
moving assignment 4 images
digshake Aug 21, 2024
e30165c
updating file names for modules 1 thru 3
digshake Aug 23, 2024
59679d4
updating brackets for modules 1 thru 3
digshake Aug 23, 2024
a64bb9d
removing page
digshake Aug 23, 2024
3844dca
fixing assignment 0 link
digshake Aug 26, 2024
9c29c74
fixing repo link
digshake Sep 16, 2024
c789339
fixing studio link
digshake Sep 16, 2024
cf3abcc
fixing frequency table
digshake Sep 16, 2024
cdb43b3
file names and formatting
digshake Sep 23, 2024
c6ef818
new assignment 4!
digshake Sep 24, 2024
b8918c8
new assignment 4!
digshake Sep 24, 2024
0734d15
new assignment 4!
digshake Sep 24, 2024
871d366
new assignment 4!
digshake Sep 24, 2024
5bb8eed
new assignment 4!
digshake Sep 24, 2024
a4f693e
new assignment 4!
digshake Sep 24, 2024
dc0496e
assignment 5 tweaks
digshake Sep 25, 2024
c890f83
assignment tweaks
digshake Sep 25, 2024
58f6c5c
update reference to old assignment 4
victoriaprisco Oct 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adding github links and questions
  • Loading branch information
digshake committed Aug 21, 2024
commit 1c10b58dfe023e6f3973edff44316c692ebc5eae
16 changes: 8 additions & 8 deletions _sources/Module0-Introduction/assignment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Assignment Setup

Before starting this assignment it is expected that you have completed the `software setup <software.html>`_ for the course as well as `Studio 0 <studio.html>`_)

To create your repository go `go here <https://classroom.github.com/a/lvvBk158>`_. Then follow the same accept/import process described in `the setup instructions <software.html>`_.
To create your repository go `go here <https://classroom.github.com/a/DzEHvf2W>`_. Then follow the same accept/import process described in `the setup instructions <software.html>`_.

Using Java to Control a Robot
================
Expand Down Expand Up @@ -51,7 +51,7 @@ Your project should now be open in Eclipse. You should have a pane called the `P
Working With Code
-----------------

Now that you understand how to use Eclipse to modify and run the program, spend some time making the robot draw a picture of a house.
Now that you understand how to use Eclipse to modify and run the program, spend some time making the robot draw a picture of a flower or a tree (maybe a leaf?).

2. Commit and push your work
================
Expand All @@ -65,12 +65,12 @@ The TAs will be asking you some questions about GitHub (and debugging) as part o
3. Course Information
================

Review the course site on `Canvas <https://wustl.instructure.com/courses/102124>`_. Make sure you review:
Review the course site on `Canvas <https://wustl.instructure.com/courses/133664>`_. Make sure you review:

1. `Course Policies <https://wustl.instructure.com/courses/112030/pages/course-policies>`_
2. Know where to go to find `Office Hours <https://wustl.instructure.com/courses/112030/pages/office-hours>`_, which will be posted by the second week of class.
3. Know how to `browse the content and prepare for modules <https://wustl.instructure.com/courses/112030>`_.
4. Be sure you're signed up for the course's `Piazza forum <https://piazza.com/class/llfedvnsev66ve/>`_.
1. `Course Policies <https://wustl.instructure.com/courses/133664/pages/course-policies>`_
2. Know where to go to find `Office Hours <https://wustl.instructure.com/courses/133664/pages/office-hours>`_, which will be posted by the second week of class.
3. Know how to `browse the content and prepare for modules <https://wustl.instructure.com/courses/133664>`_.
4. Be sure you're signed up for the course's `Piazza forum <https://piazza.com/wustl/fall2024/cse131cse501n>`_.


4. "Demo" your work to a TA!
Expand All @@ -81,4 +81,4 @@ To receive credit for an assignment in this course you must demo your work to an
1. Show the TA your work
2. Show them your final work on GitHub.
3. Ask any questions you have about the course.
4. Confirm that your score is recorded in `Canvas <https://wustl.instructure.com/courses/112030/grades>`_. Mistakes can happen and you should always confirm credit is recorded before leaving class!
4. Confirm that your score is recorded in `Canvas <https://wustl.instructure.com/courses/133664>`_. Mistakes can happen and you should always confirm credit is recorded before leaving class!
2 changes: 1 addition & 1 deletion _sources/Module0-Introduction/software.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ You will also need to create a **Personal Access Token**:
3. Accepting the exercises
=====================

For each major type of course work you will need to generate a repository on GitHub. You'll do so by clicking on a link and "accepting" an assignment. Click `HERE <https://classroom.github.com/a/MqHma0yE>`_ to accept the repository containing the first batch of course exercises ***and follow along with the instructions below***.
For each major type of course work you will need to generate a repository on GitHub. You'll do so by clicking on a link and "accepting" an assignment. Click `HERE <https://classroom.github.com/a/tNUJvAtV>`_ to accept the repository containing the first batch of course exercises ***and follow along with the instructions below***.

2. Select the button to accept the exercises:

Expand Down
4 changes: 2 additions & 2 deletions _sources/Module0-Introduction/studio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ Studio Setup and Procedure
5. Everyone else, open the studio instructions on your own computer.
6. Choose one group member to complete the following instructions:

1. Click `here <https://classroom.github.com/a/_iR4bybw>`_
1. Click `here <https://classroom.github.com/a/cDhjKwpG>`_
2. Go to the bottom of the page, where it says `OR Create a new team`.
3. Enter your group's last names and "Studio0" into the text field. Ex: "XiaSmith-Studio0"
4. Click the button to create the team.
7. After the team is created, all other members of your team should complete the following instructions:

1. Click `here <https://classroom.github.com/a/_iR4bybw>`_
1. Click `here <https://classroom.github.com/a/cDhjKwpG>`_
2. Find the team your groupmate created.
3. Join the team.

Expand Down
29 changes: 24 additions & 5 deletions _sources/Module1-Types-and-Names/assignment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Assignment 1: Grade Calculator
Assignment Setup
================

To create your repository, `go here <https://classroom.github.com/a/qH2ERQkX>`_ and follow the same accept/import process described in `the setup instructions <../Module0-Introduction/software.html>`_.
To create your repository, `go here <https://classroom.github.com/a/DzEHvf2W>`_ and follow the same accept/import process described in `the setup instructions <../Module0-Introduction/software.html>`_.

Grade Calculator
================
Expand All @@ -22,6 +22,23 @@ In this assignment, you will develop a tool that can help you compute your final

* Work with Java expressions

Questions to ask if you get stuck
=================================

Like all problems, this one can be tricky. Here are some common questions that we get from students regarding this assignment. Use these questions to gauge your own understanding of what we are asking you to do. Please ask these questions to a TA or an instructor if you are feeling stuck on a certain part of the assignment.

* What is the significance of ``public static void main(String[] args)`` in Java?

* How does the ``Scanner`` class work in Java?

* What methods can I use to read user input with a ``Scanner`` object in Java?

* In Java, what are data types, and how do they relate to variables and user input?

* How can grade weights be computed in Java?

* How can values be rounded to two decimal places using the ``Math`` class?

Procedure
================

Expand Down Expand Up @@ -62,13 +79,13 @@ These are the inputs that you should ask for from the user, plus the names of th
| averageExamGrade | The average grade on all exams, as a percentage between 0 and 100 |
+------------------------+--------------------------------------------------------------------------------------------------------------------------+

This is an example of what your program should output:
This is an example of what your program should display when it is run:

``CSE131 Grade for: Doug Shook``

``Average assignment grade: 85.4``

``Weighted assignment grade (out of 36): 30.74%``
``Weighted assignment grade (out of 30): 25.62%``

``Number of studios attended: 7``

Expand All @@ -80,9 +97,9 @@ This is an example of what your program should output:

``Average exam grade: 93.5``

``Weighted exam grade (out of 54): 50.49``
``Weighted exam grade (out of 60): 56.1%``

``Total Grade: 91.93%``
``Total Grade: 92.42%``

How do we write this program? Let's start one step at a time. What's the simplest, easily checkable change you can make?

Expand Down Expand Up @@ -112,3 +129,5 @@ Submitting your work
Check the rubric (which is at the very bottom of the Canvas page for this assignment).

Get your assignment graded by bringing it to lab on Wednesday/Thursday or going to office hours and signing up for a demo via `wustl-cse.help <https://wustl-cse.help/>`_.

Confirm that your score is recorded in `Canvas <https://wustl.instructure.com/courses/133664>`_. Mistakes can happen and you should always confirm credit is recorded before leaving class!
4 changes: 2 additions & 2 deletions _sources/Module1-Types-and-Names/studio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ Studio Setup and Procedure
5. Everyone else, open the studio instructions on your own computer.
6. Choose one group member to complete the following instructions:

1. Click `here <https://classroom.github.com/a/Vx_ZQmoA>`_
1. Click `here <https://classroom.github.com/a/Ol0eD3gl>`_
2. Go to the bottom of the page, where it says `OR Create a new team`.
3. Enter your group's last names and "Studio1" into the text field. Ex: "XiaSmith-Studio1"
4. Click the button to create the team.
7. After the team is created, all other members of your team should complete the following instructions:

1. Click `here <https://classroom.github.com/a/Vx_ZQmoA>`_
1. Click `here <https://classroom.github.com/a/Ol0eD3gl>`_
2. Find the team your groupmate created.
3. Join the team.

Expand Down
21 changes: 19 additions & 2 deletions _sources/Module2-Choice-and-Iteration/assignment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Assignment 2: Game of Nim
Assignment Setup
=====================

To create your repository go `here <https://classroom.github.com/a/Ax1EfmOd>`_. Then follow the same accept/import process described in `the setup instructions <../Module0-Introduction/software.html>`_.
To create your repository go `here <https://classroom.github.com/a/ucy6_sFv>`_. Then follow the same accept/import process described in `the setup instructions <../Module0-Introduction/software.html>`_.

Game of Nim
=====================
Expand All @@ -29,6 +29,21 @@ Example

``The computer wins / you lose!``

Questions to ask if you get stuck
=================================

Like all problems, this one can be tricky. Here are some common questions that we get from students regarding this assignment. Use these questions to gauge your own understanding of what we are asking you to do. Please ask these questions to a TA or an instructor if you are feeling stuck on a certain part of the assignment.

* How can the code know whose turn it is?

* How can numbers be randomly generated within a given range using the `Math` class in Java?

* How can user input be validated to ensure that a proper number is given?

* How do if-statements and while loops with multiple conditions work in Java?

* How do the `&&`, `||`, and `!` operators work in Java?

Notes
=====================

Expand Down Expand Up @@ -57,4 +72,6 @@ Be careful! A human might enter 5 if 5 sticks are left, and if you are not caref
Submitting your work
=====================

To submit your work come to office hours or class on an “Assignment day” and sign up for a demo via wustl-cse.help.
Get your assignment graded by bringing it to lab on Wednesday/Thursday or going to office hours and signing up for a demo via `wustl-cse.help <https://wustl-cse.help/>`_.

Confirm that your score is recorded in `Canvas <https://wustl.instructure.com/courses/133664>`_. Mistakes can happen and you should always confirm credit is recorded before leaving class!
4 changes: 2 additions & 2 deletions _sources/Module2-Choice-and-Iteration/studio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ Studio Setup and Procedure
3. Everyone else, open the studio instructions on your own computer.
4. Choose one group member to complete the following instructions:

1. Click `here <https://classroom.github.com/a/wrKV5Egi>`_
1. Click `here <https://classroom.github.com/a/SsyZQnTa>`_
2. Go to the bottom of the page, where it says `OR Create a new team`.
3. Enter your group's last names and "Studio2" into the text field. Ex: "XiaSmith-Studio2"
4. Click the button to create the team.
5. After the team is created, all other members of your team should complete the following instructions:

1. Click `here <https://classroom.github.com/a/wrKV5Egi>`_
1. Click `here <https://classroom.github.com/a/SsyZQnTa>`_
2. Find the team your groupmate created.
3. Join the team.

Expand Down
83 changes: 49 additions & 34 deletions _sources/Module3-Arrays/assignment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,32 @@
Assignment 3: Array Puzzles
=====================

Assignment Setup
=====================

To create your repository go `here <https://classroom.github.com/a/T_tf9ojA>`_. Then follow the same accept/import process described in `the setup instructions <../Module0-Introduction/software.html>`_.

Arrays Bonus Video
Array Puzzles
=====================

You are given three problems to complete below. For each problem we supply you examples of what the output could look like.

.. youtube:: jKZ0rF1KHM4
Questions to ask if you get stuck
=================================

Still a confused about arrays? Watch this bonus demonstration by former 131 TA Amanda Hua on how to create, write to, read from, and get the length of arrays.
Like all problems, these can be tricky. Here are some common questions that we get from students regarding this assignment. Use these questions to gauge your own understanding of what we are asking you to do. Please ask these questions to a TA or an instructor if you are feeling stuck on a certain part of the assignment.

* How do nested for loops work in Java, and how do I know when I need nested loops?

Assignment Setup
=====================
* How do I create an array in Java?

To create your repository go `here <https://classroom.github.com/a/E_nUUXLb>`_. Then follow the same accept/import process described in `the setup instructions <../Module0-Introduction/software.html>`_.
* How do I insert data into an array in Java?

Array Puzzles
=====================
* How do I print an array in Java?

You are given three problems to complete below. For each problem we supply you examples of what the output could look like.
* How are 2-D arrays different from regular arrays in Java, and when should I use a 2-D array?

* How does a for-each loop work compared to a for loop in Java and when should I use one?

Bubble Sort
=====================
Expand Down Expand Up @@ -56,39 +63,45 @@ Example Output:
Frequency Table
=====================

Make a program called ``FrequencyTable.java`` in the ``assignment3`` package. This program will generate ``amount`` number of integers between 1 and ``max`` where ``amount`` and ``max`` are values supplied by the user through ``Scanner``.
Make a program called ``FrequencyTable.java`` in the ``assignment3`` package. This program will simulate a number of dice rolls, with the number of dice to use supplied by the user through ``Scanner``.

Your program should roll the given number of dice 10000 times, and count the number of times that each possible value is rolled. You should use an array as a frequency table to track this information. Think carefully about how you can use an array for this purpose. How big should our array be? Can we define a relationship between the random values that are generated by "rolling" the dice and how we count them in the array?

Your program should create a frequency table, counting the number of times that each number is randomly generated. Think carefully about how you can use an array for this purpose. How big should our array be? Can we define a relationship between the random values that are generated and how we count them in the array?
Once the 100 rolls have been simulated, your program should print out the frequency table, showing how often each value was rolled.

Some iterative development tips:

* Try making your array before you write the code for generating random numbers. Try using the array to print out information with the same structure as the example below (even though the frequencies will all be 0). Make sure the numbers start at 1 and go up to exactly ``max``.
* Try making your array before you write the code for generating random numbers. Try using the array to print out information with the same structure as the example below (even though the frequencies will all be 0).
* Try writing code that will generate a random number in your range. Print out the result. If ``max`` is 1, the generated number should always be 1. If ``max`` is 2, the generated number should sometimes be 1 and sometimes be 2. You can use these two values as a litmus test to see if your generator is working. (Once you have a number generator working, you can delete the print statement.)
* Try using the number you generated as your index in the array and increase that count by one. Is there an index out of bounds error? Why might that be happening, and how could you fix it?

Example Output:

``Frequencies for 100 randomly generated values between 1 and 10``

``1: 10``

``2: 9``

``3: 10``

``4: 9``

``5: 10``

``6: 6``

``7: 15``

``8: 15``

``9: 8``

``10: 8``
``How many dice? 4``

``Times each value was rolled with 4 dice over 10000 rolls``

``4: 6``
``5: 36``
``6: 69``
``7: 149``
``8: 254``
``9: 442``
``10: 601``
``11: 889``
``12: 933``
``13: 1053``
``14: 1157``
``15: 1042``
``16: 972``
``17: 817``
``18: 590``
``19: 416``
``20: 267``
``21: 176``
``22: 87``
``23: 39``
``24: 5``


Symmetrical Image
Expand Down Expand Up @@ -117,4 +130,6 @@ Example output:
Submitting your work
=====================

To submit your work come to office hours or class on an “Assignment day” and sign up for a demo via wustl-cse.help.
Get your assignment graded by bringing it to lab on Wednesday/Thursday or going to office hours and signing up for a demo via `wustl-cse.help <https://wustl-cse.help/>`_.

Confirm that your score is recorded in `Canvas <https://wustl.instructure.com/courses/133664>`_. Mistakes can happen and you should always confirm credit is recorded before leaving class!
Loading