COM101 Coursework
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:
- Output number of meal records successfully read into your program
- Output a list of foods and their respective details
- Output a report detailing the total calorie count of all foods
- Output average serving weights based on the current number of entered food items stored
- Add a new food item to the current list and re-sort the list based on time
- Print a report detailing the number of items from each meal type
- 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
The Python debugger can be used to help during development of the software
python -m pdb coursework.py