Question: As you know, hardcoding is when you put numbers in the code that might change. In this CalcTotal problem, several numbers could have been hardcoded

As you know, "hardcoding" is when you put numbers in the code that might change. In this CalcTotal problem, several numbers could have been hardcoded (but shouldn't have been). For example, we could code our encouragement threshold correctly, as follows:
encThresh = Range("B24").Value
Or we could hardcode it (incorrectly), as follows:
encThresh =10
This is just one example of a way to hardcode, and the variable names are not important. Did you hardcode the encouragement threshold, or did you include it dynamically in your code by referring to its cell/range value?
I hardcoded encouragement threshold by including the actual number in my code.
I dynamically coded encouragement threshold by only referring to its cell/range value on the spreadsheet.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!