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

Two problem generators similar in structure: "Find Coefficient of Term" and "Evaluate Probability of Choice" Generators #138

Open
wants to merge 89 commits into
base: master
Choose a base branch
from

Conversation

NoahTheCorgi
Copy link
Collaborator

Some notes regarding implementation:

  • The "coefficient_of_term" generator asks the user to evaluate the coefficient of a general term of x and y with specific degrees from a binomial expansion
  • The "probability_of_choice" generator asks the user to evaluate the probability of an event that is defined as choosing specific combinations of things ("noun_choice")
  • The "probability_of_choice" generator randomly chooses from various noun types
  • The "probability_of_choice" generator randomly chooses from three different difficulties (indexed 0, 1, and 2) and expresses the correct answer in different ways, adhering to the chosen difficulty level.

details about exactly how to implement the generators as well as copyright and course material permissions if any.
…of books in shelves problems can be generated

The generate_question() in main.py now randomly creates the following three types of books in shelves questions.

1. How many ways to organize $a$ books in $b$ number of book shelves?

2. How many ways to organize $a$ books in $n$ out of $b$ bookshelves? (i.e. exactly $n$ out of $b$ shelves must be used.)

3. How many ways to organize $a$ books in $b$ number of bookshelves? ALL shelves must be used (i.e. there cannot be empty bookshelves.)
"string data" was fixed to "dictionary"
details about exactly how to implement the generators as well as copyright and course material permissions if any.
@NoahTheCorgi
Copy link
Collaborator Author

Adjusted the problem scenario for "coefficient_of_term" generator so that it is unique compared other generators that cover similar scenarios from before. This should give a good enough variation for the finding coefficient type problems.

@NoahTheCorgi NoahTheCorgi requested a review from a team as a code owner April 26, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Coefficient of a Term + Probability of Choice Type Problems Generators
2 participants