Computers and Technology
Computers and Technology, 19.01.2021 19:30, capo5094

Read the following code, written to calculate an average: def main():
num1 = 83
num2 = 75
num3 = 99
average = num1 + num2 + num3 / 3
print("Average: + str(average))
main()
How can the average calculation be corrected in order to return the correct output? (5 points)

A) Change the division symbol to the multiplication symbol

B) Place parentheses around the variables to indicate the order of operation

C) Place quotation marks around the variable names in order to make a string literal

D) Use the numeric values instead of variable names

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 03:30, patience233
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
image
Computers and Technology, 24.06.2019 18:20, 12375819
Use a while-end loop in a script file to calculate the sum of the first n terms of the series: summation sign on the top n bottom k=1 : )^k * k^2 +5k)/3^k show the script file and the two results of n = 10 and n = 20.
Answers: 2
image
Computers and Technology, 25.06.2019 01:40, babydolltia28
The instantiation of an endpoint in a potential tcp connection is know as
Answers: 1
image
Computers and Technology, 25.06.2019 08:20, andykuzy5447
The main circuit board inside the system uit is called megaboard / true or false
Answers: 1
Do you know the correct answer?
Read the following code, written to calculate an average: def main():
num1 = 83
num2 =...

Questions in other subjects:

Konu
Mathematics, 07.11.2019 05:31
Konu
Mathematics, 07.11.2019 05:31