Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

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.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question