Skip to content

Commit

Permalink
Merge pull request #117 from LaunchCodeEducation/bug-stomp-5-23
Browse files Browse the repository at this point in the history
Bug stomp 5 23
  • Loading branch information
jwoolbright23 authored May 23, 2024
2 parents 62d509e + 432f120 commit b3026a6
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 57 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.108.0
HUGO_VERSION: 0.112.4
steps:
- name: Install Hugo CLI
run: |
Expand All @@ -39,12 +39,12 @@ jobs:
- name: Install Dart Sass Embedded
run: sudo snap install dart-sass-embedded
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
Expand All @@ -57,7 +57,7 @@ jobs:
--minify \
--baseURL "https://education.launchcode.org/intro-to-web-dev-curriculum/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ./public

Expand All @@ -71,4 +71,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions content/arrays/studio/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ array, then modify the array and convert it back to a printable string.

1. Use the `reverseSpace()` function to code the following. If the string uses spaces to separate the words, `split` it into an array, reverse alphabetize the entries, and then `join` the array into a new space-separated string. For example, `"to code up fun"` becomes `"up to fun code"`.

1. Use the `commaSpace()` function to code the following. *Consider*: What if the string uses 'comma spaces' (, ) to separate the list? Modify your code to produce the same result as part "b", making sure that the extra spaces are NOT part of the final string.
1. Use the `commaSpace()` function to code the following. *Consider*: What if the string uses 'comma spaces' (, ) to separate the list? Modify your code to produce the same result as #2, making sure that the extra spaces are NOT part of the final string.

## Bonus Mission: Multi-dimensional Arrays

Expand All @@ -78,4 +78,4 @@ Arrays can store other arrays!
1. Initialize a `cargoHold` array and add the cabinet arrays to it. Print `cargoHold` to verify its structure.
1. Query the user to select a cabinet (0-3) in the `cargoHold`.
1. Use bracket notation and a template literal to display the contents of the selected cabinet. If the user entered an invalid number, print an error message instead.
1. *Bonus to the Bonus*: Modify the code to query the user for BOTH a cabinet in `cargoHold` AND a particular item. Use the `include` method to check if the cabinet contains the selected item, then print `"Cabinet ____DOES/DOES NOT contain ____."`
1. *Bonus to the Bonus*: Modify the code to query the user for BOTH a cabinet in `cargoHold` AND a particular item. Use the `include` method to check if the cabinet contains the selected item, then print `"Cabinet ____DOES/DOES NOT contain ____."`
4 changes: 2 additions & 2 deletions content/assignments/candidate-testing/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ draft: false
weight: 2
originalAuthor: Courtney Frey # to be set by page creator
originalAuthorGitHub: speudusa # to be set by page creator
reviewer: Rob Thomas
reviewerGitHub: icre8FreeCode
reviewer: John Woolbright
reviewerGitHub: jwoolbright23
lastEditor: # update any time edits are made after review
lastEditorGitHub: # update any time edits are made after review
lastMod: # UPDATE ANY TIME CHANGES ARE MADE
Expand Down
26 changes: 13 additions & 13 deletions content/assignments/candidate-testing/intro/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ draft: false
weight: 1
originalAuthor: Courtney Frey # to be set by page creator
originalAuthorGitHub: speudusa # to be set by page creator
reviewer: Rob Thomas
reviewerGitHub: icre8FreeCode
reviewer: John Woolbright
reviewerGitHub: jwoolbright23
lastEditor: # update any time edits are made after review
lastEditorGitHub: # update any time edits are made after review
lastMod: # UPDATE ANY TIME CHANGES ARE MADE
Expand Down Expand Up @@ -37,40 +37,40 @@ The requirements below are what your END assignment will look like.
1. Determine if the candidate did well enough to enter our program (need >= 80% to pass)
1. Display the results.

This assignment is broken down so you can complete small pieces as you go. You need to move sequentially starting at Part 1. Please read the WHOLE assignment page before starting.
This assignment is broken down so you can complete small pieces as you go. You need to move sequentially starting at Task 1. Please read the WHOLE assignment page before starting.

## Take It Step by Step
When starting any project, it's best to approach it as a series of smaller, testable parts. The goal is to get simple parts working first and then expand the code in a systematic way. The following is NOT the only way to complete this assignment, but it provides a framework for thinking through the project.
When starting any project, it's best to approach it as a series of smaller, testable tasks. The goal is to get simple tasks working first and then expand the code in a systematic way. The following is NOT the only way to complete this assignment, but it provides a framework for thinking through the project.

To help you with this large assignment, we have broken it into 3 parts.
To help you with this large assignment, we have broken it into 3 tasks.

**Part 1: Minimum Viable Quiz**
**Task 1: Minimum Viable Quiz**

You will create a single question quiz. This will let you see the overall project in a smaller scale.
1. You will create 1 question with 1 correct answer.
1. You will collect 1 answer from the user.
1. You will compare the correct answer with the user's answer and let the user know if they got the question right.

You will run the autograding tests before moving onto Part 2. You need to pass Tests 1-6.
You will run the autograding tests before moving onto Task 2. You need to pass Tests 1-6.

**Part 2:Multiple Questions**
**Task 2: Multiple Questions**

You will increase the number of questions and answers to 5.

You will need to update your single question quiz to a 5 question quiz.
This will also mean, you will also have 5 correct answers and you will collect 5 user answers.

You will run the autograding tests before moving onto Part 3. You need to pass Tests 7-10.
You will run the autograding tests before moving onto Task 3. You need to pass Tests 7-10.

**Part 3: Grade the Quiz**
**Task 3: Grade the Quiz**

In this section, you will score the candidate's quiz results and let them know if they passed or failed.

You will run the autograding tests before moving onto Part 3. You need to pass Tests 11-17 for this section. You should pass all 17 tests to complete the assignment.
You will run the autograding tests before moving onto Task 3. You need to pass Tests 11-17 for this section. You should pass all 17 tests to complete the assignment.

## Example Output

Once all three parts have been completed, the results output should include the candidate's name, the candidate's responses, the correct answers, the final percentage, and if the candidate passed the quiz.
Once all three tasks have been completed, the results output should include the candidate's name, the candidate's responses, the correct answers, the final percentage, and if the candidate passed the quiz.

```bash
Candidate Name: Can Twin
Expand Down Expand Up @@ -102,6 +102,6 @@ Correct Answer: 3
The output will vary slightly based on the candidate's answers to each question.
{{% /notice %}}

Let's get started on [Part 1]({{< relref "../part-1/index.md" >}})
Let's get started on [Task 1]({{< relref "../task-1/index.md" >}})


Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
title: "Part 1: Minimum Viable Quiz"
title: "Task 1: Minimum Viable Quiz"
date: 2023-06-20T10:39:25-05:00
draft: false
weight: 2
originalAuthor: Courtney Frey # to be set by page creator
originalAuthorGitHub: speudusa # to be set by page creator
reviewer: Rob Thomas
reviewerGitHub: icre8FreeCode
reviewer: John Woolbright
reviewerGitHub: jwoolbright23
lastEditor: # update any time edits are made after review
lastEditorGitHub: # update any time edits are made after review
lastMod: # UPDATE ANY TIME CHANGES ARE MADE
---

For Part 1, you are going to:
For Task 1, you are going to:

1. Ask the candidate for their name
1. Create a quiz that asks a single question
Expand Down Expand Up @@ -54,31 +54,28 @@ For the sake of this assignment, look for the `TODO` statements. Some are outsid

Under `TODO 1.2c`, check the candidate's answer to see if it is correct. Provide basic feedback to the candidate, letting them know if their answer is correct or not.

## Testing Part 1
## Testing Task 1

In the terminal run `npm test`. This will run the autograding tests. The results will display in the terminal.

{{< rawhtml >}}
<img src="../images/Part1-tests.png" alt="Results of tests with only part 1 completed" width=50% />
<img src="../images/Part1-tests.png" alt="Results of tests with only task 1 completed" width=50% />
{{< /rawhtml >}}

> To pass Part 1, you need to pass tests 1-6.
> To pass Task 1, you need to pass tests 1-6.
To see which tests you passed, scroll up in your terminal. You will see details of each test. At the top of the test results, you will find a list that displays all of the tests and each status. This can be used a quick reference. The detailed outputs can help you explore the cause of a failure which can help you debug and improve your code.

{{< rawhtml >}}
<img src="../images/Part1-tests-list.png" alt="Results of tests with only part 1 completed" width=50% />
<img src="../images/Part1-tests-list.png" alt="Results of tests with only task 1 completed" width=50% />
{{< /rawhtml >}}

The rest of the tests are for Parts 2 and 3.
The rest of the tests are for Tasks 2 and 3.

{{% notice blue "Note" "rocket" %}}
Make sure your small app works properly before moving on to part 2.
Make sure your small app works properly before moving on to task 2.

This is also a great time to save, commit, and push up your work.
{{% /notice %}}




Ready for [Part 2]({{< relref "../part-2/index.md" >}})
Ready for [Task 2]({{< relref "../task-2/index.md" >}})
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "Part 2: Multiple Questions"
title: "Task 2: Multiple Questions"
date: 2023-06-20T10:39:25-05:00
draft: false
weight: 3
originalAuthor: Courtney Frey # to be set by page creator
originalAuthorGitHub: speudusa # to be set by page creator
reviewer: Rob Thomas
reviewerGitHub: icre8FreeCode
reviewer: John Woolbright
reviewerGitHub: jwoolbright23
lastEditor: # update any time edits are made after review
lastEditorGitHub: # update any time edits are made after review
lastMod: # UPDATE ANY TIME CHANGES ARE MADE
Expand All @@ -33,17 +33,17 @@ Now that your small app is working, expand it to deal with multiple questions. T
{{% /notice %}}

{{% notice blue "Note" "rocket" %}}
Make sure your loops work properly before moving on to part 3.
Make sure your loops work properly before moving on to task 3.

This is also a great time to save, commit, and push up your work.
{{% /notice %}}

## Testing Part 2
## Testing Task 2

In the terminal run `npm test`. This will run the autograding tests. The results will display in the terminal.

> To pass Part 2, you need to pass tests 7-10.
> To pass Task 2, you need to pass tests 7-10.
You should still pass tests 1-6 from Part 1.
You should still pass tests 1-6 from Task 1.

Move on to [Part 3]({{< relref "../part-3/index.md" >}})
Move on to [Task 3]({{< relref "../task-3/index.md" >}})
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "Part 3: Grade the Quiz"
title: "Task 3: Grade the Quiz"
date: 2023-06-20T10:39:25-05:00
draft: false
weight: 4
originalAuthor: Courtney Frey # to be set by page creator
originalAuthorGitHub: speudusa # to be set by page creator
reviewer: Rob Thomas
reviewerGitHub: icre8FreeCode
reviewer: John Woolbright
reviewerGitHub: jwoolbright23
lastEditor: # update any time edits are made after review
lastEditorGitHub: # update any time edits are made after review
lastMod: # UPDATE ANY TIME CHANGES ARE MADE
Expand All @@ -31,13 +31,13 @@ Some tips:

_(Number of Correct Answers) / (Number of Quiz Questions) * 100_

## Testing Part 3
## Testing Task 3

In the terminal run `npm test`. This will run the autograding tests. The results will display in the terminal.

> To pass Part 3, you need to pass tests 11-17.
> To pass Task 3, you need to pass tests 11-17.
You should still pass tests 1-10 from Parts 1 and 2.
You should still pass tests 1-10 from Tasks 1 and 2.

{{< rawhtml >}}
<img src="../images/AllTests-Pass.png" alt=" " width=60% />
Expand Down
4 changes: 2 additions & 2 deletions content/decisions-with-conditionals/studio/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Start out by creating the below variables with the given values. Remember to acc
We want to make sure that the following conditions are met in order for our shuttle to launch. Create a statement for each condition:
1. if `astronautCount` is no greater than 7
1. if `astronautStatus` is ready
1. if the `totalMassKg` is less than the `maximumMassLimit` of `85000`
1. if the `totalMassKg` is less than the `maximumMassLimit` of `850000`
1. if the `fuelTempCelsius` is no less than `-300` OR no greater than `-150`
1. if `fuelLevel` is at `100%`
1. if `weatherStatus` is `clear`
Expand All @@ -72,4 +72,4 @@ Once you have completed the above conditions, print out the following shuttle in

### Example Output

![Example Output of Successful Shuttle Launch](pictures/successful-shuttle-launch.png?classes=border)
![Example Output of Successful Shuttle Launch](pictures/successful-shuttle-launch.png?classes=border)
4 changes: 2 additions & 2 deletions content/functions/studio/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ flips the order of entries in the array.

## Part One: Reverse Characters

In the *composing functions* section, we examined a function that [revereses characters in a string]({{< relref "../reading/composing-functions/_index.md#the-reverse-function" >}}) using the `split` and `join` methods. Let's rebuild that function now.
In the *composing functions* section, we examined a function that [reverses characters in a string]({{< relref "../reading/composing-functions/_index.md#the-reverse-function" >}}) using the `split` and `join` methods. Let's rebuild that function now.
1. Define the function as `reverseCharacters`. Give it one parameter, which will be the string to reverse.
1. Within the function, `split` the string into an array, then reverse the array.
1. Use `join` to create the reversed string and *return* that string from the function.
Expand Down Expand Up @@ -126,4 +126,4 @@ Use these test cases.
1. length = 2, width = 4 (area = 8)
1. length = 14, width = 7 (area = 98)
1. length = 20 (area = 400)
{{% /notice %}}
{{% /notice %}}
5 changes: 5 additions & 0 deletions content/how-programs-work/reading/your-first-program/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,12 @@ We have used the phrase `Hello, World` as an example throughout this chapter bec
1. Line 32 `git push` sends our latest code up to GitHub.

We will learn more about these in a later chapter.
{{% /notice %}}

{{% notice blue Note "rocket" %}}
When writing your commit messages, you will encounter problems if you include punctuation inside of double quotes `"This wont work!"`.

If you have a strong desire to include punctuation, you must wrap your commit message inside of single quotes `'Like this!'`.
{{% /notice %}}

## Back to GitHub
Expand Down
6 changes: 3 additions & 3 deletions content/loops/studio/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ Your work will go into `solution.js`, but please feel free to explore the progra

2. Each ingredient can only be used ONCE.
3. Add each meal to the `meals` array once it is assembled.
4. To test your own solution, scroll down to another function defined in this file called `runProgram()`. Uncomment the lines that call the `mealAssembly` function and print the result. Run the command `node solution` to see how your work is progressing.
4. To test your own solution, scroll down to another function defined in this file called `runProgram()`. Uncomment the lines that call the `mealAssembly` function and print the result. Run the command `node index` to see how your work is progressing.

## Part B: Collect User Input

Update `askForNumber()` to add user input and validation.

1. Using a `while` loop, ask the user to select the number of meals to assemble. Validate the input to make sure it is an integer from 1 - 6.
2. Save the result to the `numMeals` variable returned by the function.
3. Test your solution to this part by returning to the `runProgram()` function in the file and uncommenting the section labelled for testing Part B. Run `node solution` to see the result.
3. Test your solution to this part by returning to the `runProgram()` function in the file and uncommenting the section labelled for testing Part B. Run `node index` to see the result.

## Checking Your Work

Expand Down Expand Up @@ -95,4 +95,4 @@ Write your code inside `generatePassword()`.
1. If `string1 = "ABCDEF"` and `string2 = "notyet"`, then the output will be "AnBoCtDyEeFt".
1. If `string1 = "LoOt"` and `string2 = "oku!"`, then the output will be "LookOut!".

{{% /notice %}}
{{% /notice %}}

0 comments on commit b3026a6

Please sign in to comment.