Tuesday

January 27, 2015

January 27, 2015

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

// 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

- computer science -
**Steve**, Thursday, November 22, 2012 at 7:59pmshould return discountPrice, not discount

**Answer this Question**

**Related Questions**

pseudocode app - Write the pseudocode for an application that allows a user to ...

PROGRAMMING - Create a C program that contains a function that computes the ...

programming - write a pseudocode to accept item name, price, and quality from a ...

Computer Programing & Logic Design - Submit pseudocode and a flowchart for the ...

computer science check - Which of the following examples correctly describes the...

Calculus - Let f be a one-to-one function whose inverse function is given by the...

Math 11u - A Computer company has been selling 1200 computer games per week at $...

C++ programming computer - I'm having some trouble trying to program these ...

Algebra - Dan works at a hardware store. The employee discount is determined by ...

IT - Make a C program that accepts an integer value at the main method from the ...