read this and then look at the code …. and on a side piece of paper state on how you could design the code without changing the output ……..
p.s write it on a side piece of paper like ideas or parts of a code …. but not change the original code i am sure that screenshot going to be clear on how you could do .
In-class project 2 (refactoring, documentation, and testing):
Discuss with classmates and create a document with the following:
1. how do you think you would add file reading and writing functionality to your menu program,
2. describe how you think the try-catch feature of Java works and what exactly the FileNotFoundException class is,
3. identify sections of your code that you could create automated reusable methods out of,
4. what are a couple ways that we could document our processes (design, test, implementation, communicate, reflect),
5. design tests that should show that your program works correctly (positive tests and negative tests),
6. create a bullet list of the parts of class so far that are difficult, try to explain why you think they are difficult, and mention
ways that we might make them easier to understand or work with.