Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Change the naming convention of the variables to reflect a Double data type (e.g. Private _dblLength As Double). Public Class frmFence Private Sub totalBtn_Click(sender As

Change the naming convention of the variables to reflect a Double data type (e.g. Private _dblLength As Double).

Public Class frmFence

Private Sub totalBtn_Click(sender As Object, e As EventArgs) Handles btnTotal.Click

Dim len As Double = 0

Dim wid As Double = 0

Dim lCost As Double = 0

Dim perimeter As Double = 0

Double.TryParse(txtLength.Text, len)

Double.TryParse(txtWidth.Text, wid)

Double.TryParse(txtLCost.Text, lCost)

'Dim houseArea As My.Resources.Rectangle = New My.Resources.Rectangle()

Dim house As Rectangle = New Rectangle(len, wid)

perimeter = house.GetPerimeter()

lblTotalCost.Text = (perimeter * lCost).ToString("C2")

End Sub

Private Sub exitBtn_Click(sender As Object, e As EventArgs) Handles btnExit.Click

Me.Close()

End Sub

End Cl

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

I am paid fairly for the work I do.

Answered: 1 week ago

Question

I receive the training I need to do my job well.

Answered: 1 week ago