I am new to java, but have taken one VB class.
I am working on a common exercise:
Bags of coffee sell for $5.50.
User orders a number of bags.
number of bags * cost per bag.
Bags are shipped in 3 sizes of boxes: large, medium, and small.
Cost: Large= $ 1.80, Medium cost $1.00, and Small cost $0.60.
The goal is to minimize cost- pack the bags most efficiently and cheaply.
I have worked up to the equation: number of bags * cost per bag.
I don't know how to create a function in java to do the other computing.