[go: up one dir, main page]

0% found this document useful (0 votes)
31 views14 pages

Pps Project

This document describes an attendance record program that stores student attendance percentages and separates students into categories based on their attendance. The program takes student roll numbers and percentages as input. It then outputs lists of students in different attendance ranges (above 90%, 80-89%, etc.) along with the number of classes attended. The program demonstrates the use of structures, arrays, and loops in the C programming language to simplify storing and reporting attendance records.

Uploaded by

hiimamanenu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views14 pages

Pps Project

This document describes an attendance record program that stores student attendance percentages and separates students into categories based on their attendance. The program takes student roll numbers and percentages as input. It then outputs lists of students in different attendance ranges (above 90%, 80-89%, etc.) along with the number of classes attended. The program demonstrates the use of structures, arrays, and loops in the C programming language to simplify storing and reporting attendance records.

Uploaded by

hiimamanenu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

ATTENDANCE RECORD

1.ABSTRACT
This program titled ‘Attendance Record’ is designed to tore percentage of student attendance.
It also separates the students according to their attendance percentages. This program is
implemented in C and is used to simplify code. It also shows the overall average percentage of
attendance. With this program it becomes easy to know the attendance percentage of
students.
2.INTRODUCTION
Attendance Record program is beat thing to store the attendance data of students. Keeping
attendance records of students in books now a days is difficult. Because so many students are
engaging in schools and colleges. Having more attendance is more important, because we can
learn more every day. For knowing how to students are regular to school this program can help
you. In this program there is a step-by-step procedure about how much attendance thus
students are having and how students are regular to school. You can also know how many
students have attendance percentages above 90, above 80, above 70, and below 70.
3.SYSTEM ANALYSIS
3.1 EXISTING
Before this program was created people used to feel difficult to store attendance of students.
They also used calculators to calculate the percentages.

3.2 PROPOSED
The user is asked to give the total number of classes roll Numbers and the percentages of the
students. Then he can get a separate students list according to their percentages and the
number of classes attended also shown. By using for loop and if condition we are able to get
the result for attendance record.
4. SYSTEM REQUIREMENTS

Some of the requirements for this program are listed below:-


⦁ Required roll numbers
⦁ Attendance percentage of students
⦁ Total Number of classes held
5.ALGORITHM
⦁ Define a struct named student with integer type roll number and float type attendance
percentage.
⦁ Define an array of student structures named students with a size of 10.
⦁ Take input from the user for the total number of classes held.
⦁ For each of the 10 students:
⦁ Take input from the user for the roll number and attendance percentage.
⦁ For each of the 10 students:
⦁ If the attendance percentage is greater than or equal to 90%, print their roll number and the
number of classes attended out of total classes.
⦁ For each of the 10 students:
⦁ If the attendance percentage is between 80% and 89%, print their roll number and the
number of classes attended out of total classes.
⦁ For each of the 10 students:
⦁ If the attendance percentage is between 70% and 79%, print their roll number and the
number of classes attended out of total classes.
⦁ For each of the 10 students:
⦁ If the attendance percentage is less than 70%, print their roll number and the number of
classes attended out of total classes.
⦁ For each of the 10 students:
⦁ Print their roll number, attendance percentage, and the number of classes attended out of
total classes.
⦁ End the program
6. SYSTEM ARCHITECTURE
 FLOWCHART
7.SYSTEM IMPLIMENTATION
SOURCE CODE:

#include <stdio.h>

struct student {
int roll_number;
float attendance_percentage;
};

int main() {
int i;
struct student students[10];
float classes;
printf("Enter the number of classes held: ");
scanf("%f", &classes);
for (i = 0; i < 10; i++) {
printf("Enter the roll number of student %d: ", i + 1);
scanf("%d", &students[i].roll_number);
printf("Enter the attendance percentage of student %d: ", i + 1);
scanf("%f", &students[i].attendance_percentage);
}

printf("\nStudents with attendance above 90%%:\n");


for (i = 0; i < 10; i++) {
if (students[i].attendance_percentage >= 90) {
printf("%d (attended %d out of %d classes)\n", students[i].roll_number, (int)(classes *
students[i].attendance_percentage / 100), (int)classes);
}
}

printf("\nStudents with attendance between 80%% and 89%%:\n");


for (i = 0; i < 10; i++) {
if (students[i].attendance_percentage >= 80 && students[i].attendance_percentage < 90) {
printf("%d (attended %d out of %d classes)\n", students[i].roll_number, (int)(classes *
students[i].attendance_percentage / 100), (int)classes);
}
}

printf("\nStudents with attendance between 70%% and 79%%:\n");


for (i = 0; i < 10; i++) {
if (students[i].attendance_percentage >= 70 && students[i].attendance_percentage < 80) {
printf("%d (attended %d out of %d classes)\n", students[i].roll_number, (int)(classes *
students[i].attendance_percentage / 100), (int)classes);
}
}

printf("\nStudents with attendance below 70%%:\n");


for (i = 0; i < 10; i++) {
if (students[i].attendance_percentage < 70) {
printf("%d (attended %d out of %d classes)\n", students[i].roll_number, (int)(classes *
students[i].attendance_percentage / 100), (int)classes);
}
}

printf("\nAttendance percentages and number of classes attended by all students:\n");


for (i = 0; i < 10; i++) {
printf("%d: %.2f%% (attended %d out of %d classes)\n", students[i].roll_number,
students[i].attendance_percentage, (int)(classes * students[i].attendance_percentage / 100),
(int)classes);
}

return 0;
}
8.SYSTEM TESTING
8.1 Test - Input for students list according to their percentage and number of classes attended
Input:
⦁ Total number of classes held.
⦁ Students roll number
⦁ Attendance percentage of students

Expected output:
⦁ List of students according to their attendance percentage
⦁ Number of classes attended by every student
9.OUTPUT SCREENS
10.CONCLUSION
In conclusion, the attendance record project has provided the user with the stored attendance
percentage and separated the students according to their percentages and total number
classes attended by each student.
This is so helpful in schools and colleges. This project can even store the total number of days
present. Overall, the program demonstrates the use of for loop and functions in C
programming.
11.FUTURE ENHANCEMENT
ADDING THE NUMBER OF CLASSES ATTENDED FOR EACH SUBJECT

As this program does not provide many details about the number of classes attended for each
subject and number of classes for each subject separately, if we add this also it will be clearer.
This will also help the students to know about their attendance.
12.REFERENCES
Https://en.wikipedia.org/wiki/Attendance

You might also like