Friday
April 18, 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

probability - out of 250 students interviewed at a community college, 90 were ...
computer science 100 - which of the following are used in a traditional ...
computer - What does tenure track, part time instructor of computer science does...
Computer Science - Can anyone tell me where one could find help and advice for a...
Business English - What is the best reason to omit the reason for the refusal in...
Math help again... - I'm trying to set up the problem to this question, but for ...
Business Communications - What is the BEST reason to omit the reason for the ...
CSC 111 Intruduction to Computer Science - What does it imply to pursue a ...
English - Let's write down what you can do with the computer. 1. I use the ...
computer - You visit a website that has a streaming media presentation in the ...

Search
Members