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, 22.06.2019 11:00
Eva has many contacts on the professional networking site she uses which contacts are considered second degree
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
You know the right answer?
Consider this program: cost1 = input(" enter the first expense: ") cost2 = input(" enter the secon...
Questions
question
Spanish, 28.06.2019 22:20
question
Mathematics, 28.06.2019 22:20
Questions on the website: 13722362