0%
0 / 9 answered
Mathematical Expressions Practice Test
•9 QuestionsQuestion
1 / 9
Q1
A discount function checks if the final price is under a cap:
price = 120
discount = 0.25
cap = 100
finalPrice = price - (price * discount)
underCap = (finalPrice < cap) or (price < cap)
Which of the following evaluates to true given the code?
A discount function checks if the final price is under a cap:
price = 120
discount = 0.25
cap = 100
finalPrice = price - (price * discount)
underCap = (finalPrice < cap) or (price < cap)
Which of the following evaluates to true given the code?