Can you find the reason that the following pseudocode function does not return the value indicated in the comments?

// The calcDiscountPrice function accepts an item’s price and
// the discount percentage as arguments. It use those
// values to calculate and return the discounted price.
Function Real calcDiscountPrice(Real price, Real Percentage)
// Calculate the discount.
Declare Real discount = price * percentage

// Subtract the discount from the price.
Declare Real discountPrice = price – discount

// Return the discount price.
Return discount
End Function

2 answers

should return discountPrice, not discount
dwd
Similar Questions
    1. answers icon 1 answer
    1. answers icon 2 answers
    1. answers icon 1 answer
  1. Question: 21Which of the following functions will correctly return true if it is passed an odd integer value for x? I. function
    1. answers icon 1 answer
more similar questions