133k views
2 votes
Victoria wants to hire a babysitter for the weekend for her three children she has two choices babysitter a charges $10 per child and $5 per hour. babysitter b charges $15 per child and $2 per hour. write a function for each babysitting section.

User Wandang
by
8.2k points

1 Answer

2 votes

Final answer:

To write a function for each babysitting option, we can use the formulas: Cost = (10 * number of children) + (5 * number of hours) and Cost = (15 * number of children) + (2 * number of hours).

Step-by-step explanation:

To write a function for each babysitting option, we can use the formula:

Function A: Cost = (10 * number of children) + (5 * number of hours)

Function B: Cost = (15 * number of children) + (2 * number of hours)

For example, if Victoria has 2 children and needs a babysitter for 4 hours:

Function A: Cost = (10 * 2) + (5 * 4) = 20 + 20 = 40

Function B: Cost = (15 * 2) + (2 * 4) = 30 + 8 = 38

User Cgokmen
by
8.4k points