Sei sulla pagina 1di 10

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 java.util.*;

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 (System.in);

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)

System.out.println("Enter the option you want:");

System.out.println("1.Enter the attendance of class for 5 working days");

System.out.println("2.The average attendance of class for particular week");

System.out.println("3.Find out if the student is elligible for exam or not ");

System.out.println("4.Inlist all the student which are not elligible");

System.out.println("5.Display the student rollno with the margain by which it


is shorted to average attendance");

b = in.nextInt ();

switch (b)

case 1:
{

for (i = 0; i < 5; i++)

System.out.println ("Enter the attendance for day " + (i + 1));

System.out.print("Enter the attendance as (0 for present and 1


for absent) of student ");

for (j = 0; j < 5; j++)

System.out.print (j + ":");

stud[i][j] = in.nextInt ();

System.out.println (" ");

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;

System.out.println ("The average attendance of class for this week:"


+avg);

break;

case 3:

System.out.println("enter the student rollno for which you want to check


elligiblity of exam:");

a = in.nextInt ();

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)

System.out.println ("student " + (a + 1) +" is elligible for exam");

else

System.out.println ("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)

System.out.println ("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)

System.out.println ("Rollno " + i +" is short to average by " +


(sum7[i] - avg));

break;

System.out.println("want to enter more from menu(0 for no and 1 for


yes)");

k = in.nextInt ();

}
4. Output

Potrebbero piacerti anche