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
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
When entering functions, the square brackets, [], indicate required values
Indicate whether the statement is true or false
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
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)