Write a DisplaySalesTax() method that receives the sales amount and tax rate as doubles, and calculates and displays the sales tax. The method does not return a value.

What will be an ideal response?


public static void DisplaySalesTax(double saleAmount, double taxRate)
{
double tax;
tax = saleAmount * taxRate;
WriteLine("The tax on {0} at {1} is {2}",
saleAmount.ToString("C"),
taxRate.ToString("P"), tax.ToString("C"));
}

Computer Science & Information Technology

You might also like to view...

MC Python provides module__________ , which can be used to read and write records in a file.

a) sys. b) records. c) cabinet. d) shelve

Computer Science & Information Technology

In an outline, ________ is the keyboard shortcut to decrease the list level

A) Tab B) Shift + Tab C) Ctrl + Tab D) Alt + Tab

Computer Science & Information Technology

When you reopen a workbook, the History worksheet will NOT automatically display

Indicate whether the statement is true or false.

Computer Science & Information Technology

Instagram is owned by which company?

A. Twitter B. Facebook C. Google D. none of these

Computer Science & Information Technology