Assign number to functions (+,-,*,/,-RND= Random number,AC=All clear,to end the program) The function should ask for a number, than operator, than number first and then output in two lines. Line one...


Assign number to functions (+,-,*,/,-RND= Random number,AC=All clear,to end the program)


The function should ask for a number, than operator, than number first and then output in two lines. Line one should be the calculation and the answer (for example 2+3=5)and sencond line should ask for another operator to calulate the result above even further and when you put in the operator then ask for a number and keep doing it untill you press the assigned button to end (AllClear) it. A simple command line calculator is good enough. Write a very basic java function. ************************PLEASE FOLLOW THESE INSTRUCTIONS***************************


You have probably given programming assignments with a complete list of requirements as well as a template<br>design in your previous programming courses. In this assignment, you will ANALYZE a given program first<br>and then DESIGN and IMPLEMENT a similar Java program to the original one.<br>The problem is to provide a single Java program with a command-line interface (CLI) that mimics the<br>behavior of the following web-based calculator program closely:<br>https:// www.calculator.net/math-calculator.html<br>*Some of the functionality of the calculator (i.e., greyed<br>out ones) was removed to simplify the assignment.<br>7<br>4<br>2 3<br>RND AC<br>In other words, your program should support the same functions, accept the input values with the same value<br>ranges, print the results of operations in mostly the same way except the simplifications given in 3, 4, and 5<br>below.<br>For simplicity, your calculator should be able to do calculations up to 10 digits, i.e., it should work for all<br>input values that would give a calculation result up to 9,999,999,999. You don't need to support or test the<br>numbers larger than that value.<br>For simplicity, your calculator does NOT need to handle invalid inputs or do any error checking. Instead, it<br>should guide the user with appropriate prompts about the expected inputs and allowed input formats/values so<br>that the user inputs will not cause the program to crash or err.<br>You can safely assume that the user will follow the displayed prompts and enter completely valid inputs.<br>For simplicity, you are NOT expected to implement a GUI (Graphical User Interface) for your program, but a<br>command-line interface (CLI.) You can do your own CLI design freely.<br>Hint: Any CLI that allows the user to enter or select the calculator type, operation to be performed, and enter the<br>input values, display the output results to the user as text on the console is acceptable. Both implementations should<br>be provided with the same user interface.<br>

Extracted text: You have probably given programming assignments with a complete list of requirements as well as a template design in your previous programming courses. In this assignment, you will ANALYZE a given program first and then DESIGN and IMPLEMENT a similar Java program to the original one. The problem is to provide a single Java program with a command-line interface (CLI) that mimics the behavior of the following web-based calculator program closely: https:// www.calculator.net/math-calculator.html *Some of the functionality of the calculator (i.e., greyed out ones) was removed to simplify the assignment. 7 4 2 3 RND AC In other words, your program should support the same functions, accept the input values with the same value ranges, print the results of operations in mostly the same way except the simplifications given in 3, 4, and 5 below. For simplicity, your calculator should be able to do calculations up to 10 digits, i.e., it should work for all input values that would give a calculation result up to 9,999,999,999. You don't need to support or test the numbers larger than that value. For simplicity, your calculator does NOT need to handle invalid inputs or do any error checking. Instead, it should guide the user with appropriate prompts about the expected inputs and allowed input formats/values so that the user inputs will not cause the program to crash or err. You can safely assume that the user will follow the displayed prompts and enter completely valid inputs. For simplicity, you are NOT expected to implement a GUI (Graphical User Interface) for your program, but a command-line interface (CLI.) You can do your own CLI design freely. Hint: Any CLI that allows the user to enter or select the calculator type, operation to be performed, and enter the input values, display the output results to the user as text on the console is acceptable. Both implementations should be provided with the same user interface.
Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here