- Description
PRG 420 Week 3 Individual: Analyzing a Program Containing Loops
Resource:
- Week Three Analyze Assignment Zip File
For this assignment, you will be analyzing the Java™ code in the linked Week Three Analyze Assignment Zip File, and predicting the results. 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.
Submit your completed Word document using the Assignment Files tab.