Question: Select all that apply. Assume you are writing a program that calculates a user's total order cost that includes sales tax of 6 . 5

Select all that apply. Assume you are writing a program that calculates a user's total order cost that includes sales tax of 6.596. Which of the following are advantages of using a named constant to represent the sales tax instead of simply entering 0.065 each time the tax is required in the code?
It wall be easier for another programmer who may need to use this code to understand the purpose of the number wherever it is used the code.
the tax amount changes to 7.0%, the value will only have to be changed in one place.
It allows the end-user to always see the value of the sales tax.
It avoids the risk that any change to the value of sales tax will be made incorrectly or that an instance of the tax value might be missed as might occur if the number had to be changed in multiple locations.
 Select all that apply. Assume you are writing a program that

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!