Question: 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

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!