Question: Question #2 Please explain answer. D 2. Can you find the reason that the following pseudocode function does not return the value indicated in the

Question #2 Please explain answer.
D 2. Can you find the reason that the following pseudocode function does not return the value indicated in the comments? I/ The calcDiscountprice function accepts an item's price and // the discount percentage as arguments. It uses 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
