Sale!

A department store is having a customer appreciation sale…solved

$15.00 $12.75

Category:

Description

5/5 - (2 votes)

A department store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on his or her total purchases. You are to develop pseudocode or C# code that will obtain the total dollars purchased from the user, determine the discount percentage, and display the total amount due. When the purchases are more than $400, the discount is 8%. When the purchases are $400 or less, the discount is 5%. Create a function called calcDiscount that will calculate and return the discount amount. Write the function and call it in the code