A smart and real-world problem solving web application that helps students calculate their attendance percentage and determine how many classes they can safely skip while maintaining the minimum required attendance for specific subject.
- Subject Selection: Choose from multiple subjects with dropdown menu, or else keep Total classes as your choice.
- Real-time Calculation: Instant attendance percentage calculation.
- Smart Bunk Calculator: Calculate maximum classes you can skip while maintaining required percentage.
- Responsive Design: Works seamlessly on desktop and mobile devices.
- Clean UI: Minimalist and user-friendly interface for better and effecient use.
Visit the live application, and try it ~> https://attendance-calculator-six.vercel.app/
- Frontend: JavaScript (React JS), HTML5, TailwindCSS
- Styling: some inline CSS with modern design principles
- Deployment: Vercel
- Version Control: Git & GitHub
- Select Subject: Choose your subject from the dropdown menu or else you can keep your own number of Total classes
- Input Data: The app displays:
- Total Classes conducted
- Required Percentage (typically 70-75%)
- Classes Attended - input the value you actually attended the classes.
- Classes Held - input the value, number of classes actually held.
- Claculation Logic
const totalClasses = parseInt(totalClasses) || 0;
const rqPercent = parseInt(requiredPercent) || 0;
const attended = parseInt(attended) || 0;
const held = parseInt(held) || 0;
if (held === 0) return "Please enter classes held > 0.";
const percent = rqPercent / 100.0;
const presentPer = (a / h) * 100;
const remaining = totalClasses - held;
const neededDouble = percent * totalClasses - attendedd;
const needToAttend = Math.max(0, Math.ceil(neededDouble));
- Getting Started
- Open the application in your web browser
- Select your subject from the "Choose Subject" dropdown
- The app will display your current attendance data
- Understanding the Display
- Total Classes: Total number of classes conducted so far
- Required Percentage: Minimum attendance percentage required (usually 70%)
- Classes Attended: Number of classes you have attended
- Classes Held: Total classes held for the subject
- Reading Results
- Green Background: Safe attendance level
- Current Percentage: Your present attendance percentage
- Bunk Limit: Maximum classes you can skip while maintaining the required percentage
- Tips
- Update your attendance data.
- Personal warning ~> "This is a calculated number, it may vary to real-time scenario"
- Prerequisites
-
Web browser (Chrome, Firefox, Safari, Edge)
-
Internet connection for live demo
(install npm before start)
- Local Development
- Clone the repository
git clone https://github.com/kowshikramtg/Attendance-Calculator.git cd Attendance-Calculator - open in browser
npm run dev - Contributing
~> Contributes are welcome!
- Fork the repo
- Create a feature branch
git checkout -b feature/amazing-feature - commit your changes
git commit -m 'Add some amazing feature' - Push to the branch
git push origin feature/amazing-feature - Open a Pull request
- Contributions Guidlines
- Add comments for complex logic
- Follow existing code style and formatting
- Test your changes thoroughly
- Update documentation if needed
- Be respectful and constructive in discussions
- Be open for any review on your PRs. Don't feel discouraged / get upset on unmerged PRs.
- Thanks to all contributions who have helped improve this project.
- Inspired by the need for simple Attendance Class Bunk.
- Thank you all, drop comments for any my-sided changes.
