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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 13PE
icon
Related questions
Question

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

Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT