Week 6 – Methods

Part1) Write a Java program which prompts user for at least two input values. Then write a method which gets those input values as parameters and does some calculation/manipulation with those values. The method then should return a result of the calculation/manipulation. The program should prompt user, call the method, and then print a meaningful message along with the value returned from the method.

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 by adding another method to be called for the same input and add another print statement with the returned result. 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.

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

Order Now