# Tutor profile: Chris R.

## Questions

### Subject: Python Programming

You are given a non-empty list which contains the names and order of the rankings from a race with an unknown number of participants, write the code to print the name of the person who came in last. ** Name of the list is "rankings"

length = len(rankings) last_place = length - 1 loser = rankings[last_place] print("Last place: %s" % loser")

### Subject: Basic Math

Sally and Jimmy have saved 20 coins to buy bubblegum, If Sally has 10 quarters and Jimmy has 10 dimes how much money have they saved all together?

Sally has $$10$$ quarters : - one quarter is a worth $$25$$ cents or $$.25$$ - if Sally has $$10$$ of them then that's ten times the worth of one quarter - so Sally has this much money: $$ 10 * .25 $$ - $$ 10 * .25 = 2.50$$ - we know Sally has $2.50 Jimmy has $$10$$ dimes : - one dime is a worth $$10$$ cents or $$.10$$ - if Jimmy has $$10$$ of them then that's ten times the worth of one dime - so Jimmy has this much money: $$ 10 * .10 $$ - $$ 10 * .10 = 1.00$$ - we know Sally has $1.00 ***************************** To get what they have saved all together we need to take what Sally has and what Jimmy has: - Sally: $2.50 - Jimmy: $1.00 $2.50 + $1.00 = $3.50 ***************************** All together they have saved : $3.50

### Subject: Algebra

Simplify the following expression: $$(3x + 2)(x + 5)$$ Solve as if : $$x = 4$$

To simplify the expression let's start by using the FOIL technique: FOIL - First.Outside.Inside.Last $$ (3x + 2) (x + 5) $$ First (Product of the First term from each group) : $$ 3x * x = 3x^2 $$ Outside (Product of First term from group 1 and Second term from from group 2) : $$ 3x * 5 = 15x $$ Inside (Product of Second term from group 1 and First term from from group 2) : $$ 2 * x = 2x $$ Last (Product of the Second term from each group) : $$ 2 * 5 = 10 $$ ****************************************** Now add all of the products to get: $$ 3x^2 + 15x + 2x + 10 $$ ****************************************** Simplify by adding like terms : $$ 3x^2 + 17x + 10 $$ ****************************************** Solve $$ 3x^2 + 17x + 10 $$ as if : $$ x = 4 $$ ... $$ 3(4)^2 + 17(4) + 10 $$ --> $$ 3(16) + 17(4) + 10 $$ --> $$ 48 + 68 + 10 $$ --> $$ 116 + 10 $$ --> $$ 126 $$

## Contact tutor

needs and Chris will reply soon.