Linked List
Given the following Invoice and LinkedList ADTs:
CODE
public class Invoice
{
private int orderID;
private String custName;
private String prodName;
private int prodQuantity;
private double unitPrice;
public Invoice() {…}
public void setData(int oid, String cn, String pn, int pq
double up) {…}
public int getOrderID() {…}
public String getCustName() {…}
public String getProdName() {…}
public int getProdQuantity(){…}
public double getUnitPrice(){…}
}
public class LinkedList
{
public void insert(Object elem){…}
//insert elemen into list
public Object remove(){…}
//remove elemen from list
public boolean isEmpty() {…}
//return true if list is empty
//definition for other methods
}
Write a Java application to solve the following problems:
a) Input 10 invoices into a linked list. (4 marks)

Display the information of invoice that makes the highest payment. The payment is calculated by multiplying progQuality and unitPrice. At the end of the process, the information of all invoices must remain in the original linked list.
(6 marks)
c) Count the number of invoices where the payment is more than RM5000, and also display the information of those invoices.
(4 marks)
guys,can u give me tips on this question...this is just my revision study..
Please post your code like this

Edited to add the [ code] tags
This post has been edited by pbl: 15 Sep, 2008 - 03:16 PM