Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Design

Authors: Alan Dennis, Barbara Wixom, Roberta M. Roth

7th Edition

1119496489, 978-1119496489

More Books

Students also viewed these Operating System questions

Question

Question!5 sort has a linear runtime of O(n) Check It

Answered: 1 week ago

Question

Explain the characteristics of the three types of needs.

Answered: 1 week ago

Question

Recognize some of the factors that contribute to obesity.

Answered: 1 week ago

Question

Identify the physical and social factors that influence hunger.

Answered: 1 week ago