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...


I have question this four times.


Make a code



named Customer which inherits Purchase. Purchaseprod() method will get the product<br>details in an array, show_product() method is to display the customer along with<br>purchase details and Printbill) is to calculate discount using Discount(totcost) method<br>and print the bill amount with discount detail. Write a java program to implement the<br>scenario and generate the bill to be paild after discount.<br>Abstract class: Supermarket<br>Productid<br>Productname<br>Cost<br>Quantity<br>Purchaseprod()<br>Void show.product(-abstract method<br>Class: Purchase<br>Totalcost<br>double Discount(totcost)<br>If totalcost-2000 discount=5%<br>If totalcost2000 discount=10%<br>Class: Customer<br>Customerid: static (intial value=12345)<br>Customername<br>Customermobile<br>Printbill)<br>Customerid:12345 Customername:Schild Mobile:9000012345<br>wat<br>10 prod1 100 2 200<br>20 prod2 50 10 500<br>50 prod3 200 3<br>600<br>60 prod4 500 2<br>1000<br>Totalcost: 2300<br>Discount:10<br>Billamount:2070<br>

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

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here