Answer to Question #310975 in C++ for Anna

Question #310975

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?


1
Expert's answer
2022-03-14T17:09:21-0400

Here is program:

int main()
{
	int earning = 1000;
	int machinecost = 6000;
	int salvage = 2000;
	cout << "Minimun life of the machine: " << (machinecost + salvage) / earning << endl;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment