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
Eva8 [605]
4 years ago
6

Write an expression that computes the average of the values 12 and 40.

Computers and Technology
1 answer:
Lady bird [3.3K]4 years ago
8 0

Answer:

The answer to this question is given below in the explanation section

Explanation:

The expression that computes the average of value 12 and 40 is given below:

average = (12+40)/2;

in programming language we can write this expression as like;

int average = (12+40)/2;

You might be interested in
A security administrator is implementing a SIEM and needs to ensure events can be compared against each other based on when the
Shalnov [3]

Answer:

The correct answer is option (a) TOTP

Explanation:

Solution

The correct answer is TOTP Because we need randomness and minor probability also change that's why TOTP (Time based One Time Password).

TOTP: A time-based one-time password (TOTP) refers a temporary pass code produced by an algorithm that utilizes the present time of day as one of its authentication factors.

Time-based one-time passwords are normally used for two-factor authentication and have seen growing assumption by cloud application providers.

7 0
3 years ago
Write an algorithm that gets as input your current credit card balance, the total dollar amount of new purchases, and the total
Sindrei [870]

Answer:

balance = float(input("Enter the current credit card balance: "))

purchases = float(input("Enter the amount of new purchases: "))

payments = float(input("Enter the amount of all payments: "))

unpaid = purchases - payments

if unpaid >= 0 and unpaid < 100:

   balance = balance + payments - purchases - (unpaid * 0.08)

elif unpaid >= 100 and unpaid <= 500:

   balance = balance + payments - purchases - (unpaid * 0.12)

else:

   balance = balance + payments - purchases - (unpaid * 0.16)

   

print("The balance is " + str(balance))

Explanation:

*The code is in Python.

Ask the user to enter the balance, amount of purchases, and amount of payments

Calculate the unpaid balance, subtract payments from purchases

Check the unpaid balance. If it is smaller than 100, calculate the new balance, add payments, subtract purchases and the 8% interest of unpaid balance. If it is between 100 and 500, calculate the new balance, add payments, subtract purchases and the 12% interest of unpaid balance. If it is greater than 500, calculate the new balance, add payments, subtract purchases and the 16% interest of unpaid balance

Print the balance

6 0
4 years ago
If you turn off system protection on a disk, windows ____ the restore points that are on your computer.
s344n2d4d5 [400]
Disabling System<span> Restore removes all previous </span><span>restore points.</span>
6 0
3 years ago
What changes do you need to a algorithm to compare 100 numberst
Aliun [14]

Answer:

It really depends - in general every data structure has its use.

Explanation:

Furthermore, traversing the list will be inefficient because the data items are not contiguous in memory, forcing the CPU to jump all over the RAM memory causing further slowdown.

3 0
4 years ago
1) The programmer who focuses on implementing the game mechanics, rules, and or other elements essential for gameplay is the a)
anygoal [31]

on 1) C

then 2) C

and 3) B

4 0
3 years ago
Other questions:
  • Your computer is slowing down because you’ve started a process that is taking most of the memory and CPU resources. Which of the
    7·1 answer
  • A company that wants to send data over the Internet has asked you to write a program that will encrypt it so that it may be tran
    6·1 answer
  • To quickly jump to the last cell in a worksheet press ____.
    15·1 answer
  • Create the following matrix M: 1 7 13 19 25 ?-3 9 15 21 27 5 11 17 2329By writing one command and using the colon to address ran
    8·1 answer
  • Find products that satisfy BOTH conditions below:______
    6·1 answer
  • ICD-10-CM diagnosis codes are entered in Block 21 of the CMS-1500 claim. A maximum of __________ ICD-10- CM codes may be entered
    14·1 answer
  • E-mail messages, instant messages (IMs), or text messages sent and/or received within an organization a. are not included on a r
    9·1 answer
  • Can some one give me a april fools joke i can do to my teacher
    12·1 answer
  • Let f(w) = 2w^3 - 5. Let z = 2. What is f(z)?​
    6·1 answer
  • What does a good résumé help you do?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!