Question: in JAVA language please 3. (Financial: compare costs) Suppose you shop for rice in two different packages. You would like to write a program to
3. (Financial: compare costs) Suppose you shop for rice in two different packages. You would like to write a program to compare the cost. The program prompts the user to enter the weight and price of the each package and displays the one with the better price. Here is a sample run: Enter weight and price for package 1: 502459 Enter weight and price for package 2: 2511.99 Package 2 has a better price
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
