COMS 104 Minnesota State University Java Programming Lab Report
Question Description
I will provide more information, but this is the assignment
This assignment’s objective is for you to write a different implementation of the CashRegisiter class. This programming project is on page 431 and is P8.10.
Reimplement the CashRegister class so that it keeps track of the price of each added item in an ArrayList<Double>. Remove the itemCount and totalPrice instance variables. Reimplement the clear, addItem, getTotal, and getCount methods. Add a method displayAll that displays the prices of all items in the current sale.
This assignment is meant to show you that the “black box” of a class can be implemented in more than one way, but achieve the same goals in operation. Programming Exercise P8.11 is another way to implement the same class. Do not do P8.11, but read the different design thoughts.
Files for starting your work are attached to this assignment. They include:
- The original CashRegister.java class
- A template of a new CashRegisterMod.java with commented sections
- The original CashRegisterTester.java program
Modify the CashRegisterTester program to work with your newly modified class file.
February 22 2021, 6:28 AM |
February 22 2021, 6:28 AM |
February 22 2021, 6:28 AM |
"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you "A" results."