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>.
Answer:Presentation layer
Explanation: Presentation layer is the sixth layer belonging to the OSI model . It has the functionality of presenting the data or information in a standard and formatted way.The syntax is usually error free , well defined and adequate and thus also called as syntax layer. Presentation layer works between the application layer and the network layer.
It also performs the services of compression, encryption, decryption etc.
Answer:
The first is to set .As soon as the timer is set,the microprocessor starts counting. When the number it counts to is the same as the number of cycles.
Answer:
total = 0
k = 1
while k <= 50:
total += k**2
k += 1
print(total)
Explanation:
Note: There some errors in the question. The correct complete question is therefore provided before answering the question as follows:
Use the variables k and total to write a while loop that computes the sum of the squares of the first 50 counting numbers, and associates that value with total. Thus your code should associate 1*1 + 2*2 + 3*3 +... + 49*49 + 50*50 with total. Use no variables other than k and total.
The answer is now explained as follows:
# Initialize k which is the number of term
k = 1
# Initialize total which is the sum of squares
total = 0
# Loop as long as k is less than or equal to 50.
while (k <= 50):
# Add the square of k to total in order to increase it
total = total + k * k
# Increase the value of k by one.
k += 1
# Finally, output total
print (total)
Answer:No
Explanation:
Put no because there is nothing that she can do to stop it.