Create a function called calcdiscount that will calculate


Assignment

PART 1: A retail 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 $200, the discount is 20%. When the purchases are $200 or less, the discount is 10%.

 

PART 2: Create a function called calcDiscount that will calculate and return the discount amount. Write the function and call it in the code.

Solution Preview :

Prepared by a verified Expert
DOT NET Programming: Create a function called calcdiscount that will calculate
Reference No:- TGS02146728

Now Priced at $40 (50% Discount)

Recommended (96%)

Rated (4.8/5)