Week 4 – While Loop

Part1) Write a Java program which contains a while 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 to use the do-while instead which outputs exactly the same. Submit a screen shot of the execution of the modified code demonstrating that it works exactly the same as the original for the same input.

Reply to a post which does not have a reply yet or provide a different version of the code.

"Get Help With Your Essay
. If you need assistance with writing your essay, our professional essay writing service is here to help!

Order Now