subject

Consider this program: cost1 = input(" enter the first expense: ") cost2 = input(" enter the second expense: ") print("your total for both expenses was", cost1 + cost2) if the user inputs β€œ10” for the first expense and β€œ20” for the second expense, what will the interpreter show in the final line when this program is run? if this result in not what the programmer intended, how would you explain what went wrong?

ansver
Answers: 1

Another question on Computers and Technology

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
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
question
Computers and Technology, 23.06.2019 17:10
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi,be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
What is the main difference between cloud computing and saas? cloud computing is a platform, and saas is software. cloud computing is software, and saas is a platform. cloud computing is a service, and saas is software. cloud computing is a service, and saas is a platform.
Answers: 1
You know the right answer?
Consider this program: cost1 = input(" enter the first expense: ") cost2 = input(" enter the secon...
Questions
question
Mathematics, 04.05.2021 22:20
question
Mathematics, 04.05.2021 22:20
question
Mathematics, 04.05.2021 22:20
Questions on the website: 13722361