Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In java I have to make the following project help me to make following methods.

ID: 3857538 • Letter: I

Question

In java

I have to make the following project help me to make following methods.
I really want to know in addBookedPoduct method how to pass (Product obj) as argument. please explain and please make the method for me.Thanks for all the help

Objective- The Spencer Home Appliances shop wants to automate the following processes: Booking a product by customer Bill generation for customer Inventory status check and updation About the Shop- eSpencer Home Appliances shop owns various models of products, for eg. LG Television T101, LG Refrigerator R601, LG Micro Oven M701 etc. . The shop keeps stock of bulk of products in same model to meet the The shop keeps stock of bulk of products in same model to meet the customer demand. For eg: 20 pieces of Sony 24" TV is available in the shop store. The product Ids of each piece will be different but product name is same for all pieces . The customer should check the availability of a product before booking the product. As per the availability of the product in the retail store, the customer can book one or more products based on the demand of the customer. Booking has to be done based on Product names. The customer can book only one product type at a time. . r Design and Implement follawing Customer- Cu ven description: Page 114

Explanation / Answer

Customer.java

package bean;
import java.util.*;
public class Customer
   {
       public int customerID;
       String customerName;
       int customerNo;
       ArrayList<Product> bookedProductList=new ArrayList<Product>();

       public void addBookedProduct(Product obj)
           {
               obj.setProductStatus("unavailable");
               bookedProductList.add(obj);
           }
       public int getCustomerID()
           {
               return customerID;
           }
       public void setCustomerID(int customerID)
           {
               this.customerID=customerID;
           }
       public String getCustomerName()
           {
               return customerName;
           }
       public void setCustomerName(String customerName)
           {
               this.customerName=customerName;
           }
       public int getCustomerNo()
           {
               return customerNo;
           }
       public void setCustomerNo(int customerNo)
           {
               this.customerNo=customerNo;
           }
       public Customer(int customerID,String customerName,int customerNo)
           {
               super();
               this.customerID=customerID;
               this.customerName=customerName;
               this.customerNo=customerNo;
           }
           public ArrayList<Product> getProductList(){
               return this.bookedProductList;
           }


   }

  
Product.java

package bean;
public class Product
   {
       public int productID;
       String productName;
       double productPrice;
       String productStatus="Available";

       public String getProductStatus()
           {
               return productStatus;
           }
       public void setProductStatus(String productStatus)
           {
               this.productStatus=productStatus;
           }
       public int quantity;

       public int getQuantity()
           {
               return quantity;
           }
       public void setQuantity(int quantity)
           {
               this.quantity=quantity;
           }
       public int getProductID()
           {
               return productID;
           }
       public void setProductID(int productID)
           {
               this.productID=productID;
           }
       public String getProductName()
           {
               return productName;
           }
       public void setProductName(String productName)
           {
               this.productName=productName;
           }
       public double getProductPrice()
           {
               return productPrice;
           }
       public void setProductPrice(double productPrice)
           {
               this.productPrice=productPrice;
           }
       public Product(int productID,String productName,double productPrice)
           {
               super();
               this.productID=productID;
               this.productName=productName;
               this.productPrice=productPrice;


           }

      

   }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote