CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 03:41:03 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=3cb28318b81a07214af138cc747e7892ec52144c8b4a88366fb6ed3a304a008ea%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%227rycYOAPJqiMlp7Jos-e1vHerQsF2O-t%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cb56f1498fc18d-BLR
Imports SystemModule ApplicationValidation Sub Main() ' Inpu - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System
- Module ApplicationValidation
- Sub Main()
- ' Input from user
- Console.Write("Enter city of birth: ")
- Dim cityOfBirth As String = Console.ReadLine()
- Console.Write("Enter city where birth certificate was issued: ")
- Dim certificateCity As String = Console.ReadLine()
- Console.Write("Enter CNAM paper issue date (yyyy-mm-dd): ")
- Dim issueDateInput As String = Console.ReadLine()
- Dim cnamPaperIssueDate As DateTime
- ' Validate the entered date
- If DateTime.TryParse(issueDateInput, cnamPaperIssueDate) Then
- ' Call validation method
- ValidateApplication(cityOfBirth, certificateCity, cnamPaperIssueDate)
- Else
- Console.WriteLine("Invalid date format. Please use yyyy-mm-dd.")
- End If
- End Sub
- Function ValidateBirthCertificate(cityOfBirth As String, certificateCity As String) As Boolean
- If cityOfBirth.ToLower() <> certificateCity.ToLower() Then
- Console.WriteLine("Application refused because Birth certificate must be issued in the city of birth.")
- Return False
- End If
- Return True
- End Function
- Function ValidateCnamPaper(issueDate As DateTime) As Boolean
- Dim sixMonthsAgo As DateTime = DateTime.Now.AddMonths(-6)
- If issueDate < sixMonthsAgo Then
- Console.WriteLine("Application refused because CNAM paper must be issued within the last six months.")
- Return False
- End If
- Return True
- End Function
- Sub ValidateApplication(cityOfBirth As String, certificateCity As String, issueDate As DateTime)
- ' Using AndAlso to ensure short-circuiting
- If ValidateBirthCertificate(cityOfBirth, certificateCity) AndAlso ValidateCnamPaper(issueDate) Then
- Console.WriteLine("Application is valid.")
- Else
- Console.WriteLine("Application is not valid.")
- End If
- End Sub
- End Module
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ V
JavaScript | 3 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ⭐⭐ D
JavaScript | 7 sec ago | 0.24 KB
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ G
JavaScript | 18 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ B
JavaScript | 30 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ E
JavaScript | 41 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ O
JavaScript | 52 sec ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ F
JavaScript | 1 min ago | 0.24 KB
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 1 min ago | 0.10 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand