This study source was downloaded by 100000874682361 from CourseHero.
com on 04-28-2024 [Link] GMT -05:00
[Link]
This study source was downloaded by 100000874682361 from [Link] on 04-28-2024 [Link] GMT -05:00
[Link]
This study source was downloaded by 100000874682361 from [Link] on 04-28-2024 [Link] GMT -05:00
[Link]
REGISTRATION SOURCE CODE
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using StudentRegistrationForm;
namespace StudentRegistrationForm
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private string _FullName;
private int _Age;
private long _ContactNo;
private long _StudentNo;
public long StudentNumber(string studNum)
This study source was downloaded by 100000874682361 from [Link] on 04-28-2024 [Link] GMT -05:00
[Link]
{
try
{
_StudentNo = [Link](studNum);
}
catch(FormatExceptions)
{
[Link]("You Have Entered Wrong Non-Numeric
Character");
[Link] = " ";
}
return _StudentNo;
public long ContactNo(string Contact)
{
try
{
if ([Link](Contact, @"^[0-9]{10,11}$"))
{
_ContactNo = [Link](Contact);
}
else
{
throw new OverflowException();
}
}
catch (OverflowException)
{
[Link]("Number has Exceeded or inadequate");
}
return _ContactNo;
}
public string FullName(string LastName, string FirstName, string
MiddleInitial)
{
try
{
if ([Link](LastName, @"^[a-zA-Z]+$") ||
[Link](FirstName, @"^[a-zA-Z]+$") || [Link](MiddleInitial, @"^[a-
zA-Z]+$"))
{
_FullName = LastName + ", " + FirstName + ", " +
MiddleInitial;
}
else
{
throw new ArgumentException();
throw new FormatException();
}
}
This study source was downloaded by 100000874682361 from [Link] on 04-28-2024 [Link] GMT -05:00
[Link]
catch (ArgumentException)
{
[Link]("Please Fill up Lastname, Firstname and
Middle Inittial");
}
return _FullName;
}
public int Age(string age)
{
try
{
if ([Link](age, @"^[0-9]{1,3}$"))
{
_Age = [Link](age);
}
else
{
throw new FormatException();
}
}
catch (FormatException)
{
[Link]("You have Entered Wrong Non Nurmeric
Character.");
}
return _Age;
}
private void Form1_Load(object sender, EventArgs e)
{
string[] ListofProgram = new string[]
{
"BS Information Technology",
"BS Computer Science",
"BS Information System",
"BS in Accountancy",
"BS in Hospitality Management",
"BS in Tourism Management"
};
for( int i = 0; i < 6; i++)
{
[Link](ListofProgram[i].ToString());
}
string[] GenderVariation = new string[]
{
"Male",
"Female"
};
for (int i = 0; i < 2; i++)
{
[Link](GenderVariation[i].ToString());
This study source was downloaded by 100000874682361 from [Link] on 04-28-2024 [Link] GMT -05:00
[Link]
}
private void button1_Click(object sender, EventArgs e)
{
[Link] = FullName([Link],
[Link], [Link]);
[Link] =
StudentNumber([Link]);
[Link] = [Link];
[Link] = [Link];
[Link] =
ContactNo([Link]);
[Link] = Age([Link]);
[Link] =
[Link]("yyy-MM-dd");
Confirmation fr2 = new Confirmation();
[Link]();
}
}
}
CONFIRMATION SOURCECODE
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
namespace StudentRegistrationForm
{
public partial class Confirmation : Form
{
public Confirmation()
{
InitializeComponent();
}
private void Confirmation_Load(object sender, EventArgs e)
{
[Link] = [Link]();
[Link] = [Link];
[Link] = [Link];
This study source was downloaded by 100000874682361 from [Link] on 04-28-2024 [Link] GMT -05:00
[Link]
[Link] = [Link];
[Link] = [Link];
[Link] = [Link]();
[Link] = [Link]();
private void label8_Click(object sender, EventArgs e)
{
}
}
}
STUDENTREGISTRATIONFORM SOURCE CODE
using System;
using [Link];
using [Link];
using [Link];
using [Link];
namespace StudentRegistrationForm
{
class StudentInformationClass
{
public static long SetStudentNo = 0;
public static long SetContactNo = 0;
public static int SetAge = 0;
public static string SetProgram = " ";
public static string SetGender = " ";
public static string SetBirthday = " ";
public static string SetFullname = " ";
}
}
This study source was downloaded by 100000874682361 from [Link] on 04-28-2024 [Link] GMT -05:00
[Link]
Powered by TCPDF ([Link])