Part1) Write a Java program that contains a for-loop loop. Prompt user for input which determines the number of times the loop repeats. The program should display some output for each iteration but it should be more than just an increment.
Submit your program as an attached .java file and post a screen shot to show that you have been able to successfully run that program. Make sure you submission adheres to the SubmissionRequirements document.
Be sure to create a program different from any of the programs already posted by your classmates or the examples in class materials.
Part2) Reply to another student’s post. Modify the student’s program with if-else statement within the for-loop which changes the output for each iteration. The if-else should be controlled by a value received from the user as input. Submit a screen shot of the execution of the modified code.
Reply to a post which does not have a reply yet or provide a different version of the code.