Draw a diagram for a invoice problem statement


Discuss the below:

Q: Draw a diagram for a invoice problem statement. I need to create the function in JavaScript and call it in an HTML file.

"An invoice consists of a customer, a list of line items, and a date of purchase. Customers have contact names, addresses, telephone numbers, and an internal customer ID. Line items consist of an item and a quantity. Items have a description and a price."

For the objects identified write a constructor.Then create create two methods that act on invoices. One should be addLineItem that adds a line item to an existing invoice. The other should calculateTotal that determines the total billing price of the invoice.

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Draw a diagram for a invoice problem statement
Reference No:- TGS01938296

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)