Question: Create a project called CashRegisterClassReview Create a class called CashRegister include the following instance variables itemCount cashRegisterTotal allCashRegisterTotals (static) Please add more variables, this is

  1. Create a project called CashRegisterClassReview
  2. Create a class called CashRegister
    1. include the following instance variables
      1. itemCount
      2. cashRegisterTotal
      3. allCashRegisterTotals (static)
      4. Please add more variables, this is the minimum you need
    2. include the following methods with their appropriate action
      1. addItem( double)
      2. removeItem( double)
      3. getCashRegisterTotal()
      4. getCount()
      5. getAllCashRegisterTotals()
      6. clear()
      7. Please add more methods, this is the minimum you need
    3. make sure to create a constructor(s)
    4. make sure to comment your code/methods
  3. Create another class called UsingCashRegister
    1. instantiate CashRegister and use the assessors/mutators to manipulate and retrieve data
  4. Turn in screen shots of the result
  5. Also turn in the two java files CashRegister and UsingCashRegister

Java Please!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!