Which of the following is an example of a single-outcome selection?
A. If testScore >= 60 Then
Display "That is a passing grade."
Else
Display "That is a failing grade."
End If
B. If hoursWorked > 40 Then
overtimeHours = hoursWorked - 40
overtimePay = overtimeHours * wageRate * 1.5
regularPay = 40 * wageRate
grossPay = regularPay + overtimePay
Else
grossPay = hoursWorked * wageRate
End If
C. If age >= 65 Then
discountRate = 0.10
End If
D. Method deposit(Numeric amt)
acctBal = acctBal + amt
Display "The new balance is: $" + acctBal
End Method
Answer: C
You might also like to view...
________ uses email messages or IMs that appear to be from those you do business with, such as your bank, credit card company, or social network
A) Phishing B) Cyberbullying C) Spoofing D) Pharming
How does the person performing data entry benefit if you add an input mask to a field?
What will be an ideal response?