Reply embedded...
Thanks!! and have a nice day!!
Jaspreet
-----Original Message-----
From: Muhammad Nasir Nadeem [mailto:[EMAIL PROTECTED]
Sent: Monday, December 27, 2004 1:00 AM
To: [EMAIL PROTECTED]
Subject: [c-prog] Any body help me
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.
[Jaspreet Oberoi] What was the problem you faced? You cannot expect us
to leave our job and start doing your homework.
To unsubscribe, send a blank message to
<mailto:[EMAIL PROTECTED]>.
Yahoo! Groups Links
#####################################################################################
Note:
This message is for the named person's use only. It may contain confidential,
proprietary or legally privileged information. No confidentiality or privilege
is waived or lost by any mistransmission. If you receive this message in error,
please immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender. You must not, directly or indirectly,
use, disclose, distribute, print, or copy any part of this message if you are not
the intended recipient. MINDTECK (INDIA) LTD and any of its subsidiaries each reserve
the right to monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorized to state them to be the
views of any such entity.
Thank You.
#####################################################################################
To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/c-prog/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
