Presentation is loading. Please wait.

Presentation is loading. Please wait.

CALORIE PROJECT BY SAMANTHA SILVA. Calorie Program Description A mini-survey that asks yes/no questions User answers questions about activities that they.

Similar presentations


Presentation on theme: "CALORIE PROJECT BY SAMANTHA SILVA. Calorie Program Description A mini-survey that asks yes/no questions User answers questions about activities that they."— Presentation transcript:

1 CALORIE PROJECT BY SAMANTHA SILVA

2 Calorie Program Description A mini-survey that asks yes/no questions User answers questions about activities that they practice during a typical day User answers questions about junk foods that they eat in a typical day Based on a 2000 calorie diet of a 150lb person, program calculates the calorie gain/loss during the day. Program then converts calorie gain/loss into the equivalent pound gain/loss

3 ACTIVITIES Activities and their respective calorie loss. These are the values used within the program (if you’re wondering how the calories were calculated) The amount of calories lost in various activities (for an average 150lb. person) ActivityCalories lost (per hour) Playing competitive basketball 545 Playing Tennis460 Riding a bike at 9.4 mph420 Riding a bike at 5.5 mph420 Walking239 Playing competitive football 614 Rollerblading477

4 JUNK FOODS These values were used to calculate the amount of calories consumed per junk food Warning: avoid these!!! The amount of calories gained through the consumption of various junk foods Junk foodCalories (per serving) McDonald’s Big Mac™590 McDonald’s cheeseburger 330 Regular size Snickers™ bar 280 ice cream (one cup)340 One small bag of chips150 Three chocolate cookies 160 12oz. Coca-Cola™ or Sprite™ 210

5 Compound Interest Program By Alecia

6 Compound Interest What is compound interest? Compound Interest is a common type of interest in the world today which takes into account an interest rate, an original principal, and the number of times per year that interest is compounded. Compound Interest differs from simple interest in that in simple interest, interest is only paid on the original principal, whereas in compound interest, interest is paid on the balance as a whole (original principal as well as past interest payments) Compound Interest will always return a finite balance

7 The Compound Interest Program The Compound Interest Program: Takes values for the principal, rate, time, and number of times compounded per year from the user Calculates the balance Graphs the balance over time at that specific interest and compounding rate Calculates the balance if the interest were compounded continuously Calculates the time it would take for the principal to double

8 Formulas The Compound Interest program is built on the principle of the following formulas, where P is the principal, A is the balance, r is the rate in percentage (ex..07), n is the number of times compounded, and t is the time: Compound interest formula: A = P (1 + r/n)^nt Continuous compound interest formula: A = Pe^rt Principal doubled formula (derived from Compound interest formula): t = (log 2)/ (n * log ( 1 + (r/n)))

9 CREDITS  Calorie Project  Samantha  Compound Interest Project  Alecia  Presentation  Alecia and Samantha  Special Thanks to Mr. Goral for helping on the projects


Download ppt "CALORIE PROJECT BY SAMANTHA SILVA. Calorie Program Description A mini-survey that asks yes/no questions User answers questions about activities that they."

Similar presentations


Ads by Google