Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed***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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions