Question: This is a java program ... I dont know how to do it....please typeit and paste it... The purpose of this assignment is to grow
This is a java program... I dont know how to do it....please typeit and paste it...

The purpose of this assignment is to grow more familiar with the ArrayList class and related operations through a small application that tracks purchases. You will write a program that tracks a series of floating point numbers (transactions). It allows the user to add a new transaction on to the end, print out the transactions, and print a total of all transactions. These values are not persistent - when the person quits the program, the values are lost. These values must be stored in an ArrayList. Specific requirements: Implement a Transaction class that holds an ArrayList as it's member function. Implement addItem (takes in a float), printItems (prints items in list), and sumItems (returns a float) methods. Implement a class called Register that contains an instance of the Transaction class. Write a main method that prints the menu, as shown below, gathers inputs using the Scanner class, and loops repeatedly until the person presses "q". Pay close attention to the language given below, online testing is dependent on strings matching exactly. Note that while my example is an old Python assignment, you should implement using Java. cayenne: tmp jtogen$ python3 test.py Please type an option and press enter o: Add to register p: Print register s: Sum Register q: Quit Your Choice: a Enter value: 10.50 Please type an option and press enter a: Add to register p: Print register s: Sun Register q: quit Your Choice: a Enter value: 20 Please type an option and press enter a: Add to register p: Print register s: Sun Register q: Quit Your Choice: p $10.50 $20.00 Please type an option and press enter a: Add to register p: Print register s: Sum Register q: quit Your Choice: 5 Total is $30.50 Please type an option and press enter a: Add to register p: Print register s: Sun Register q: quit Your Choice: q cayenne: tmp jtogen$
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
