1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
IRINA_888 [86]
3 years ago
9

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)
Computers and Technology
1 answer:
vodka [1.7K]3 years ago
4 0

Answer:

Option C: decTotal = decSubtotal + GetSalesTax(decSubtotal)

Explanation:

To get sales tax, we need a function can process a subtotal amount and return the tax values. By presuming<em> GetSalesTax()</em> is a function that will return a tax value, this function will expect decSubtotal as the input parameter to the function. Otherwise, there will be no values processed in the function.

The statement  <em>decTotal = decSubtotal + GetSalesTax(decSubtotal)  </em>will invoke function<em> GetSalesTax()</em> by passing<em> decSubtotal </em>as argument. Next the return value of the function will be added with decSubtotal and the summation amount assigned to the variable <em>decTotal</em>.

You might be interested in
4.
KATRIN_1 [288]

Income inequality and  Digital literacy prevents many people from having access to technology and the Internet.

<h3> How does digital system affect people's lives?</h3>

People do not have access to internet because of poor economic and social problems, such as fewer job opportunities, less competitive economies and others.

Other Factors such as digital literacy and low income levels, geographical restrictions, lack of zeal to use technology are known to have contributed to the digital division in the country.

Learn more about Income inequality from

brainly.com/question/24554155

6 0
3 years ago
Ventaja que implica usar funciones en las hojas de calculo
lys-0071 [83]

Answer:

Explanationeeigrtghh:

baba booey

8 0
3 years ago
Configuring a firewall to ignore all incoming packets that request access to a specific port is known as ____.
Sati [7]

Answer: Logical Point Blocking

Explanation:

4 0
1 year ago
Imagine that you are a professional white hat hacker, testing a company’s system to make sure they are ready for attacks. What m
liberstina [14]

Answer:

A white hat hacker, or ethical hacker, uses penetration testing techniques to test an organization's information technology

Explanation:

3 0
2 years ago
Which computer career field enables you to create and design interactive multimedia products and services?
rjkz [21]
I think its graphic design
3 0
4 years ago
Other questions:
  • Time complexity: Be sure to show your work. Suppose that a particular algorithm has time complexity T (n) = 10 ∗ 2n, and that ex
    7·1 answer
  • Which of the following statements isNOT true about abstract data types (ADTs)?A list is anexample of an ADT.ADTs hide theimpleme
    7·1 answer
  • How is a technical certificate like a computer-related associate degree?
    12·2 answers
  • All of the following municipal securities are quoted on a yield basis EXCEPT: A) term bonds. B) secured bonds. C) tax-anticipati
    10·1 answer
  • You use the ____ button if you want to specify subtotals or other calculations within the wizard.
    12·1 answer
  • Join me to play mm2<br><br><br>in r0bl0x​
    6·2 answers
  • Explain steps in creating a main document for from letter. <br>​
    5·1 answer
  • Thinking about the career cluster, "Information Technology", which of these careers would typically NOT be included? (Choose thr
    10·2 answers
  • Irma bought a gaming computer at Bestbuy 3 years ago and it’s been on ever since. Her computer is staring to feel unstable and a
    10·1 answer
  • ________ is a group meeting-based process for requirements collection. a. Reverse engineering b. Joint application design c. Hum
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!