Question: Please write in 2 class files Write a program to create a non - scientific calculator (Division/Multiplication, Addition/Subtraction ONLY). The user enters numbers using digit
Write a program to create a non - scientific calculator (Division/Multiplication, Addition/Subtraction ONLY). The user enters numbers using digit buttons on the screen or keys on the keyboard. Also, watch the entering of multiple decimal points. A typical calculator accepts the first decimal point and ignores the rest. For example, 1.4.3 is read as 1.43. Try dividing by zero on a calculator and see what happens as well. "CE" clears only the last entry since an operator was pushed. "C" clears out the entire memory. Use BorderFactory and setBackGround to make the edges and color more interesting
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
