java quation Super class A Product Member Attributes : Productno , Productname , Price , Quantity , Purchase Amount , and Discount - declare all the variables are public . Member Methods Producto To...


java quation


Super class A Product Member Attributes : Productno , Productname , Price , Quantity , Purchase Amount , and Discount - declare all the variables are public . Member Methods Producto To set the input values of Productno , Productname , Price , and Quantity using parameterized constructor . Calculate 0 To calculate the Purchase Amount using the formula Purchase Amount = Quantity Price ; Process o To calculate the discount amount and retum the discount using the following condition  Purchase Amount Discount 1000-2000 2.3 % of Purchase Amount 2001-3000 5.0 % of Purchase Amount 3001-4000 7.5 . of Purchase Amount To display the following details Productno , Productname , Price Quantity and Orderdate Display


sub Class : Purchaseorder Member Attributes : Orderno , ShippingDate , City , Zipcode - declare all the variables are public . Member Methods Purchaseorder To set the input values Ordemo , ShippingDate , City and Zipcode through using parameterized constructor Display 0 To display the following details Productno , Productname , Price , Quantity , Orderdate , Orderno Shipping Date , City and Zipcode



‏Driver Class : Purchase_test • To create object of product . Print Productno , Productname , Price , Quantity , Purchase Amount , and Orderdate • To create object of purchase order . Print Order no , ShippingDate , City and Zipcode . • To display a Discount of the Product



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here