Skip to content

kbobs/com101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

com101

COM101 Coursework

Requirements

You should attempt to develop the following functionality using Python: • Read in data from a text file containing food items and store the data in a list. • Implement a set of menu options:

BASIC FEATURES

  1. Output number of meal records successfully read into your program
  2. Output a list of foods and their respective details
  3. Output a report detailing the total calorie count of all foods
  4. Output average serving weights based on the current number of entered food items stored

ADVANCED FEATURES

  1. Add a new food item to the current list and re-sort the list based on time
  2. Print a report detailing the number of items from each meal type
  3. Query the list by providing a saturated fat threshold above which food items are returned

• The user should remain within the program until they select a menu option to quit

## Prerequisites

  • Python 3.7
  • Pip3
  • VirtualEnv

## Configuring Python 3.7

This software is developed using Python 3.7 using a virtual environment to manage Python versions.

To configure the Virtual environment:

virtualenv venv

Activating the venv

source venv/bin/activate

Debugging

The Python debugger can be used to help during development of the software

python -m pdb coursework.py

About

COM101 Coursework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages