My Final Project: Calorie Counter

Slides:



Advertisements
Similar presentations
Noadswood Science,  To know how to use Python to produce windows and colours along with specified co-ordinates Sunday, April 12, 2015.
Advertisements

Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Pasewark & Pasewark 1 Access Lesson 4 Creating and Modifying Forms Microsoft Office 2007: Introductory.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
XP Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Collecting Data for Well-Designed Forms Chapter 4 “Making.
ACCESS Part 2. OBJECTIVES  Use the Form Wizard  Create a split form  Use Form Layout View  Add fields to a form  Modify form controls  Create calculations.
Chapter 8: Writing Graphical User Interfaces Visual Basic.NET Programming: From Problem Analysis to Program Design.
Nutrition Log Assignment 8 th Grade Health. Essential Question  How do my diet and exercise affect me?
Graphical User Interface You will be used to using programs that have a graphical user interface (GUI). So far you have been writing programs that have.
Microsoft Access 2000 Presentation 3 Creating Databases Part II (Creating Forms)
1 Lesson 18 Managing and Reporting Database Information Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
Microsoft Access 2010 Chapter 4 Creating Reports and Forms.
Lesson 3 - The Entry Box.. Last week We produced a Tkinter window with a label and a button Now we are going to create a new program that creates a Button.
FoodWise Product Walk-Through Demonstration. FoodWise ? ? ? What is FoodWise? New diet analysis program from McGraw-Hill Based upon professional program.
Creating visual interfaces in python
Guide to Programming with Python
USING PYTHON AND VISUAL PYTHON TO TRACK HEALTH BY, CHASE FORTIER.
Go to enquos.com & click Register to register for your enquos account enquos.com Enter your activation code here.
Development Environment
Introduction to Programming
Wholesome App MaryJane Fuhrer.
Introduction to Programming
Topics Graphical User Interfaces Using the tkinter Module
PYGAME.
Graphical User Interfaces (GUIs)
Chapter 8: Writing Graphical User Interfaces
Building a User Interface with Forms
Tutorial 10 – Class Average Application Introducing the Do…Loop While and Do…Loop Until Repetition Statements Outline Test-Driving the Class Average.
Developing Forms and Subforms.
Introduction to Microsoft Access
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Managing Worksheets And Workbooks
3.01 Apply Controls Associated With Visual Studio Form
Cartography and Labeling
Word and the Writing Process
Quick Guide for Offline Reports
Microsoft Office Illustrated
Creating and Editing a Worksheet
Comprehend. Create. Communicate. Achieve More.
CISC101 Reminders Grading of Quiz 4 underway.
Please use speaker notes for additional information!
GUI Using Python.
Fundamentals of Python: From First Programs Through Data Structures
Tkinter Python User Interface
HTML Forms and User Input
This Week: Tkinter for GUI Interfaces Some examples
Chapter 4 Creating Reports and Forms
Please use speaker notes for additional information!
Loops CIS 40 – Introduction to Programming in Python
I210 review.
Introduction to TouchDevelop
Python 21 Mr. Husch.
Introduction to Programming
Fundamentals of Programming I Windows, Labels, and Command Buttons
Topics Graphical User Interfaces Using the tkinter Module
Computer Science 111 Fundamentals of Programming I
Basic Lessons 5 & 6 Mr. Kalmes.
1 Word Processing Part I.
Exploring Microsoft® Office 2016 Series Editor Mary Anne Poatsy
Python 10 Mr. Husch.
Introduction to Programming
Shelly Cashman: Microsoft Access 2016
Unit J: Creating a Database
Assignment 3 Querying and Maintaining a Database
Presentation transcript:

My Final Project: Calorie Counter By Chase Fortier

Background and Motivations There are currently many applications and websites available that help track one’s health and fitness in a variety of ways. I am interested in health and fitness, which motivated me to try to create my own calorie counter to keep track of one’s daily food intake. My limited prior background in python motivated me to explore it’s functions

General display

Tools Used Dictionary Labels (Tkinter Widget) Each food defined as a list in the food dictionary. Lists stored in format [# calories per serving,” serving size”] Labels (Tkinter Widget) Used to prompt the user on what to enter Also used to display results Attributes: Location (grid) to create logical flow, Text Color (fg) to make clear what should be entered next, Text- prompts changed at certain points, Appearance (Relief) makes it either flat, raised, or indented Entry Boxes (Tkinter Widget) Allow user to input text within the window rather than into the shell Attributes: location (grid) Buttons (Tkinter Widget) Pressing and release of button linked to a command- allows entry to be input and program to continue Attributes: location (grid), Size (height and width), Text (Enter, Add, etc.)

Capabilities of the program Changing font colors guide the user to input into specific entry boxes If a food listed in the dictionary is entered, the program retrieves the serving size, which is then displayed to the user If the food is not in the dictionary, the program prompts them to enter the number of calories per servings Number of calories consumed is calculated by multiplying the stored or entered value for # of calories per serving * # of servings Foods entered and corresponding calories is displayed and updated each time a new entry food is completed When the used clicks “Finish and Calculate”, the values for the number of calories consumed of each food are added together, and then the total number is displayed in the window

Outcome

Challenges Limited background in python Incorporating python program into the Tk window Raw_input  Entry Boxes Print  Changing Labels Loops  Buttons Keeping track of specific variables and changing their value depending on user input. Learning how attributes can be manipulated

Improvements to be made Allow floats to be entered instead of integers Account for user error: Function for if the number of calories or number of servings entered is not a number Only display the Label/Entry Box/ and Button for a single step at a time- cause others to disappear and reappear as the program progressed Incorporate nutritional values into dictionary and display daily intake of nutrients Create a larger dictionary with more specific foods i.e. cooked broccoli vs. uncooked broccoli

THANK YOU! QUESTIONS?