# Vba

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.

## Similar Questions

1. ### child care

what are 10/ some questions to ask your parents about life with kids for example; I have these ones do you like life now with kids what made you want kids were you ready for kids anymore suggestions?
2. ### Math

A survey finds that 38% of kids like tv, 24% like radio, and 13% like both. A.Find percent of kids that like tv but not radio. B.Find the percent of kids that like neither tv or radio. C.Find the percent of kids like either tv or radio …
3. ### Writing

I need help on fixing my paper. Could you grade me on a scale of 1 to 12. The World of Technology Technology, Technology, that’s all we use today. There’s Facebook, Twitter, Myspace, and so many more. My opinion on technology is …

What's the quickest amount of time that all four kids can get across a bridge with on kid always going back to get the other. 1 kid took 5 minutes 1 kid took 10 minutes 1 kid took 20 minutes 1 kid took 25 minutes
5. ### English

Volunteering at a day-care center. I have worked at a day-care center. I went there once a month. There were a lot of things to do. I took care of young children. I played with them. I changed their diapers and clothes. I washed the …
6. ### Computer Programming

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?
7. ### statistics

A study was conducted to count the different age groups of kids that usually play in a park on a Sunday morning. The following data was collected Years Old Number of Kids 1 3 2 22 3 8 4 16 5 9 a) List the simple events of the experiment. …
8. ### statistics

A study was conducted to count the different age groups of kids that usually play in a park on a Sunday morning. The following data was collected Years Old Number of Kids 1 3 2 22 3 8 4 16 5 9 a) List the simple events of the experiment. …
9. ### campbell drive

Tickets cost \$8.00 each for adults and \$2.50 each for kids, and the group paid \$46.50 in total. There were 6 fewer adults than kids in the group. Find the number of adults and kids on the trip. # of adults = # of kids =
10. ### English

In kids zones there is no new items for upcoming Eid festival still now.Some products quality are very poor.For example kids SKD salowar's inside seam is not well finished which can be inconvenient for kid's body.some motifs are not …

More Similar Questions