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?

Change the division symbol to the multiplication symbol
Place parentheses around the variables to indicate the order of operation
Place quotation marks around the variable names in order to make a string literal
Use the numeric values instead of variable names

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
The graph shows median weekly earnings for full-time workers according to education level. which can you not conclude?
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
Jason needs to learn a new web tool. he went through his books to understand more about it. now he wants hands-on experience with using that tool. what would him? jason can use websites where workspace is provided to test the results of your code.
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
Select all that apply. which of the following are proofreading options included in microsoft word? spell check find replace grammar check formatting check
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
You know the right answer?
Read the following code, written to calculate an average: def main():
num1 = 83
num2...
Questions
question
Physics, 20.11.2020 19:30
question
Mathematics, 20.11.2020 19:30