subject

Read the following code: # Calculate average
average = numl + num2 + num3 / 3.0

There is an error in the code. How should the code be revised in order to get the correct output?

A:average = numl + num2 + num3 - 3.0

B:average = numl + num2 + num3 - 3.0

C: average = (numl + num2 + num3) / 3.0

D: average = numl + num2 + num3 / (3.0)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
Ihave 25$ on an itunes card and i need to buy spotify premium, i have no other payment method.
Answers: 2
question
Computers and Technology, 22.06.2019 11:40
Pthreads programming: create and terminate a thread write a c++ program that creates a thread. the main will display a message “hello world from the main”. the main will create a thread that will display a message “hello world from the thread” and then terminates with a call to pthread_exit()
Answers: 3
question
Computers and Technology, 23.06.2019 01:20
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
You know the right answer?
Read the following code: # Calculate average
average = numl + num2 + num3 / 3.0

T...
Questions
question
History, 24.04.2020 18:52
question
Health, 24.04.2020 18:52
question
Mathematics, 24.04.2020 18:52
Questions on the website: 13722362