Suppose you shop for rice in two different packages. You would like to write a program to

Question:

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:

image

image

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: