226k views
22 votes
Angelo's mother put $50 on his lunch card. He spends the same amount each day for lunch. Write a function that gives the amount of money remaining on Angelo's lunch card over time

1 Answer

11 votes

Answer:

50 - (x * d)

Explanation:

In this function we are only given one value, therefore, we will have two unknown variables in our function. One variable will be the number of days which will be represented by d. The other variable will be the amount of money he spends each day (x) which would be the same. Therefore, the function would simply be multiplying the two variables together and subtracting that from $50

50 - (x * d)

User Tdelev
by
6.5k points