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 11:30
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
One of your customers wants you to build a personal server that he can use in his home. one of his concerns is making sure he has at least one backup of their data stored on the server in the event that a disk fails. you have decided to back up his data using raid. since this server is for personal use only, the customer wants to keep costs down. therefore, he would like to keep the number of drives to a minimum. which of the following raid systems would best meet the customer's specifications? a. raid 0 b. raid 1 c. raid 5 d. raid 10
Answers: 3
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
You know the right answer?
Read the following code, written to calculate an average: def main():
num1 = 83
num2...
Questions
question
Mathematics, 22.01.2021 21:20
question
Mathematics, 22.01.2021 21:20
question
Mathematics, 22.01.2021 21:20
question
Mathematics, 22.01.2021 21:20
question
Mathematics, 22.01.2021 21:20
question
Mathematics, 22.01.2021 21:20
Questions on the website: 13722359