0% found this document useful (0 votes)
33 views1 page

Employee and Student Record Management

The document outlines programming tasks for managing employee, candidate, customer order, and student records using binary files. Each section specifies functions to handle data input, updates, and retrieval for different entities, including salary calculations, status changes, and filtering based on specific criteria. The document emphasizes the need for structured data management in various contexts within an organization.

Uploaded by

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

Employee and Student Record Management

The document outlines programming tasks for managing employee, candidate, customer order, and student records using binary files. Each section specifies functions to handle data input, updates, and retrieval for different entities, including salary calculations, status changes, and filtering based on specific criteria. The document emphasizes the need for structured data management in various contexts within an organization.

Uploaded by

srisuppu1763
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1. Suchaye is a programmer, who has been assigned a task to keep records of the employee salary.

For this, he
wants the following information of each employee to be stored.
Emp_code - Integer ,Emp_Name - string ,Salary - float ,Deductions - float
Suchaye needs to write the following functions:
(i) Write a function emp_data() to accept Employee Code, Name, Salary, and Deductions and append
to binary file 'emp_data.dat'.
(ii) Write a function cal_salary() to calculate net salary based on entered salary and deductions. If the
amount of the deduction entered is less than or equal to 0, it should display a message Deductions are
less than 0..... Cannot SAVE', Otherwise, the Salary should be calculated as Net Salary =Salary-
deductions.
(iii) Write a function to read the data from the binary file and display the data of all those employees,
who have deductions of more than 5000.

2. Gyandev is manager in an educational institute. He needs to manage the records of various candidates. For this,
he wants the following information of each candidate to be stored in a list:
- Candidate_id - integer ,Cadidate_name - string ,Class - string , Status - string
You, as a programmer of the institute, have been assigned to do this job for Gyandev.
(i) Write a function addBin() to input the data of a candidate, create a list of it and append it in a binary file
named "[Link]".
(ii) Write a function promoteBin() to change the status to "passed out" for those students whose class is "XII"
(iii) Write a function activeBin() to read the data from the binary file and display the data of all those
candidates who are not "passed out".

3. Simran is developing a Python program to manage customer orders for an online store. Order data (order_id,
customer_name, order_date, total_amount) is stored in a binary file named "[Link]". Each order is
represented as a tuple. Help Simran complete the following tasks:
(i) Write a function 'add_order() to input order details from the user (order_id, customer_name, order_date,
total_amount) and store them in "[Link]". The program should allow adding multiple orders until the user
chooses to stop.
(ii) Write a function 'update_order_amount() to modify the total_amount for orders placed. The function
should increase the 'total_amount of each qualifying order by 10%.
(iii) Write a function `count_high_value_orders() to count and display the number of orders with a
'total_amount greater than 1000.

4. Raj is a supervisor at a software development company. He needs to manage the records of various employees.
For this, he wants the following information of each employee to be stored:
Employee_ID - integer ,Employee_Name - string ,Position - string ,Salary - float
You, as a programmer of the company, have been assigned to do this job for Raj.
(I) Write a function to input the data of an employee and append it to a binary file.
(II) Write a function to update the data of employees whose salary is greater than 50000 and change their
position to "Team Lead".
(III) Write a function to read the data from the binary file and display the data of all those employees who are
not "Team Lead".

5. Shivam Sen is a programmer in school, He needs to manage the records of various students. For this he wants
the following information of each student to be stored:
i. Mention any two difference between binary and csv files?
ii. AddStudents() is a function to input the data of a students and append it in the file
[Link] containing student information - roll number, name and marks (out of 100) of each student.
[Link]() is a function Write a function to read the data from the file to display the name and percentage
of those students who have a percentage greater than 75. In case there is no student having percentage > 75
the function displays an appropriate message

You might also like