Posted by **Terry** on Wednesday, November 21, 2012 at 9:55pm.

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

## Answer This Question

## Related Questions

- PROGRAMMING - Create a C program that contains a function that computes the ...
- Algebra - Dan works at a hardware store. The employee discount is determined by ...
- Computer Science - "write a program that asks the user to enter the price of an ...
- programming - Create the logic for a program that calls a method that computes ...
- computer science - Write a program that will input an item’s wholesale cost and ...
- pre calculus - You have a $50 coupon from the manufacturer good for the purchase...
- pseudocode app - Write the pseudocode for an application that allows a user to ...
- Math - 2) A car dealership advertises a 15% discount on all its new cars. In ...
- Math - ) A car dealership advertises a 15% discount on all its new cars. In ...
- Math :( - Can someone plz explain how to do this math project, Plz give me some ...

More Related Questions