Asked by Dom

A babysitter takes care of 20 kids. When taking care of all the kids she gets paid $50 per kid. However, for every $5 more she charges, a kid leaves. How many kids should she babysit to max her profit?

I want to write a code that asks user to enter the charge per kid when taking care of all the kids, the increase in charge that causes a kid to leave, and an output that is the number of kids to babysit to max profit and what the profit would be at that number of kids. I want this done for a vba macro code.

Answers

Answered by MathMate
I suggest you give it a try and post any difficulties you encounter.
Programming is not as hard as it seems once you get started.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions