I am in computer science one so I do not need a very complex answer to othis bec
ID: 3553708 • Letter: I
Question
I am in computer science one so I do not need a very complex answer to othis because we have not learned a lot of advanced coding yet. Thanks for all the help. The correct answer will get five stars but only if it works. I am just very confused about how to get started and what all I need it to do. Thanks again.
In this program, you will write a command line calculator that can evaluate simple mathematical
expressions typed in by the user in floating point. In addition, your calculator will have a
memory that allows it to store or modify named variables. When the program starts, it should
print your name and state that it is a command line calculator. Then it should go into "command
mode", showing a prompt (such as %), and responding to inputs typed by the user. Example
usage is given as follows.
java MemCalc
Command line calculator with memory by <your name>
% a = 3 + 4
7.0
% bee = a * 3
21.0
% a + bee
28.0
% bee + 3.1
24.1
% a = 4.3
4.3
% 57
57.0
% c
c not found
% var
a: 4.0
bee: 21.0
% quit
The calculator must accept the following 5 input types of input from the user:
1. A command (quit, clear, var)
Result: The program executes the command
quit
Explanation / Answer
Deadline for this ?
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.