GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — app-ideas/Projects/3-Advanced/Calorie-Counter-App.md at master · Pranshu-Raj/app-ideas

Expand file tree

/

Calorie-Counter-App.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
50 lines (38 loc) · 2.25 KB
/

Calorie-Counter-App.md

Copy path

File metadata and controls

50 lines (38 loc) · 2.25 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Calorie Counter

Tier: 3-Advanced

Getting and staying healthy requires a combination of mental balance, exercise, and nutrition. The goal of the Calorie Counter app is to help the user address nutritional needs by counting calories for various foods.

This app provides the number of calories based on the result of a user search for a type of food. The U.S. Department of Agriculture MyPyramid Food Raw Data will be searched to determine the calorie values.

Calorie Counter also provides you, the developer, with experience in transforming raw data into a format that will make it easier to search. In this case, the MyPyramid Food Raw Data file, which is an MS Excel spreadsheet, must be downloaded and transformed into a JSON file that will be easier to load and search at runtime (hint: take a look at the CSV file format).

User Stories

  • Developer will create a JSON file containing the food items to be searched. This will be loaded when the app is started.
  • User can see an panel containing a food description input text box, a 'Search' button, and a 'Clear' button.
  • User can enter search terms into the food description input text box.
  • User can click on the 'Search' button to search for the matching food.
  • User can see a warning message if no search terms were entered.
  • User can see a warning message if no matches were found.
  • User can see a list of the matching food items, portion sizes, and calories in a scrollable results panel that is limited to 25 entries.
  • User can click on the 'Clear' button to clear the search terms and results list.

Bonus features

  • User can see the count of the number of matching food items adjacent to the results list.
  • User can use a wildcard character in search terms.
  • User can see more than 25 entries from a search by clicking a Down icon button to add more matching food items to the search results list.
  • Developer will implement load the MyPyramid data into a database or a data structure other than an array for faster searching.

Useful links and resources

MyPyramid Food Raw Data

Example projects

Food Calculator

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.