Three methods, one receipt. One works out the subtotalfrom a price and quantity, one adds tax, one formats aline for printing. I want them to hand values to eachother rather than each printing their own bit.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
Console.WriteLine. Decide which, and say why.:F2 belongs in the method that displays.= instead.Widget x3 @ $4.50 = $13.50Tax (8%) = $1.08TOTAL = $14.583 × 4.50 is 13.50, and 8% of that is 1.08.
Your requirements list and your program file, named cc-receipt-total.