Case-Based Critical Thinking QuestionsCase 1: MTN OutdoorYou have just started working for MTN Outdoor as a programmer. Your first assignment is to review and correct various code to use sub procedures and/or functions.
An application needs to calculate sales tax for purchases. You decide to simplify the code by putting the sales tax calculation in a function. The returned value from the function is then added to the Subtotal, and the result is stored in the decTotal variable. Which of the following statements will call the GetSalesTax function and return a value to be used in the Total calculation?

A. decTotal = decSubtotal + GetSalesTax()
B. decSubtotal + GetSalesTax(decSubtotal)
C. decTotal = decSubtotal + GetSalesTax(decSubtotal)
D. decTotal = decSubtotal + GetSalesTax(decSubtotal As Decimal)


Answer: C

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT a goal in conducting a site survey?

A. determine the best location for APs B. locate unauthorized APs C. make the network secure D. determine the cost of the APs

Computer Science & Information Technology

When entering functions, the square brackets, [], indicate required values

Indicate whether the statement is true or false

Computer Science & Information Technology

Page numbers in the body of the report are generally positioned at the ____.

A. bottom center B. bottom right C. top center D. top right

Computer Science & Information Technology

Aggregation and increased access to information have become lucrative in large part due to the growth and success of social networking and the Internet.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology