1) Purpose:
The Purpose of this project was to create MVC that would be able to take 2 numbers and then add them together. This would teach us more about python, creating an MVC and how to apply what we learned to different tasks.
2) Discussion of Solution: Code Walk Through
For the Controller file, we chose the index method and its content because after importing compute and InputForm, the program can get the form data, test if it is valid, send the data to the compute file and then return the view_output.html. Or if the data is not valid, then it will stay on the view_input.html and wait until the data is valid to change.
For the model file, the InputForm class(Form) is written because this allows both data values to be taken and then validated to see if the values are the same type the program requires.
![]() |
Controller.py |
![]() |
| Model.py |
For the model file, the InputForm class(Form) is written because this allows both data values to be taken and then validated to see if the values are the same type the program requires.
![]() |
| View.py |
![]() |
| Compute.py |
3) Testing Plan:
When I was testing this program, I made sure to test positive numbers, negative numbers, letters, and symbols in different combinations to make sure that it worked as intended.
4) Testing Documentation:
5) Commented Listings:
file:///C:/Users/adria/OneDrive/Documents/Doxygen/html/classes.html
Attached in Blackboard submission.
Attached in Blackboard submission.
6) Quality:
For this project, I attempted to blog as I went, but I did not keep up with up with it to the extent that I would have like to. I used Doxygen for my commented listings again but I am still not sure if I am doing it right. For my testing documentation, I made a Youtube video to show the program worked as intended.




No comments:
Post a Comment