Question: DESCRIPTION: Create a program that asks a user how many rocks will be used to fill boxes. Assuming it takes 8 rocks to fill a

DESCRIPTION: Create a program that asks a user how many rocks will be used to fill boxes. Assuming it takes 8 rocks to fill a box, on average, respond to the user with the number of boxes that will be filled and the number of rocks left over. Make sure your output is formatted as shown below. SPECIFICATIONS: You have all the skills necessary to complete this program. If you need help reference the code from last week's programs. Name your program BoxOfRocks.java Create method called fillBoxes() called from main to compute and output the number of boxes that will be filled and the number of rocks left over, as shown below. Add a comment with your name, date, and program description at the top! Be sure to close the Scanner class object! scanner.close(); Test Cases: Case 1: 0 Case 2: 8 Case 3: 55 Case 4: 121 Case 5: 240 SAMPLE OUTPUT: ====== Enter the number of rocks: 26 You will completely fill 3 boxes. You will have 2 rocks left over
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
