Hi all,
Hope you all fine.This is my first topic and very simple one. I just want to know how to calculate the least price of a building model.
Ill get base price and finished area in square foot as input. From this, how to calculate the least price.
What I understood is least price=base price/finished area; If this is not correct, please help me to find out the formula for least price.
Below is the part of the statement asked in the question.
"Write a program that accepts as input the base price and the finished area in square feet of the three models. The program outputs the model(s) with the least price per square foot."
Though I do not know English well I think that you are right. You should find the minimum among three values obtained by calculating the expression base_price / finished_area
I was planning to printing each model
1.colonial least price=baseprice/finished area.
2 single-storey................................................
3. split entry...................................................
I never think that least price is to compare all building models and print in ascending order.