Testing

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 27

PROJECT REPORT

“TIME TABLE GENERATOR”

SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS OF

THE DEGREE OF

BACHELOR OF COMPUTER APPLICATION (BCA)

DEPARTMENT OF COMPUTER SCIENCE, APPLICATION & ANIMATION

ST ALOYSIUS COLLEGE (AUTONOMOUS), MANGALURU

MR Mohammed Arshad – 194695

DURING THE ACADEMIC YEAR 2020 – 21

UNDER THE GUIDANCE OF

INTERNAL GUIDE
Priya George A
Lecturer, Department of BCA
St Aloysius College (Autonomous)
Mangaluru – 575 003

AUGUST, 2021
ST ALOYSIUS COLLEGE (AUTONOMOUS), MANGALURU

Department of Computer Science, Application & Animation

CERTIFICATE FOR THE APPROVAL OF THE PROJECT

This is to certify that Mr Mohammed Arshad bearing the Register number 194695 of
IV Semester BCA has satisfactorily completed the project “TIME TABLE GENERATION
SYSTEM” as a part of the requirement of the degree of Bachelor of Computer Application
(BCA) prescribed by the College during the academic year 2020 – 21.

PROJECT GUIDE SIGNATURE HOD’S SIGNATURE

Ms PRIYA GEORGE Ms Shilpa Shetty


Lecturer, Department of BCA HOD, Department of BCA
St Aloysius College (Autonomous) St Aloysius College (Autonomous)
Mangaluru – 575 003 Mangaluru – 575 003
DECLARATION BY STUDENT

I hereby declare that this project work titled “TIME TABLE GENERATION
SYSTEM” has been prepared by me during the academic year 2020 – 21 under the guidance
of Ms Priya George A., Lecturer, Department of Computer Science, Application &
Animation, St Aloysius College (Autonomous), Mangaluru submitted in partial fulfillment of
the requirements for the award of the degree of Bachelor of Computer Application (BCA)
as prescribed by the College.
I also declare that this project is the outcome of my own efforts, that it has not
been submitted to any other University for the award of any degree or diploma.

Mr MOHAMMED ARSHAD - 194695 SIGNATURE


ACKNOWLEDGEMENT

First and foremost, praises and thanks to the God, the Almighty, for his showers of
blessing throughout completion of our project.
We are thankful to our principal Rev. Dr Praveen Martis SJ for all necessary facilities
and constant support throughout the project.
We express our sentiment of gratitude to Dean Dr Ravindra Swami and HOD Ms
Shilpa Shetty, Department of Computer Science, Application and Animation who has been a
continuous source of inspiration. Without their constant guidance and suggestions, this project
would have been nowhere near completion. Our gratitude for their trust and generosity goes
beyond words.
We are also grateful to our Internal guide Ms Priya George A, Department of
Computer Science, Application and Animation who supported and gave his guidance to help
us in the project.
We would like to express our heartfelt thanks to all supporting staff members who
have been a constant source of encouragement for successful completion of the project.
We would like to extend my sincere thanks to our dearest friends and also our classmates
for their support in the completion of the project work.

We would like to express our gratitude towards our parents, family members, well-
wishers and others for their kind co-operation and encouragement which helped us in
completion of this project.

Mr Mohammed Arshad - 194695 SIGNATURE


TABLE OF CONTENTS

TITLE
1. Problem statement Working of project
2. Advantages
3. System description
4. Project life cycle
5. System requirement – hardware and software
6. Disadvantages
11-13 Program
14-15 Database screenshot – structure and contents
16-19 Output screenshot
20- References
PROBLEM STATEMENT WORKING OF PROJECT

In this System, the student will be asked to login to their specified course and year to
acess the information on their respective classes
The login page asks the user/student to enter their first name,last name ,regester
number,course and the year of study to gain the information on the classes and the subjects .
 FIRST NAME:
 SECOND NAME:
 REGESTER NO:
 COURSE:
 SEMESTER:
When the students selects the respective course and the year of study. The time table of the
subjects of that class which is stored in the database is displayed on to the web page in table
format which is easy to access by the student
ADVANTAGES

 The system is user-friendly and has simple interface.

 Students can easily gain information on their classes

 By using PHP it supports an extensive list of databases and web-servers

 Less Time and effort

 Simplifies the manual work.

 It minimizes the documentation related work.


SYSTEM DESCRIPTION

Time Table Generator is a w e b b as e d ap pl i c at i on w hi ch gui d es yo u a bo ut t i m e


t ab l e m an a ge m e nt . This project includes mainly two modules i.e. login and the
time table page.

Login:

The student have to login to get more information about the time schedule.

The login page asks the user/students first name,last name, regester number course opted and
the year in which the student is studying And when the constraints match the specified class
time table is displayed to the student on a html web page

Time Table page:

The students time table is displayed on the html page

The time table of a student’s specified course and the year is displayed on a table format
which is easy to access
Project life cycle
System Requirement

Hardware Requirement

Laptop or PC
 I3 processor system or higher
 4 GB RAM or higher
 100 GB ROM or higher

Software Requirement

 Windows 7 or higher
 Wamp or Xamp server
 PHP MySQL
DISADVANTAGES

 Changing the time table which is already assigned classes is


difficult
 System may provide incorrect results if data not entered
correctly
PROGRAM

<!doctype html>
<html>
<head>
<title>TIMETABLE GENERATOR</title>
<Style type="text/css">
*{
margin:0;
padding:0;
}
body{
background-color: powderblue;
}
.login{
width:800px;
background-color: rgb(0,0,0,0.6);
margin: auto;
color: #FFFFFF;
padding: 10px 0px 10px 0px;
text-align: center;
border-radius: 15px 15px 0px 0px;
}
.main{
background-color: rgb(0,0,0,0.5);
width: 800px;
margin: auto;
}
form{
padding: 10px;
}
#name{
width: 100%;
height: 100px;
}
.name{
margin-left: 25px;
margin-top: 30px;
width: 125px;
color: white;
font-size: 18px;
font-weight: 700;
}
.firstname{
position: relative;
left: 200px;
top: -37px;
line-height: 40px;
border-radius: 6px;
padding: 0 22px;
font-size: 16px;
}
.lastname{
position: relative;
left: 417px;
top: -80px;
line-height: 40px;
border-radius: 6px;
padding: 0 22px;
font-size: 16px;
color: #555;
}
.firstlabel{
position: relative;
color: #E5E5E5;
text-transform: capitalize;
font-size: 14px;
left: 203px;
top: -45px;
}
.lastlabel{
position: relative;
color: #E5E5E5;
text-transform: capitalize;
font-size: 14px;
left: 175px;
top: -45px;
}
.Register{
position: relative;
left: 200px;
top: -37px;
line-height: 40px;
width: 480px;
border-radius: 6px;
padding: 0 22px;
font-size: 16px;
color: #555;
}
.course{
position: relative;
left: 200px;
top: -37px;
line-height: 40px;
width: 480px;
border-radius: 6px;
padding: 0 22px;
font-size: 16px;
color: #555;
}
.option{
position: relative;
left: 200px;
top: -37px;
line-height: 40px;
width: 532px;
height: 40px;
border-radius: 6px;
padding: 0 22px;
font-size: 16px;
color: #555;
outline: none;
overflow: hidden;
}
.option option{
font-size: 20px;

}
button{
background-color: #3BAF9F;
display: block;
margin: 20px 0px 0px 20px;
text-align: center;
border-radius: 12px;
border: 2px solid #366473;
padding: 14px 110px;
outline: none;
color: white;
cursor: pointer;
transition: 0.25px;
}
button:hover{
background-color: #5390F5;
}
h1{
text-align: center;
}

</style>
</head>
<body>
<br><br><br><br>
<h1 >TIMETABLE GENERATOR</h1><br><br><br><br>
<div class="login"><h1>LOGIN FORM</h1></div>
<div class="main">
<form method='POST' action='assignment.php'>
<div id="name">
<h2 class="name">Name</h2>
<input class="firstname" type="text" name="first_name"><br>
<label class="firstlabel">first name</label>
<input class="lastname" type="text" name="last_name">
<label class="lastlabel">last name</label>
</div>
<h2 class="name">Register Number</h2>
<input class="Register" type="text" name="Register">
<h2 class="name">course</h2>
<input class="course" type="text" name="course" placeholder="BCA,BCOM,BBA,BA">

<h2 class="name">Year</h2>
<select class="option" name="year">
<option disabled="disabled" selected="selected">--Choose Option--</option>
<option value="One">FIRST</option>
<option value="Two">SECOND</option>
<option value="Three">THIRD</option>
</select>
<button type="submit">Submit</button>
</form>

</body>
</html>
<?php
$obj=new mysqli("localhost","root","","timetable");
$year=$_POST['year'];
$coursename=$_POST['course'];
if($year=="One" && $coursename=="BCA"){
$dis="select * from BCA_SUB where year='One'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BCA FIRST YEAR TIMETABLE</h1><br><br>";
echo"<table border=3 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00AM-10:00AM</td><td>10:00AM-
11:00AM</td><td>11:00AM-12:00PM</td><td>12:00PM-1:00PM</td></tr>";
while($row=$res1->fetch_array())

{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
elseif($year=="Two" && $coursename=="BCA"){
$dis="select * from BCA_SUB where year='Two'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BCA SECOND YEAR TIMETABLE</h1><br><br>";
echo"<table border=2 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00-10:00</td><td>10:00-11:00</td><td>11:00-
12:00</td><td>12:00-1:00</td></tr>";
while($row=$res1->fetch_array())

{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
elseif($year=="Three" && $coursename=="BCA"){
$dis="select * from BCA_SUB where year='Three'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BCA THIRD YEAR TIMETABLE</h1><br><br>";
echo"<table border=2 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00-10:00</td><td>10:00-11:00</td><td>11:00-
12:00</td><td>12:00-1:00</td></tr>";
while($row=$res1->fetch_array())

{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
if($year=="One" && $coursename=="BCOM"){
$dis="select * from BCOM_SUB where year='One'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BCOM FIRST YEAR TIMETABLE</h1><br><br>";
echo"<table border=2 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00-10:00</td><td>10:00-11:00</td><td>11:00-
12:00</td><td>12:00-1:00</td></tr>";
while($row=$res1->fetch_array())

{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
elseif($year=="Two" && $coursename=="BCOM"){
$dis="select * from BCOM_SUB where year='Two'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BCOM SECOND YEAR TIMETABLE</h1><br><br>";
echo"<table border=2 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00-10:00</td><td>10:00-11:00</td><td>11:00-
12:00</td><td>12:00-1:00</td></tr>";
while($row=$res1->fetch_array())
{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
elseif($year=="Three" && $coursename=="BCOM"){
$dis="select * from BCOM_SUB where year='Three'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BCOM THIRD YEAR TIMETABLE</h1><br><br>";
echo"<table border=2 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00-10:00</td><td>10:00-11:00</td><td>11:00-
12:00</td><td>12:00-1:00</td></tr>";
while($row=$res1->fetch_array())

{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
if($year=="One" && $coursename=="BBA"){
$dis="select * from BBA_SUB where year='One'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BBA FIRST YEAR TIMETABLE</h1><br><br>";
echo"<table border=2 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00-10:00</td><td>10:00-11:00</td><td>11:00-
12:00</td><td>12:00-1:00</td></tr>";
while($row=$res1->fetch_array())

{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
elseif($year=="Two" && $coursename=="BBA"){
$dis="select * from BBA_SUB where year='Two'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BBA SECOND YEAR TIMETABLE</h1><br><br>";
echo"<table border=2 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00-10:00</td><td>10:00-11:00</td><td>11:00-
12:00</td><td>12:00-1:00</td></tr>";
while($row=$res1->fetch_array())

{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
elseif($year=="Three" && $coursename=="BBA"){
$dis="select * from BBA_SUB where year='Three'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BBA THIRD YEAR TIMETABLE</h1><br><br>";
echo"<table border=2 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00-10:00</td><td>10:00-11:00</td><td>11:00-
12:00</td><td>12:00-1:00</td></tr>";
while($row=$res1->fetch_array())

{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
if($year=="One" && $coursename=="BA"){
$dis="select * from BA_SUB where year='One'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BA FIRST YEAR TIMETABLE</h1><br><br>";
echo"<table border=2 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00-10:00</td><td>10:00-11:00</td><td>11:00-
12:00</td><td>12:00-1:00</td></tr>";
while($row=$res1->fetch_array())

{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
elseif($year=="Two" && $coursename=="BA"){
$dis="select * from BA_SUB where year='Two'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BA SECOND YEAR TIMETABLE</h1><br><br>";
echo"<table border=2 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00-10:00</td><td>10:00-11:00</td><td>11:00-
12:00</td><td>12:00-1:00</td></tr>";
while($row=$res1->fetch_array())

{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
elseif($year=="Three" && $coursename=="BA"){
$dis="select * from BA_SUB where year='Three'";
$res1=$obj->query($dis);
if($res1->num_rows==0)
die("No Data found");
else
{ echo"<h1 align=center> BA THIRD YEAR TIMETABLE</h1><br><br>";
echo"<table border=2 align=center bgcolor=powderblue>";
echo "<tr><td>Day</td><td>9:00-10:00</td><td>10:00-11:00</td><td>11:00-
12:00</td><td>12:00-1:00</td></tr>";
while($row=$res1->fetch_array())

{
for($i=1;$i<=5;$i++)
echo "<td>".$row[$i]."</td>";
echo "</tr>";
}

}
}
?>
Database screenshot – structure and contents
OUTPUT SCREENSHOTS

REFERENCES

You might also like