subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:10
What a backup plan that you have created in a event you encounter a situation
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
The qwerty keyboard is the most common layout of keys on a keyboard
Answers: 3
question
Computers and Technology, 23.06.2019 07:00
1. you have a small business that is divided into 3 departments: accounting, sales, and administration. these departments have the following number of devices (computers, printers, etc.): accounting-31, sales-28, and administration-13. using a class c private network, subnet the network so that each department will have their own subnet. you must show/explain how you arrived at your conclusion and also show the following: all available device addresses for each department, the broadcast address for each department, and the network address for each department. also, determine how many "wasted" (not usable) addresses resulted from your subnetting (enumerate them).
Answers: 3
You know the right answer?
Read the following code, written to calculate an average: def main():
num1 = 83
num2 =...
Questions
question
Mathematics, 12.07.2019 01:50
Questions on the website: 13722363