Create an program that has a method called dividedby-seven


Problem

Create an program that has a method called dividedBy7. This method will take an int parameter named however you would like. This method needs to divide that parameter by 7 and return it. This method should not have a System.out.println() method in it.

In your main method, you need to set up a Scanner so we can get user input. You will then ask the user to enter a number and store this into an int called number.

You will also need to have a while loop that runs until the number that user has entered has been divided to be at or below 7. Each time that the loop is ran, you need to print out the current value of the int.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create an program that has a method called dividedby-seven
Reference No:- TGS03312088

Expected delivery within 24 Hours