Did you get this piece of code as a template from your instructor? You should know that when they ask to increase multiplier by a factor of 10, the formula is something like this:
inc_mult = current_mult * 10This can be implemented in C++ using the longhand notation:
CODE
multiplier = multiplier * 10
or:
CODE
multiplier *= 10
The second method is a shorthand notation for multiplying and assigning at the same time. If you haven't realized it, the
* symbol is used for multiplication operations.
I won't post how to do the division operation, but you should be able to figure it out by looking at how it is done with multiplication. (Hint: use the
/ operator for division.
I also would recommend looking through the early parts of your programming textbook so you understand basic syntax rules of the language.