A common business application is an accounts receivable ar


A common business application is an 'Accounts Receivable' (AR) system. Companies use an AR system to bill their customers on sales of their products. In this assignment question you will develop the functionality of a simple Accounts Receivable system. You will develop classes for a BillofSales, Customer, Item, and Product. The requirement for each of these classes is given below.

BillOfSales 

+ Customer customer

+ ArrayList items

. public BillOfSales(Customer c)

. public void add( String productDescription, double productPrice, int productQuantity)

. public double calcAmountDue()

. public String toString()

Customer

+ String name, street, city, state, zipcode

. Customer(String name, String street, String city, String state, String zipcode)

. public String toString()

Item

+ Product product

+ int quantity

. public Item( Product product, item quantity)

. double calcTotalPrice()

. public String toString()

Product

+ String description

+ double price

. public Product( String description, double price)

. String getDescription();

. double getPrice();

In the above, a prefix of a plus (+) indicates a field and a prefix of a dot (.) indicates a method.

You have been provided a test class BillOfSalesTst which has a static test method. For convenience, you do not need to create an instance of BillOfSalesTst. Just right-click and execute the test method.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: A common business application is an accounts receivable ar
Reference No:- TGS01090298

Expected delivery within 24 Hours