Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27192

Competition Winner Announcement Program

$
0
0
So I've been trying to do a program which asks for 5 competition participants name and 5 score mark as Input. And it should give output by announcing the winner with MsgBox("First Place goes to ...") and then announce the others with numeric order. I have no problem acquiring the inputs but I am having trouble how to write the outputs. Any ideas appreciated big time !






Public Class Form1

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim name1, name2, name3, name4, name5 As String
Dim mark1, mark2, mark3, mark4, mark5 As Decimal

name1 = TextBox1.Text
name2 = TextBox2.Text
name3 = TextBox3.Text
name4 = TextBox4.Text
name5 = TextBox5.Text

Decimal.TryParse(InputBox("Enter in seconds"), mark1)
Decimal.TryParse(InputBox("Enter in seconds"), mark2)
Decimal.TryParse(InputBox("Enter in seconds"), mark3)
Decimal.TryParse(InputBox("Enter in seconds"), mark4)
Decimal.TryParse(InputBox("Enter in seconds"), mark5)





End Sub

End Class

Viewing all articles
Browse latest Browse all 27192

Trending Articles