Assignment title: Management


Question Management Q Your task is to first answer some questions testing your comprehension of the partial solution. Use the sample code provided in StarterCode.java to answer the following questions. Include the answers in your assignment submission. 1. The code provided does not contain any comments. a. Briefly explain why comments are important in code. b. Update the code provided to include comments – include a copy of the commented code starter code in your assignment submission. 2. Identify all of the lines of code within the program that are associated with obtaining user input. This can be done by either copying the lines into your answers or highlighting the lines within the code. 3. The variable finished should be used as the condition for the while loop. a. Briefly explain the purpose of the variable finished. b. What value will it have when the while loop is initially entered? 4. Run the program. When the menu is presented enter 2 as the selected item. a. What is the output of the program to the console? Why are all the values 0? b. Briefly explain how would you should alter the code below so that it displays an appropriate prompt, rather than "Enter Response 1" for each loop: case 1: System.out.println("Menu selection 1"); for(int i=0;i