Well I see that as a potential interpreting issue. When I originally coded the program I was under the assumption that if the surface area is over 1000 sq. inches that a fee of $75 would be added and if the surface area is over 2000 sq inches, that a $125 would be added and only a $125, not the $75 as well. With your current code, you will be charging the customer $200 extra. But I guess that is an interpretation issue, not coding. Otherwise it seems fine. Glad you learned something.Code:if (area > 1000) price += 75; if (area > 2000) price += 125;




Reply With Quote