Question: ***Code in JAVA** Suppose you have been appointed as a Software Engineer and have been 10 points assigned to a task to design the invoice
***Code in JAVA**
Suppose you have been appointed as a Software Engineer and have been 10 points assigned to a task to design the invoice generation feature for an upcoming ecommerce site. Please follow the UML presented below to get the idea about the features you need to implement in your java code. You should be aware of the scenario to activate discount upon the following purchase policies: 1.500>=total_cost 10% of the total_cost 2. 1000>=total_cost 20% of the total cost 3. 2000>=total_cost 30% of the total_cost. The printStatus() method will print the detailed customer information gathered by the program. The purchased_products is a two dimensional array of String that will contain the list of the purchased items. Use a driver method "main" in a separate class to test your code.* Generatelnvoice - customer_name: String -order_placement_date: String - invoiceld: int purchased_products[m][m): String total_Cost: double discount: double total_payable: double + Generatelnvoice(customer_name: String, order_placement_date: String, invoiceID: int) + getCustomer_namel): String + getInvoiceID(): int + purchased Product(purchased_products[0[0): String, i:int, cost: double): void + get TotalCost(): double + activate Voucher(total_cost): Boolean + availDiscount(total_cost: double): discount: double +toBePaid(): total_payable: double + printStatus(getInvoiseD(): String
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
