I want to make a C++ program which tells a firm's situation whether
it is running into losses, gaining profit or at break even point.


I want to create a class named as Firm having following attributes.

1: investment
2: units_produced 
3: units_sale      
4: per_unit_price

Take input of all the four attributes from the user.

Make a member function that will find out whether the firm is
running into losses, gaining profit or at break even point and
display an appropriate message on the basis of the profit it earns.

I want to use this formula to calculate profit is:

Profit = ((per_unit_price * units_sale) � investment)


Where a Firm cannot have more sale than production.

If the profit is greater than the investment then the firm is
gaining profit. On the other hand, it is running into losses if the
profit is less than the investment whereas it is at break even point
if both the profit and investment is equal.

Write setters and getters for all the four data members to set and
assign values. Write constructor to initialize the data members.

Also write destructor for the class Firm.

In order to make this I have faced a problem. So any body helps me
in making this.









To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to