I have question this four times.
Make a code
Extracted text: named Customer which inherits Purchase. Purchaseprod() method will get the product details in an array, show_product() method is to display the customer along with purchase details and Printbill) is to calculate discount using Discount(totcost) method and print the bill amount with discount detail. Write a java program to implement the scenario and generate the bill to be paild after discount. Abstract class: Supermarket Productid Productname Cost Quantity Purchaseprod() Void show.product(-abstract method Class: Purchase Totalcost double Discount(totcost) If totalcost-2000 discount=5% If totalcost2000 discount=10% Class: Customer Customerid: static (intial value=12345) Customername Customermobile Printbill) Customerid:12345 Customername:Schild Mobile:9000012345 wat 10 prod1 100 2 200 20 prod2 50 10 500 50 prod3 200 3 600 60 prod4 500 2 1000 Totalcost: 2300 Discount:10 Billamount:2070
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here