Question: Program using visual basic.net You will create a very simple two numbers calculator with save options; here is the specifications for the application. Create a

Program using visual basic.net

You will create a very simple two numbers calculator with save options; here is the specifications for the application. Create a form divided vertically in two halves with right and left panels.

In the left panel, you will create the following controls, the labels or the value of the control will be in "" and the type of the control will in []

"First Number" [textbox1]

"Second number" [textbox2]

"Result" [textbox3] - read only

"+" [push button] "-" [push button] "/" [push button] "*" [push button] "Save" [push button] "Display" [push button]

Operations.

The user will enter two numbers in the "First Number" and the "Second Number", then press the "+" for addition, "-" for subtraction, "*" multiplication and "/" the result will be displayed in the result [textbox3], if the user clicked "[save]" then the operation can be displayed in the right panel when the user press [Display]

Please note: that the user can save up to 10 operations. Add "clear" [push button] on the right panel to clear the content, make sure that you trap all the errors and set the focus to the appropriate control after the error occurred.

Make sure that the result contains the operations, I should see in the right panel something like this

1*2=2

and so on.

You must trap divided by Zero and a display a message to the user Cannot Divide by Zero, allow the user to renter another value.

The main issue is figuring out how to limit the saved items added to the file to 10

You need the first one and then the second part.

Instructions: VB.net

Object Oriented Programming

You are going to enhance the application by creating two main classes

1- Create a class for the math (+","-") operations -- name the class "MathOp"

2- Extend the class using inheritance to include ("*","/") name the class "MathOp2"

3- Create the following class/function when select a line from the list box, the user should be able to modify the values/operations and save it to the listbox/database Lets say the user clicked on 1+3=4, the values 1,3 should be displayed in the input text boxes.

Submission Instructions:

Develop an Object-Oriented documentation that include the following

1- List of all classes and their purposes

2- Relationship between classes

3- Data dictionary for each class, method and the return type of each method

4- Optionally you can develop an UML (Unified Modeling Language) using any of these tools: - MS Word, Visio, or UML toolkit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!