QuestionQ73

VerifiedSoftware Development Concepts

A user is writing code to calculate each worker’s amount of pay at a company. The pay rate is identical for all workers. The code will use the formula amount_of_pay = nunber_of_hours * pay_rate.

Which of the following should be used in the code to represent pay_rate?

Explanation

A constant represents a value that remains unchanged during program execution. Because the pay rate is the same for all workers, pay_rate is appropriately represented as a constant.

Community Discussion

No comments yet. Be the first to start the discussion!