Pseudocode Task

Hint: This pseudocode defines a procedure to calculate the discounted price of an item based on the original price and discount percentage entered by the user. It converts the inputs to numbers, calculates the discount amount, and then subtracts it from the original price to get the final discounted price. The final price is then displayed to the user.

FUNCTION calculate_discounted_price:
    PRINT "Enter the original price of the item:"
    INPUT original_price_str
    PRINT "Enter the discount percentage (e.g., 10 for 10%):"
    INPUT discount_percentage_str
 
    price = NUMBER(original_price_str)
    discount_rate = NUMBER(discount_percentage_str)
 
    discount_amount = price * (discount_rate / 100)
    final_price = price - discount_amount
 
    PRINT "The discounted price is: " + STRING(final_price)
END FUNCTION