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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started