Question
develop a simple calculator. The calculator has two sets of keys: ten numeric keys (0-9) and five operator keys (+,-,*, =). The keys are displayed
develop a simple calculator. The calculator has two sets of keys: ten numeric keys (0-9) and five operator keys ("+","-","*", "="). The keys are displayed on the calculator interface. Users can select the numbers and the operators with mouse. The selections as well as the results are displayed on a display area of the interface. In order to perform any calculation, the user has to make selections in the sequence: NUM1→operator→ NUM2→"=". For example, to add the numbers 2 and 32, the user has to select 2→+→32→=.
Answer the following.
a) Show any TWO use cases [answer with diagram, mainline sequence and alternate sequence (if any)]?
b) Identify the classes for object-oriented design of the calculator system (with ONLY one line description of each class).
c) Show the class diagram (ONLY the diagram, NO need to provide all the class definitions).
Step by Step Solution
3.52 Rating (169 Votes )
There are 3 Steps involved in it
Step: 1
a Two use cases Use Case 1 Adding Numbers Mainline Sequence 1 User selects number 2 2 User selects o...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started