Savitribai Phule Pune University T.Y.B.B.A.(C.A.) Dot Net Framework Practical Slip 5 Answers

 Dot Net Framework


 Dot Net Framework

 A) Write a VB.NET program to accept a character from keyboard and check whether it

 is vowel or consonant. Also display the case of that character.

Answer :

Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Dim a As Char

        Dim str As String

        a = TextBox1.Text

 

        If (TextBox1.Text.Length <= 1) Then

            If Char.IsUpper(a) Then

                str = "Upper Case"

            Else

                str = "Lower Case"

            End If

            If (a = "a" Or a = "e" Or a = "i" Or a = "o" Or a = "u" Or

                a = "A" Or a = "E" Or a = "I" Or a = "O" Or a = "U") Then

                MessageBox.Show(TextBox1.Text & " is " & str & " Vowel")

            Else

                MessageBox.Show(TextBox1.Text & " is " & str & " Consonant")

            End If

        End If

    End Sub

 

    Private Sub TextBox1_Leave(sender As Object, e As EventArgs) Handles TextBox1.Leave

        Dim a As String

        a = TextBox1.Text

        If (TextBox1.Text.Length > 1) Then

            Label2.Text = "Only One Characters Allowed...!"

        Else

            Label2.Text = ""

        End If

 

    End Sub

End Class

 

Output :

 

Write a VB.NET program to accept a character from keyboard and check whether it   is vowel or consonant. Also display the case of that character.

B) Design a web application form in ASP.Net having loan amount, interest rate and

duration fields. Calculate the simple interest and perform necessary validation i.e.

Ensures data has been entered for each field. Checking for non-numeric value. Assume

suitable web-form controls and perform necessary validation.

Answer :

Output :


Savitribai Phule Pune University T.Y.B.B.A.(C.A.) Dot Net Framework Practical Slip 5 Answers Savitribai Phule Pune University T.Y.B.B.A.(C.A.) Dot Net Framework Practical Slip 5 Answers Reviewed by technical_saurabh on May 02, 2022 Rating: 5

No comments:

Powered by Blogger.