The company sells the coffee in 2-kilo bags only, and the price of a single 2-kilo bag is £5.50. When a customer places an order, the company ships the order in boxes. The boxes come in three sizes: the large box holds twenty 2-kilo bags, the medium 10 bags and the small 5 bags. The cost of a large bag is £2, a medium box is £1 and a small box is £0.50. The order is shipped using the least number of boxes. For example, the order of 25 bags will be shipped in two boxes, one large and one small. Develop a Java program that computes the total cost of an order. Display the output in the following format.
please enter number of bags ordered: 25 number of bags ordered: 25 - £137.5 boxes used: 1 large - £2.0 1 small - £0.5 your total cost is £140.0.
the programm should also work on all instances that is when both large bags are used and also were all bags are used. Thanks