subject

Read the following code: # Calculate totalCost of itemA with 6.5% tax
totalCost = itemA + .065

There is an error in the code. How should the code be revised in order to get the correct output?

totalCost = itemA * 0.065
totalCost = (itemA) + 0.065
totalCost = itemA * ( itemA + 0.065)
totalCost = itemA + (itemA * 0.065)

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:30, ParallelUniverse
Which of the statements below is true? the formatting, standard, and drawing commands are unavailable. the formatting, standard, and drawing commands have been used. the formatting, standard, and drawing toolbars are displayed. the formatting, standard, and drawing toolbars are hidden.
Answers: 1
image
Computers and Technology, 22.06.2019 15:00, vladutraileanu7599
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
image
Computers and Technology, 22.06.2019 19:00, alyssashae1818
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, cravens511peeelg
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
You know the right answer?
Read the following code: # Calculate totalCost of itemA with 6.5% tax
totalCost = itemA + .06...

Questions in other subjects:

Konu
Physics, 11.07.2019 06:30