CALORIE PROJECT BY SAMANTHA SILVA. Calorie Program Description A mini-survey that asks yes/no...

9
CALORIE PROJECT BY SAMANTHA SILVA

Transcript of CALORIE PROJECT BY SAMANTHA SILVA. Calorie Program Description A mini-survey that asks yes/no...

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

CALORIE PROJECT

BY SAMANTHA SILVA

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

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

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

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 variousactivities (for an average 150lb. person)

Activity Calories lost (per hour)

Playing competitive basketball

545

Playing Tennis 460

Riding a bike at 9.4 mph 420

Riding a bike at 5.5 mph 420

Walking 239

Playing competitive football

614

Rollerblading 477

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

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 food Calories (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 chips 150

Three chocolate cookies

160

12oz. Coca-Cola™ or Sprite™

210

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

Compound InterestProgram

By Alecia

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

Compound InterestWhat 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

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

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

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

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)))

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

CREDITS

Calorie Project Samantha

Compound Interest Project Alecia

Presentation Alecia and Samantha

Special Thanks to Mr. Goral for helping on the projects