subject

Trace the code below to find the two errors. One is a syntax error meaning the code will not run with it, the other is a runtime error, where the code will run but the output is incorrect.
subtotal = input("Enter total before tax:")
tax = .08 * subtotal
print("tax on" + subtotal + "is:" + str(tax))

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
Answers: 2
question
Computers and Technology, 24.06.2019 02:30
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
You know the right answer?
Trace the code below to find the two errors. One is a syntax error meaning the code will not run w...
Questions
question
Geography, 27.07.2019 01:30
Questions on the website: 13722359