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 RangeBValue
Or we could hardcode it incorrectly as follows:
encThresh
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 cellrange value?
I hardcoded encouragement threshold by including the actual number in my code.
I dynamically coded encouragement threshold by only referring to its cellrange value on the spreadsheet.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
