dayo92/projectOne

Wrong calculation

Closed this issue · 0 comments

Although this is not really a programming issue,
but your cost calculations are not correct:

double totalCost = calculateShape / SQUARE_FEET * cost;

If the user has an area of x square feet and the price for one square foot is y,
the total material cost would be just "x * y"

You could also add the total cost, combining material and labour cost and present it to the user :D