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. 1 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.

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

I have added the question and the solution of what it should look like (Similar not exact same). Do not need to assign operators to numbers and also include all clear button to end the first operation and start a new one. Write super simple entry level java program.

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.
Welcome to Java command line calculatór
To Use RND instead of number type RND
Chose from the Following Operators:
1.
2.
3. *
4. /
5. to compute (+/-) enter
6. = to end the program and get the final result
Number : 10
Choose Operator *
Number : 5
10.0 * 5.0 = 50.0
Choose Operator
Number : 50
50.0 / 50.0 = 1.0
Choose Operator +
: RND
Number
RND = 0.17779210757304353
1.0 + 0.17779210757304353 = 1.1777921075730435
Choose Operator C
Number : 1.
1.0
Choose Operator +
Number : 1
1.0 + 1.0 = 2.0
Choose Operator
Transcribed Image Text:Welcome to Java command line calculatór To Use RND instead of number type RND Chose from the Following Operators: 1. 2. 3. * 4. / 5. to compute (+/-) enter 6. = to end the program and get the final result Number : 10 Choose Operator * Number : 5 10.0 * 5.0 = 50.0 Choose Operator Number : 50 50.0 / 50.0 = 1.0 Choose Operator + : RND Number RND = 0.17779210757304353 1.0 + 0.17779210757304353 = 1.1777921075730435 Choose Operator C Number : 1. 1.0 Choose Operator + Number : 1 1.0 + 1.0 = 2.0 Choose Operator
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 7 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