a. Create a class named Invoice that contains fields for an item number, name, quantity, price, and total cost. Create instance methods that set the item name, quantity, and price. 'Whenever the price or quantity is set, recalculate the total (price times quantity). Also include a di splay line ( ) method that displays the item number, name, quantity, price, and total cost. Save the class as Invoicejava.
b. Create a class named TestInvoice whose main() method declares three Invoice items. Create a method that prompts the user for and accepts values for the item number, name, quantity, and price for each Invoice. Then display each completed object. Save the application as Testlnvoice.java.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.