Home » VB.NET Basics
Problem 3 - Make a Scientific Calculator like the one in Windows
Problem 4 - Make a Program that finds the sum for even and odd numbers, every third number, every fourth number, and so on and so forth for any given number range.
Problem 5 - Using the Northwind Data, Create a textbox that will identify if a Product made high sales, average sales, or low sales in the year 1995.
Problem 6 - Using the Northwind Data, Create a user form that can display the Product ID and Product in one textbox
10
Assignments
Test your newly acquired knowledge of VB .NET with these assignments
You have learned many things throughout this tutorial. Now is the time for you to put your skills to the test. This chapter will give you a sample application and several problems to work on. The first problem has a sample application answer while the remaining problems are for you to solve yourself. Remember that there are several ways to solve a problem. Do not worry if your application is not the same as the sample application. As long as it works properly, you are good to go. Good luck!
Problem 1 - Make a Calculator that converts Celsius to Fahrenheit and vice versaSample User Form is shown below
Sample Code is shown below
Problem 2 - Make an Ordinary Calculator like the one in Windows
Public Class Form1
Dim C As Single
Dim F As Single
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
C = TextBox1.Text
F = (9 / 5) * C + 32
TextBox2.Text = F
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
F = TextBox1.Text
C = (5 / 9) * (F - 32)
TextBox2.Text = C
End Sub
End Class
Problem 5 - Using the Northwind Data, Create a textbox that will identify if a Product made high sales, average sales, or low sales in the year 1995.
Problem 6 - Using the Northwind Data, Create a user form that can display the Product ID and Product in one textbox