Use E4 Answer.pdf for your submission.
In this exercise we will look control structures: for, if and while.
Consider the code in class E4 in the package Exercise_4_1 (accompanying this document).
Print it for your reference. Within the code you will find 6 comments: // ***Part xxx*** Trace through the execution of the code and determine what will be printed to the console for each part. Enter it in the first table on the hand-in sheet (for each part, write all the output in one box, don’t worry that it will actually be printed on a number of lines).
When you are done, verify your answers by running the program and writing the answers in the second table. If the results do not match what you thought, try to decide where you went wrong.
The results will be discussed in the tutorial.
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.Exercise 4 Answers from Human