From the course: Teaching Future-Ready Students

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

The tip calculator

The tip calculator

From the course: Teaching Future-Ready Students

Start my 1-month free trial

The tip calculator

- In this video I'm going to demonstrate how to teach variables with Math by assigning students to create a tip calculator using a spreadsheet, and simple formulas. Anyone can use simple Algebra to calculate a tip, using the following formula. Let's create a variable, T, that stands for the tip. We'll create B that's going to stand for the bill. And R will stand for the tip rate that we choose to tip our waiter. The mathematical formula that calculates the tip based upon the bill and the rate, is as follows. T equals B times R divided by 100. We need to divide it by 100 because the rate is actually a percentage. Many basic Algebra lessons will cover similar material. However, when we build this into a programming lesson, the variables become dynamic. And seeing the numbers change in real time provides students the satisfaction of actually building a useful tool with Math and programming concepts. The simplest way to build a tip calculator is to use a spreadsheet. Excel certainly…

Contents