Programming Homework Help
I need help answering two short questions with an original answer pertaining to the attached program. You will also examine both the code and the output for inconsistencies and clarity. This Java co
I need help answering two short questions with an original answer pertaining to the attached program.
You will also examine both the code and the output for inconsistencies and clarity. This Java code includes examples of for, while, and do-while loops.
Carefully read through the code line by line, then answer the following questions in a Microsoft Word document:
- What is the output of the program as it is written?
- What improvement(s) could be made to this code to make the output clearer or more accurate, or to make the code easier to maintain?
Note: You do not have to make the improvements in the Java program, although you certainly may. For this assignment, simply describe the things you see that would need to be improved to elevate the code and output to a more professional level. For the code, consider variable names and hardcoding. For the output, consider formatting/punctuation, repetition, accuracy of information, and wording.