Answer to Question #255104 in Visual Basic for gil

Question #255104

write a visual basic code using the console application that allows one to input the following data from the keyboard ; student name ,registration number, program, phone number ,address.


1
Expert's answer
2021-10-22T07:39:40-0400




Module Module1
    Sub Main()
        Console.Write("Enter the student's name: ")
        Dim name As String = Console.ReadLine()
        Console.Write("Enter the student's registration number: ")
        Dim registrationNumber As String = Console.ReadLine()
        Console.Write("Enter the student's program: ")
        Dim program As String = Console.ReadLine()
        Console.Write("Enter the student's phone number: ")
        Dim phoneNumber As String = Console.ReadLine()
        Console.Write("Enter the student's address: ")
        Dim address As String = Console.ReadLine()


        Console.WriteLine(vbNewLine + "The student's name: {0}", name)
        Console.WriteLine("The student's registration number: {0}", registrationNumber)
        Console.WriteLine("The student's program: {0}", program)
        Console.WriteLine("The student's phone number: {0}", phoneNumber)
        Console.WriteLine("The student's address: {0}", address)




        Console.ReadLine()
    End Sub
End Module

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS