Professional Documents
Culture Documents
Objectives:
1. Using assignment statements, variables, and calculations
2. Writing even procedures
Problem Description:
Write a small calculator program to allow the user to input (enter) two numbers in two separate
textboxes, then adds, subtracts, or multiplies them when the user clicks on the appropriate button. The
results should be displayed on a third textbox. The output should also give the type of arithmetic
performed, and the result. Check Fig 3.61, on page 110 of your textbook, or the below form, for
inspiration.
Depending on the operation requested, the results displayed may look like the following:
Operation: Results:
Addition 30 + 20 = 50
Multiplication 30 x 20 = 600
Subtraction 30 - 20 = 10
Hint: Declare all your variables at the Class/Form level for the three button procedures to access
them.
Hint: add the symbols “+”, “-“, and “x” as caption on the Text property of the button.
Required:
1. Complete this project by designing the interface, writing the code, and testing it.
2. Submit the project (whole folder) as a compressed file through “Submitting Practicework”
link, to the “Lab Practice No. 5” folder, by midnight Thursday February 24, 2022.
3. There is NO grade for this practice assignment, and submitting this project is optional, but will
be considered for the bonus marks.