Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started