Monday
July 28, 2014

Homework Help: computer science

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

First Name:
School Subject:
Answer:

Related Questions

Computer Programing & Logic Design - Submit pseudocode and a flowchart for 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 ...
pre calc - The Identity Function The Squaring Function The Cubing Function The ...
calculus - At the indicated point for the function, find the following. A ...
calculus - (1 pt) A new software company wants to start selling DVDs with their ...
calculus - (1 pt) A new software company wants to start selling DVDs with their ...
math - A new software company wants to start selling DVDs with their product. ...
math - A new software company wants to start selling DVDs with their product. ...

Search
Members