I am writing a program in which we are inputting a purchase price and adding the shipping and handling charge to get a total price. When I add curPrice = curPrice + shipHandle; which would be 20 + 1.50 which should = 21.50 I get 201.5.
Try to use debugger to see what value is in curPrice and shipHandle.
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!