For problems similar getting cheapest price is not a problem of java, is really a normal problem of algorithm design. It is better for you to read some algorithm design book to understand how to...