Skip to content

Commit 922d217

Browse files
committed
03-05 -01
1 parent 6e71f4c commit 922d217

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+249
-872
lines changed

Anagram/Anagram2.suo

-17.5 KB
Binary file not shown.
Binary file not shown.

Basic String Practice Assignments/desktop.ini

-5
This file was deleted.
Binary file not shown.

CamelCase PreRelease 2017 AS/desktop.ini

-5
This file was deleted.
-19.5 KB
Binary file not shown.

EmailFormat/desktop.ini

-5
This file was deleted.
Binary file not shown.
-10.5 KB
Binary file not shown.

FindingVowels/desktop.ini

-5
This file was deleted.
Binary file not shown.

Format Validation Checks/desktop.ini

-5
This file was deleted.

Pangram 1/Module1.vb

-35
This file was deleted.

Pangram 1/Pangram1.suo

-17 KB
Binary file not shown.

Pangram 2/Module1.vb

-31
This file was deleted.
Binary file not shown.

Pangram 2/desktop.ini

-5
This file was deleted.

Pangram 3/Module1.vb

-38
This file was deleted.
Binary file not shown.

Pangram 3/desktop.ini

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
Module Module1
2-
3-
Sub Main()
4-
Dim str1, alphaStr As String
5-
Dim nextChar As Char
6-
Dim Count As Integer
7-
Dim isPangram As Boolean
8-
9-
str1 = ""
10-
alphaStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
11-
nextChar = ""
12-
Count = 0
13-
isPangram = True
14-
15-
Console.Write("Enter String: ")
16-
str1 = Console.ReadLine
17-
str1 = UCase(str1)
18-
19-
For Count = 1 To Len(alphaStr)
20-
nextChar = Mid(alphaStr, Count, 1)
21-
If InStr(str1, nextChar) = 0 Then
22-
isPangram = False
23-
Exit For
24-
End If
25-
Next
26-
27-
If isPangram = True Then
28-
Console.WriteLine("Sentense enetred is pangram.")
29-
Else
30-
Console.WriteLine("Sentense enetred is NOT pangram.")
31-
End If
32-
Console.ReadKey()
33-
End Sub
34-
35-
End Module
1+
Module Module1
2+
3+
Sub Main()
4+
Dim str1, alphaStr As String
5+
Dim nextChar As Char
6+
Dim Count As Integer
7+
Dim isPangram As Boolean
8+
9+
str1 = ""
10+
alphaStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
11+
nextChar = ""
12+
Count = 0
13+
isPangram = True
14+
15+
Console.Write("Enter String: ")
16+
str1 = Console.ReadLine
17+
str1 = UCase(str1)
18+
19+
For Count = 1 To Len(alphaStr)
20+
nextChar = Mid(alphaStr, Count, 1)
21+
If InStr(str1, nextChar) = 0 Then
22+
isPangram = False
23+
Exit For
24+
End If
25+
Next
26+
27+
If isPangram = True Then
28+
Console.WriteLine("Sentense enetred is pangram.")
29+
Else
30+
Console.WriteLine("Sentense enetred is NOT pangram.")
31+
End If
32+
Console.ReadKey()
33+
End Sub
34+
35+
End Module
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
Module Module1
2-
3-
Sub Main()
4-
Dim myStr As String
5-
Dim a, b As Integer
6-
Dim isFound As Boolean = False
7-
Dim ch As Char
8-
9-
Console.Write("Enter phrase to check Pangram: ")
10-
myStr = Console.ReadLine
11-
If Len(myStr) < 26 Then
12-
Console.WriteLine("It is not Pangram.")
13-
Console.ReadKey()
14-
Else
15-
For b = 65 To 90
16-
isFound = False
17-
For a = 1 To Len(myStr)
18-
ch = UCase(Mid(myStr, a, 1))
19-
If Asc(ch) = b Then
20-
isFound = True
21-
Exit For
22-
End If
23-
Next
24-
If isFound = False Then
25-
Console.WriteLine("It is not Pangram.")
26-
Console.ReadKey()
27-
Exit For
28-
End If
29-
Next b
30-
If isFound = True Then
31-
Console.WriteLine("It is a Pangram.")
32-
Console.ReadKey()
33-
End If
34-
End If
35-
End Sub
36-
37-
38-
End Module
1+
Module Module1
2+
3+
Sub Main()
4+
Dim myStr As String
5+
Dim a, b As Integer
6+
Dim isFound As Boolean = False
7+
Dim ch As Char
8+
9+
Console.Write("Enter phrase to check Pangram: ")
10+
myStr = Console.ReadLine
11+
If Len(myStr) < 26 Then
12+
Console.WriteLine("It is not Pangram.")
13+
Console.ReadKey()
14+
Else
15+
For b = 65 To 90
16+
isFound = False
17+
For a = 1 To Len(myStr)
18+
ch = UCase(Mid(myStr, a, 1))
19+
If Asc(ch) = b Then
20+
isFound = True
21+
Exit For
22+
End If
23+
Next
24+
If isFound = False Then
25+
Console.WriteLine("It is not Pangram.")
26+
Console.ReadKey()
27+
Exit For
28+
End If
29+
Next b
30+
If isFound = True Then
31+
Console.WriteLine("It is a Pangram.")
32+
Console.ReadKey()
33+
End If
34+
End If
35+
End Sub
36+
37+
38+
End Module
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
Module Module1
2-
3-
Sub Main()
4-
Dim myStr As String
5-
Dim b As Integer
6-
Dim isFound As Boolean = False
7-
8-
Console.Write("Enter phrase to check Pangram: ")
9-
myStr = Console.ReadLine
10-
If Len(myStr) < 26 Then
11-
Console.WriteLine("It is not Pangram.")
12-
Console.ReadKey()
13-
Else
14-
For b = 65 To 90
15-
isFound = False
16-
If InStr(UCase(myStr), Chr(b)) > 0 Then isFound = True
17-
If isFound = False Then
18-
Console.WriteLine("It is not Pangram.")
19-
Console.ReadKey()
20-
Exit For
21-
End If
22-
Next b
23-
If isFound = True Then
24-
Console.WriteLine("It is a Pangram.")
25-
Console.ReadKey()
26-
End If
27-
End If
28-
End Sub
29-
30-
31-
End Module
1+
Module Module1
2+
3+
Sub Main()
4+
Dim myStr As String
5+
Dim b As Integer
6+
Dim isFound As Boolean = False
7+
8+
Console.Write("Enter phrase to check Pangram: ")
9+
myStr = Console.ReadLine
10+
If Len(myStr) < 26 Then
11+
Console.WriteLine("It is not Pangram.")
12+
Console.ReadKey()
13+
Else
14+
For b = 65 To 90
15+
isFound = False
16+
If InStr(UCase(myStr), Chr(b)) > 0 Then isFound = True
17+
If isFound = False Then
18+
Console.WriteLine("It is not Pangram.")
19+
Console.ReadKey()
20+
Exit For
21+
End If
22+
Next b
23+
If isFound = True Then
24+
Console.WriteLine("It is a Pangram.")
25+
Console.ReadKey()
26+
End If
27+
End If
28+
End Sub
29+
30+
31+
End Module

0 commit comments

Comments
 (0)