Codetown General Hospital Patient Nutritional Data Program - Assessment Task 3
Description
Goal: allow users to view details of different diets offered by the hospital. This program provides a graphical user interface allowing the user to select a diet and see the amount of protein, carbohydrates, fat and kilojoules it offers (to two decimal places)
Outcome: by using this program, hospital staff can click on the relevant diet type and will be able to see the - protein, carb, fat and kilojoules required for the type of diet selected
Dependencies
Python 3.7 or higher: (ensure Python is installed and added to your system's PATH).
Operating System: Any OS that supports Python (e.g., Windows, macOS, Linux).
Terminal/Command Prompt: A basic terminal or command prompt is required to run the script.
Installing
-
Clone the repository using Git:
git clone https://gitlab.une.edu.au/bkim8/assessment-3.git
-
See image examples in the above link.
-
Or download the ZIP file from the repository and extract it.
Executing program
-
Run the Program:
- You must run the program in a Python environment.
- Enter dietGUI.py to run program in a terminal by typing into the terminal: python dietGUI.py
-
Input Data:
- There is no input data
-
View Results:
- user clicks on the type of diet, the nutritional requirements of the selected diet will be displayed on the screen under the heading 'The nutritional requirements' The user can see which diet they selected as it will be shown as a sub title underneath the main title 'Diet Nutritional Information'
How to use this program:
- open program:
- in the terminal enter
python dateGUI.py
-
the program will open in a new window.
-
select a diet by clicking on the button at the bottom of the program interface.
-
close program by simply closing the window.
Authors
Toni Kim at UNE - University of New England - COSC110 - Assessment Task 3
Contribution
Ideas for further development:
- Add additional functions developed in assessment 1 and 2. (e.g. user input functionality and output of optimal diet.)
License
This project is licensed under the GNU License - see the LICENSE.md file for details