Question: JAVA - The goal for Project 1 is to construct a calculator program which stores the users past answers in a Linked List. The calculator
JAVA - The goal for Project 1 is to construct a calculator program which stores the users past answers in a Linked List. The calculator should support addition, subtraction, multiplication, and division operations. When a calculation has been completed, append the answer to the Linked List. To use the Linked List we have constructed in class, define a variable with the data type LinkedList. Refer to the LinkedList.java source code as needed. Your program should begin by asking the user which operation they would like to perform: 1) Addition 2) Subtraction 3) Multiplication 4) Division 5) See History Allow the user to select an option. If option 1 - 4 is selected, allow the user to enter two numbers to be used in the relevant calculation. When computing the result, output the answer on the screen and also store the output in the Linked List you created. Hint: we want to append a new Node to the linked list. If option 5 is selected, display the contents of the Linked List.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
