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
The point of (18 ,0) lies on​
zysi [14]
This point lies on the x value
4 0
3 years ago
Read 2 more answers
Name the Python Library modules which need to be imported to
Marina CMI [18]

Answer:

i. site.py module

ii. random integer module

Explanation:

i. The exit() function is a function used to end a program in python and can only be called when the site.py module is present. The site.py module comes pre-installed with Python.

<u>So, the site.py module needs to be imported for the exit() function to be invoked.</u>

ii The randint() function is a function used to generate a random integer between two limits- a lower limit and a higher limit. The randint() function can be called when the random integer module is present.

<u>So, the random integer module needs to be imported to invoke the randint() function.</u>

5 0
3 years ago
What are three limitations of computer?​
Lady bird [3.3K]

Answer:

Explanation:

Three limittaions of computer are:

It requires reqular power supply to operate .

It needs instructions to perform a task.

It cannot memorize and recall.

8 0
3 years ago
To what extent are surrounded species able to stand the anthropogenic activities?
julsineya [31]

Answer:

At the current rate, surrounded animal species might not be able to stand anthropogenic activities in the nearest future.

Explanation:

<em>Anthropogenic activities are those human activities that causes change in the biophysical environment, ecosystems, biodiversity, and natural resources. It also includes global warming, mass extinction of animals and loss of bio-diversity and other global disasters brought about by human activities</em>.

<em>The main driving force of anthropogenic activities is the pressure brought about by the ever growing human population</em>. The earth is overpopulated by humans, and this pushes man to maximize his environment, even to the detriment of this environment. Animal species are hunted to extinction due to increasing demand for their meat, or ornaments gotten from these animals, or some of their body parts, perceived to hold medicinal power, industrial activities poison the environment and natural resources all around, and some ecology has been destroyed and native species population decimated, just because man felt he had to control his environment, sometimes by introducing foreign species he feels he needs.

If nothing is done to halt the current rate of anthropogenic activities, by controlling human population growth, man might end up occupying the planet all alone by himself with surrounding species utterly destroyed.

3 0
3 years ago
What does the format painter button in excel do
wlad13 [49]
The format painter button in excel copies formatting from one place and it applies it to another
7 0
4 years ago
Other questions:
  • After applying transitions to his presentation, Omar uses the Slide Show feature to view the them. He notices that the transitio
    9·2 answers
  • PriQueue inherits from Queue. In the implementation of the getMax() method in the PriQueue class, we need to read and write the
    5·1 answer
  • I am having trouble with logic gates(AND NOR,etc)
    8·2 answers
  • An enterprise DBMS is automatically capable of serving as a mobile DBMS. There are no special issues raised by mobility. True Fa
    11·1 answer
  • How do you send a private message on facebook to someone who is not your friend?
    9·1 answer
  • Trainers at Tom’s Athletic Club are encouraged to enroll new members. Write an application that allows Tom to enter the names of
    10·1 answer
  • Describe data center technology and its relevance to modern-day cloud computing. Support your opinion with cited information.( S
    14·1 answer
  • ICMP
    12·1 answer
  • Assume the availability of an existing class, ICalculator, that models an integer arithmetic calculator and contains:an instance
    12·1 answer
  • Write a program that requests the user input a word, then prints every other letter of the word starting with the first letter.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!