A machine is purchased which will produce earning of Rs.
1000 per year while it lasts. The machine costs Rs. 6000 and
will have a salvage of Rs. 2000 when it is condemned. If 12
percent per year can be earned on alternate investments
what would be the minimum life of the machine to make it a
more attractive investment compared to alternative
investment?
Here is program:
int main()
{
int earning = 1000;
int machinecost = 6000;
int salvage = 2000;
cout << "Minimun life of the machine: " << (machinecost + salvage) / earning << endl;
}
Comments
Leave a comment