Implementation of OOP, Age Search, and Payment System Project

Verified

Added on  2020/05/04

|7
|477
|169
Project
AI Summary
This project presents a system developed using object-oriented programming (OOP) principles in C# and ASP.NET. The system incorporates classes, polymorphism, and database interactions. The project focuses on implementing age-based search functionality to categorize children into specific age groups (6-10, 11-13, 13-16). Furthermore, the project outlines the payment functionality, including a payment page, data entry for payment details, VAT computation, and confirmation messages. The solution demonstrates the practical application of OOP concepts and database management within a web-based system context. The solution explores the core components of the system, including class structures, data handling, and user interface elements for payment processing.
Document Page
JUSTIFICATION OF USING.
1.OBJECT ORINTED PRORAMMING.
2.IMPLEMENTING SEARCHING OF CHILDREN AGE GROUPS.
3.IMPLEMETING THE PAYMENT METHODS.
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
i. Object oriented programming.
The system was developed using the object oriented programming using the C# and asp.net
where class and polymorphism has been used as below.
i. Classes.
The system has used the classes which are the constructs that allows user to have custom
class which is made of collection of the variables methods and the events.
Below is a sample class used in the system.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using System.Data.OleDb;
namespace LOLSYSTEM
{
public partial class parents : System.Web.UI.Page {//the parents class
{//this is the method for loading the data from the data table and display it on a gridview.
protected void Page_Load(object sender, EventArgs e)
{
string con2 = "";
con2 = ConfigurationManager.ConnectionStrings["Conn"].ToString();
OleDbConnection scon = new OleDbConnection(con2);
scon.Open();
OleDbCommand scmd = new OleDbCommand("Select * from PARENTSDETAILS",
scon);
Document Page
GridView1.DataSource = scmd.ExecuteReader();
GridView1.DataBind();
}
ii. Polymorphism.
The polymorphism is the situation where there is abilities of holding or using multiple forms
of codes and the below is sample code used to implement it.
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
// deleting the record from the database
int index = Convert.ToInt32(e.RowIndex);
int index1 = Convert.ToInt32(GridView1.Rows[index].Cells[1].Text);
string conn = ConfigurationManager.ConnectionStrings["Conn"].ConnectionString;
using (OleDbConnection scon = new OleDbConnection(conn))
{
using (OleDbCommand scmd = new OleDbCommand("DELETE FROM
PARENTSDETAILS WHERE PARENTSID = @PARENTSID"))
{
scmd.Parameters.AddWithValue("@PARENTSID", index1);
scmd.Connection = scon;
scon.Open();
scmd.ExecuteNonQuery();
scon.Close();
}
}
string con2 = "";
con2 = ConfigurationManager.ConnectionStrings["Conn"].ToString();
OleDbConnection scon2 = new OleDbConnection(con2);
scon2.Open();
OleDbCommand scmd1 = new OleDbCommand("Select * from PARENTSDETAILS",
scon2);
GridView1.DataSource = scmd1.ExecuteReader();
Document Page
GridView1.DataBind();
}
ii. Searching the children according to age group.
Range 6-10
Range 11-13
Range 13-16
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
iii. Payments functionarity.
Home page
Parents login
Document Page
Payment page displays.
Enter the payment details
Enter the payments records.
Compute the VAT by clicking the COMPUTE VAT button.
Click save to get this confirmation message.
Document Page
chevron_up_icon
1 out of 7
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]