Question: Is the following code for area of rectangle correct. Private Sub btnCompute _ Click ( . . . ) Handles btnCompute.Click Dim shapeNum As Integer

Is the following code for area of rectangle correct. Private Sub btnCompute_Click(...) Handles btnCompute.Click
Dim shapeNum As Integer
Dim length, height, width As Double
Input choice of shape and its dimensions
1, Rectangle
shapeNum = CInt(mtbSelection.Text) 'Mask is 0
Select shapeNum
length = CDbl(InputBox("Input the length of the rectangle: "))
width = CDbl(InputBox("Input the width of the rectangle: "))
txtArea.Text = CStr(length * width)

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!