Skip to main content
added 2 characters in body
Source Link
Cesare
  • 209
  • 1
  • 2
  • 7

I don't like how I am repeating the code that performs the operations. For instance, performAddition() and performMultiplication() both perform the same thingHowthing. How can I make this model better?

I don't like how I am repeating the code that performs the operations. For instance, performAddition() and performMultiplication() both perform the same thingHow can I make this model better?

I don't like how I am repeating the code that performs the operations. For instance, performAddition() and performMultiplication() both perform the same thing. How can I make this model better?

added 8 characters in body
Source Link
Cesare
  • 209
  • 1
  • 2
  • 7

I've written a model for an app that generates math facts such as additions and subtractions. You can instantiate this classkids have to solve by providing anevaluating the operation and the difficulty you pass to it at initialization.

I've written a model for an app that generates math facts such as additions and subtractions. You can instantiate this class by providing an operation.

I've written a model for an app that generates math facts kids have to solve by evaluating the operation and the difficulty you pass to it at initialization.

edited tags; edited title
Link
Cesare
  • 209
  • 1
  • 2
  • 7

Generate Model for math facts

deleted 676 characters in body
Source Link
Cesare
  • 209
  • 1
  • 2
  • 7
Loading
Source Link
Cesare
  • 209
  • 1
  • 2
  • 7
Loading