Provided that you have a given number big rice bags (5 kilos each), and then display the number of bags to be used for a certain kilos of rice as an input.
public class App {
public static void main(String[] args) throws Exception {
// scanner
Scanner scanner = new Scanner(System.in);
// input kilograms of rice
// get the character to count
// display how many bags of rice to be used
scanner.close();
}
}
Kilos of rice: 5
bags = 1
Kilos of rice: 10
bags = 2
Kilos of rice: 12.5
bags = 3
Kilos of rice: 14
bags = 3