Answered step by step
Verified Expert Solution
Question
1 Approved Answer
java program screenshot please Super class : Product Member Attributes : Productno, Productname, Price, Quantity, Purchase Amount, and Discount - declare all the variables are
java program
screenshot please
Super class : 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 To calculate the Purchase Amount using the formula Purchase Amount = Quantity * Price; Processo To calculate the discount amount and retum the discount using the following condition. 5 MARKS Purchase Amount Discount 1000-2000 2.5% 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 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started