Python Program for Nutrition Policy Assignment
Programming Task 3
Must Complete: Yes
Weight: 15%
Assessment Notes: Programming task. All assignments must be attempted.
This assessment relates to:
Learning Outcomes 1 2 3 6
Aims
- Develop a Python program to solve a problem
- Follow good program development and coding style practices
- Develop a Graphical User Interface
Instructions
Write a Python program to solve the following problem. Your solution should include a readme.md file (which includes details of how to run your assignment) and your Python program in a file named diet_gui.py, and be submitted as a single .tgz file named pt3.tgz. You should ensure your solution works using the Python 3 interpreter on turing.
Problem
Thanks to your previous programs, Codetown Central Hospital has implemented their new nutrition policy. All is going well, but some staff need to know the details of the different diets offered by the hospital. The hospital manager has asked you to implement a graphical user interface that allows the user to select a diet and see the amount of protein, carbohydrates, fat, and kilojoules it offers (to two decimal places).
The diets that have been identified are:
Diet | Protein (g) | Carbohydrates (g) | Fat (g) |
Normal | 32.50 | 60.00 | 40.86 |
Oncology | 35.00 | 52.50 | 37.63 |
Cardiology | 32.50 | 30.00 | 26.88 |
Diabetes | 20.00 | 27.50 | 27.95 |
Kidney | 15.00 | 55.00 | 23.65 |
Note: These values are taken from Ileri, Y. Y., & Hacibeyoglu, M. (2018). Advancing competitive position in healthcare: a hybrid metaheuristic nutrition decision support system. International Journal of Machine Learning and Cybernetics, 1-14.
Note that program specifications are not always clear. If you are uncertain about any aspect, you are typically better off asking than making assumptions. Please use the appropriate discussion forum to ask for clarification, if required.
Example Interface
A potential interface may look like the following:
Marking Criteria
Rubric | |
Criteria | Weighting (%) |
Adequate documentation (including commenting in source) | 10 |
Program runs without hanging/crashing | 10 |
Program handles input/output correctly | 10 |
Program handles errors gracefully | 30 |
GUI layout (including resizing) | 20 |
Program follows the specification | 20 |
Submission status
Attempt number | This is attempt 1. |
Submission status | No attempt |
Grading status | Not graded |
Due date | Sunday, 6 February 2022, 11:59 PM |
Time remaining | 11 days 8 hours |
Last modified | – |
Submission comments | Comments (0) |
Get a fresh solution for Python Program for Nutrition Policy Assignment and many more. No 1 assignment help service in England, Plag free, Superfast Urgent On-time delivery, 100% safe and trusted by global students. Order online now!
No Fields Found.