Code in VMware Fusion Problem #2: Discount Calculator Given the cost of two items and a discount %, your code should calculate how much the users final cost is. Your output should be rounded to 2 deci
Code in VMware Fusion
Problem #2: Discount Calculator
Given the cost of two items and a discount %, your code should calculate how much the users final cost is. Your output should be rounded to 2 decimal places. You can use Math.Round or .ToString.
• User Input (Ask & Validate In Main Method, Use As Arguments): o Cost Of 1st Item
o Cost of 2nd Item
o Discount %
• Return Value From Custom Function:
o Total cost of bill.
• Result To Print To The Console In The Main Method:
o “With a X% discount your total is $Y” • Data Sets To Test
o Cost 1 – 10.00 Cost 2- 15.50 Discount % – 20
§ Results-“Witha20%discountyourtotalis$20.40”
o Cost 1 – 20.25 Cost 2- 37.75 Discount % – 10
§ Results-“Witha10%discountyourtotalis$52.20”
o Test one of your own and put all 3 of these test values in a multi-lined comment at the end of your code.

How it Works

1
It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.


2
Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.


3
After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.


4
Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!