Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab 3.04 what is it supposed to do? #410

Open
Dan-TEALS opened this issue Jun 27, 2022 Discussed in #363 · 0 comments
Open

Lab 3.04 what is it supposed to do? #410

Dan-TEALS opened this issue Jun 27, 2022 Discussed in #363 · 0 comments
Assignees
Labels
Bug IntroCS.2 Medium Severity Makes the lesson hard to use but has a workaround

Comments

@Dan-TEALS
Copy link
Contributor

Discussed in #363

Originally posted by jdonwells March 1, 2022
Lab 3.04 has sections Problem 1, Problem 2, Problem 3. Students are asked to decide if there is a problem in the code. But we never tell them what the code is supposed to do.

The example itself seems a bit contrived. I can't imagine anyone writing something like that. This is a bad example to have students study. Let's not do that.

For anyone trying to figure out what we are trying to show them:

  1. We are creating local variables in the function named the same as the global variables, but they are assigned after reference.
  2. We are creating local variables named the same as global variables, but they seem to be assigned the wrong values.
  3. We are using the global variables in the function such that your favorite pet is always cat.
@Dan-TEALS Dan-TEALS added Bug IntroCS.2 Medium Severity Makes the lesson hard to use but has a workaround labels Jun 27, 2022
@Dan-TEALS Dan-TEALS self-assigned this Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IntroCS.2 Medium Severity Makes the lesson hard to use but has a workaround
Projects
None yet
Development

No branches or pull requests

1 participant