In visual badic .NET: Pick one of the following functions or sub procedures that
ID: 3746686 • Letter: I
Question
In visual badic .NET:
Pick one of the following functions or sub procedures that have not been chosen by someone else, and write the code that would perform the condition.
Write a function that will return the area of a rectangle.
Write a function that will return the absolute value of a number.
Write a function that will return the letter grade when passed a test score, where a score between 90 and 100 is an A, etc.
Write a function that will return a full name string when passed a first name string, a middle name or initial string, and a last name string. If the middle initial is blank, there should be only one space between the first and last name.
Write a sub procedure that enables 3 text boxes on the form when a checkbox is enabled and disables the 3 textboxes when a checkbox is disabled.
Write a sub procedure that will clear the input controls in VB Solution 4. (These controls are cleared by both clearButton and completeButton.)
Explanation / Answer
Run on Microsoft visual studio
Program will perform area of rectangle:
------------------------------------------------------
Public Class Form1
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EvenArges)
End Sub
Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As Sysytem.EvenArgs)
Dim lenght = Val(TextBox1.Text)
Dim Breadth = Val(TextBox2.Text)
Dim area = length * breadth
TextBox3.Text = area
End Sub
End Class
------------------------------------
Steps:
File ----> New project
Select --> windows forms application
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.