Complete a read me of what each class does in this assignment. java | programming | Florida International University, Modesto A. Maidique Campus


public class Rice extends Item {

double weight;

double price;

public Rice(String name, double weight, double price) {


 this.weight = weight;

 this.price = price;



public int getCost() {

 return (int) Math.ceil(weight * price);



public String toString() {

 return “rice” + weight + “lbs @” + GroceryStore.cents2dollarsAndCents(getCost());



"Get Help With Your Essay
. If you need assistance with writing your essay, our professional essay writing service is here to help!

Order Now