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.









------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe : [EMAIL PROTECTED]

 
Yahoo! Groups Links

<*> To reply to this message, go to:
    
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4807
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> To visit your group on the web, go to:  
    http://groups.yahoo.com/group/Programmers-Town/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to