AMARAVATI
School of Computer Science and Engineering
CSE1004 – Problem Solving Using Java
Digital Assignment
Team Number /
TEAM NO. 17
Title
ONLINE ATTENDANCE MANAGEMENT SYSTEM
Name of Student 1 FALAK SHAH Name of Student 2 BYSANI SAIRAMESH
Register Number 19BCD7153 Register Number 19BEV7016
Date of Last Date for
18-09-2019 18-10-2019
Announcement Submission
Max. Mark 8 Date of Submission 18.10.2019
1. Project Objectives
● Can maintain student attendance details.
● Any kind of information based on student attendance can be retrieved
within less time.
2. Project Modules
● This Online Attendance Management System software is designed
and implemented in such as way that taking student attendance in
a class is done in a more effective way.
● The Administrator has complete access for this attendance
management code. He can enter the student’s attendance for any
particular day,view the average attendance of a class for a
particular week, see if a particular student is eligible or not for
sitting in exam, if he is not eligible then by how many days is the
student not eligible, and at last view all the students who are not
eligible for exam because of less attendance.
3. Coding
import [Link].*;
public class Main
public static void main (String args[])
int a, i, k = 1, j, avg, b, sum1 = 0,sum2=0,sum3=0,sum6=0;
Scanner in = new Scanner ([Link]);
int stud[][] = new int[5][5];
int sum[] = new int[5];
int sum4[] = new int[5];
int sum5[] = new int[5];
int sum7[] = new int[5];
sum[0] = 0;
sum[1] = 0;
sum[2] = 0;
sum[3] = 0;
sum[4] = 0;
sum4[0] = 0;
sum4[1] = 0;
sum4[2] = 0;
sum4[3] = 0;
sum4[4] = 0;
sum5[0] = 0;
sum5[1] = 0;
sum5[2] = 0;
sum5[3] = 0;
sum5[4] = 0;
sum7[0] = 0;
sum7[1] = 0;
sum7[2] = 0;
sum7[3] = 0;
sum7[4] = 0;
while (k == 1)
[Link]("Enter the option you want:");
[Link]("[Link] the attendance of class for 5 working days");
[Link]("[Link] average attendance of class for particular week");
[Link]("[Link] out if the student is elligible for exam or not ");
[Link]("[Link] all the student which are not elligible");
[Link]("[Link] the student rollno with the margain by which it
is shorted to average attendance");
b = [Link] ();
switch (b)
case 1:
{
for (i = 0; i < 5; i++)
[Link] ("Enter the attendance for day " + (i + 1));
[Link]("Enter the attendance as (0 for present and 1
for absent) of student ");
for (j = 0; j < 5; j++)
[Link] (j + ":");
stud[i][j] = [Link] ();
[Link] (" ");
break;
case 2:
for (i = 0; i < 5; i++)
for (j = 0; j < 5; j++)
sum[i] = sum[i] + stud[j][i];
}
for (i = 0; i < 5; i++)
sum1 = sum1 + sum[i];
avg = sum1 / 5;
[Link] ("The average attendance of class for this week:"
+avg);
break;
case 3:
[Link]("enter the student rollno for which you want to check
elligiblity of exam:");
a = [Link] ();
for (i = 0; i < 5; i++)
for (j = 0; j < 5; j++)
sum4[i] = sum4[i] + stud[j][i];
for (i = 0; i < 5; i++)
{
sum2 = sum2 + sum[i];
avg = sum2 / 5;
if (sum4[a] > avg)
[Link] ("student " + (a + 1) +" is elligible for exam");
else
[Link] ("not elligible for exam");
break;
case 4:
for (i = 0; i < 5; i++)
for (j = 0; j < 5; j++)
sum5[i] = sum5[i] + stud[j][i];
}
for (i = 0; i < 5; i++)
sum3 = sum3 + sum5[i];
avg = sum3 / 5;
for (i = 0; i < 5; i++)
if (sum5[i] < avg)
[Link] ("Rollno " + (i+1) +"is not elligible for
exam");
break;
case 5:
for (i = 0; i < 5; i++)
for (j = 0; j < 5; j++)
sum7[i] = sum7[i] + stud[j][i];
}
for (i = 0; i < 5; i++)
sum6 = sum6 + sum7[i];
avg = sum6 / 5;
for (i = 0; i < 5; i++)
if (sum7[i] < avg)
[Link] ("Rollno " + i +" is short to average by " +
(sum7[i] - avg));
break;
[Link]("want to enter more from menu(0 for no and 1 for
yes)");
k = [Link] ();
}
4. Output