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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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
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.
Transcribed Image 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.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY