The program reads variables totalVolume and itemVolume from input. An item takes up itemVolume cubic inches, and the volume of a box is given by totalVolume cubic inches. Assign remainingVolume with the remaining volume after filling as many boxes as possible.
Ex: If input is 13 4, the output is:
Remaining volume: 1
1 import java.util.Scanner;
2 public class RemainingVolume {
4 public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
6 int totalVolume;
7 int itemVolume;
8 int remainingVolume;
9
10 totalVolume = scnr.nextInt();
11 itemVolume = scnr.nextInt();
12
13 /* Your code goes here*/
14
15 System.out.println("Remaining volume: " + remainingVolume);
16
17}