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: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass.cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array.c . run this program and observe the results.
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
This isn't about school but every time it tells me to watch an ad to unlock the answer to a question it prompts a survey and it just keeps loading. so i haven't been able to get answers for my tests in like a week.
Answers: 2
question
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
question
Computers and Technology, 25.06.2019 03:30
Which task should happen during the planning stage of a project
Answers: 2
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
Mathematics, 12.05.2021 21:50
question
English, 12.05.2021 21:50
Questions on the website: 13722361