INDIAN SCHOOL
SOHAR
SULTANATE OF OMAN
COMPUTER
SCIENCE
PROJECT
CLI Based Employee Management
Menu-Driven Application using
Python
Submitted By
Swami Om Santosh
Class
XI - C
Guided By
Mr. Kannan Raghavan
CERTIFICATE
This is to certify that Swami
Lorem Om
ipsum dolor Santosh,
sit amet, a
consectetur
adipiscing elit. Nunc finibus ullamcorper
student ofpurus
class XI C has
ac vulputate. Proin condimentum
successfully completed the project in
pretium erat a ultricies. Quisque et
maximus risus. Curabitur non blandit
Computereros.
Science(083)
Fusce convallis iaculis lorem, nec
aliquam ligula.
on topic entitled “CLI Based Employee
Management Menu-Driven Application
using Python” under the
guidance of Mr. Kannan Raghavan during
the year 2025-26 in
partial fulfilment of Computer Science
project.
2
ACKNOWLEDGEMENT
I sincerely thank all those who supported me during the
completion of my Computer Science project for the
academic session 2025–26.
I am especially grateful to my Computer Science teacher,
Mr. Kannan Raghavan, for his constant guidance,
encouragement, and valuable insights. His expertise
greatly shaped the success of this project.
My heartfelt thanks to our principal, Mrs. Sanchita Verma,
for providing the necessary resources and a supportive
environment for research and experimentation.
I also appreciate my teammates for their helpful
feedback and collaborative spirit, and I’m deeply thankful
to my family for their unwavering support and motivation.
This project has significantly deepened my
understanding of Python and Computer Science and
strengthened my programming skills.
3
TABLE OF
CONTENTS
2 Table of
Content
7 Code
Objective of Output
5 Project 11 Screens
6 System Logic 13 Thank You
4
OBJECTIVE
OF THE PROJECT
The primary objective of this project is to develop a secure and
efficient Command Line Interface (CLI) application to manage
employee records. Key goals include:
Data Centralization: Implementing a unified storage system
Mission
using Python Dictionaries to store multifaceted employee
data including personal details, professional roles, and
financial metrics.
Role-Based Access Control (RBAC): Creating a secure login
environment that differentiates between administrative
(Manager) and non-administrative (Staff) users, thereby
ensuring data privacy and restricted access to sensitive
functions.
Dynamic Payroll Calculation: Automating the complex
process of salary generation based on real-time attendance
data and performance-based rating bonuses.
User Interaction: Designing an intuitive, menu-driven
interface that allows users to perform CRUD (Create, Read,
Update, Delete) operations with minimal technical
knowledge
5
SYSTEM LOGIC
The system operates on a modular logic framework
divided into three main phases: Authentication,
Authorization, and Execution.
1. Authentication: Upon startup, the system prompts
for a User ID and Password. It validates these against
the stored dictionary.
2. Authorization: Once authenticated, the program
checks the role attribute. If the user is a 'manager',
they are granted access to administrative tools; if
'staff', they are restricted to personal data viewing
and attendance marking.
3. Execution: The program runs inside an infinite while
True loop, which acts as the application's heartbeat.
This ensures the program does not terminate after a
single action, allowing for continuous operations
until the user explicitly chooses to 'Logout' or 'Exit'.
6
CODE
DATA STRUCTURE DESIGN
Core Structure: The project uses a Nested Dictionary
(employees) where:
Keys: Employee IDs (e.g., "E101").
Values: Another dictionary containing attributes: name,
password, role, salary, attendance, and rating.
7
CODE
PAYMENT LOGIC
T he base salary is pro-rated to a daily rate assuming a 30-day
month.
Performance is rewarded via a bonus multiplier (Rating * 1000)
8
CODE
9
CODE
10
OUTPUT SCREEN
MANAGER LOGIN
11
OUTPUT SCREEN
USER LOGIN
EXIT
12
THANK
YOU
13