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...
In the Bully algorithm, a recovering process starts an election and will become the new coordinator if it has a higher identifier than the current incumbent. Is this a necessary feature of the algorithm?
What will be an ideal response?
Which is true about web-based application software?
A) It is installed by the computer manufacturer. B) It is always free. C) It is stored completely on a web server instead of your hard drive. D) It does not need an Internet connection.
A(n) ________ is a single unit with the mailing address fields positioned in correct mailing format
A) Address Block B) works cited page C) title field D) data source
Information stored in a computer's RAM is ________.
a. permanent b. temporary c. non-volatile d. slower than secondary memory