Post a New Question


posted by .

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

  • What? -

    Is this a computer programming class you're taking? If so, you'd best put Computer Programming in the subject line. No one here will know what "vba" stands for.

Answer This Question

First Name:
School Subject:

Related Questions

More Related Questions

Post a New Question