subject

Read the following code, written to calculate an average: def main(): num1 = 85 num2 = 95 num3 = 91 average = num1 + num2 + num3 / 3 print("Average: " + str(average)) main() Which line of code has an error and why? average = num1 + num2 + num3 / 3; It does not use quotation marks to indicate the string literal. average = num1 + num2 + num3 / 3; It does not follow the proper order of operations. print("Average: "str(average)); It requires an equal sign to properly calculate the output. print("Average: "str(average)); It requires a float() function to properly display the output

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
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
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
You know the right answer?
Read the following code, written to calculate an average: def main(): num1 = 85 num2 = 95 num3 = 91...
Questions
question
Computers and Technology, 01.08.2019 01:00