computer science
posted by Terry .
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

computer science 
Steve
should return discountPrice, not discount
Respond to this Question
Similar Questions

computer science
Write a program that will input an item’s wholesale cost and its markup percentage. The program will output the item’s retail price. The program should repeat for several input values. For example, if an item cost is 5.00 and markup … 
Computer Programing & Logic Design
Submit pseudocode and a flowchart for the following programming exercise: Test Average and Grade Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average … 
Math :(
Can someone plz explain how to do this math project, Plz give me some examples! Directions: For this project, you will visit an online marketplace website and choose three different products that you might want. For each product, you … 
pre calculus
You have a $50 coupon from the manufacturer good for the purchase of a cell phone. The store where you are purchasing your cell phone is offering a 20% discount on all cell phones. Let x represent the regular price of the cell phone. … 
pseudocode app
Write the pseudocode for an application that allows a user to enter the price of an item and computes 8 percent sales tax on the item and prints out for the user the original price and the tax but not the total. 
PROGRAMMING
Create a C program that contains a function that computes the final price for a sales transaction and return that value to a calling method. The function requires three arguments: product price, salesperson commission rate and customer … 
Algebra
Dan works at a hardware store. The employee discount is determined by the formula d = 0.15 (c − 10 ). Use the inverse of this function to find the cost of the item for which Dan received an $18.00 discount. a. Find the inverse … 
Computer Science
"write a program that asks the user to enter the price of an item and rate of discount. If discount is 9%, display the final cost of item" What message do I display if its not 9%? 
programming
Create the logic for a program that calls a method that computes the final price for a sales transaction. The program contains variables that hold the price of an item, the salesperson's commission expressed as a percentage, and the … 
Information Technology (Pascal algorithm)
Ask the user to enter the discount percentage(rate) offered in a sale Accept the discount percentage from the user Ask the user to enter the price for three different sales item Accept the prices of the three sale items Compute the …