Home > Back-end >  The salary management
The salary management

Time:03-31

A company need to store employee number, name, gender, department, level, and the salary is calculated, the employees are divided into managers, technical personnel, monthly salary calculation method is as follows: the manager with a fixed monthly salary; Technical personnel receive monthly pay by the hour,
Functional requirements:
(1) design a program to manage the company staff, is applied to the inheritance, abstract class, virtual function, virtual base classes, polymorphism, and file input/output content, such as
(2) add function: according to user's choice of category, add managers or technicians, requires only the serial number of employees, if you add the repeat number record, add repeat indicates that data, and cancel to add,
(3) the query function: according to the number, name and other information to update a record has been added to the query, if not found, given the corresponding prompt information, if found, displays the corresponding record information; It can display all the records in the current system, each record occupies a line,
(4) editing features: can be according to the records of the results of the query to the appropriate modified, modified the uniqueness of note number,
(5) the delete function: the main implementation of added personnel records to delete, if there is no corresponding personnel records in the current system, the prompt "record is empty!" And return operation; Otherwise, enter the serial number of personnel to delete or name, according to the information input by deleting the personnel records, if could not find the staff information, indicates that the corresponding records don't save,
(6) statistical function: can according to various parameters of personnel, for example, the statistics personnel number and the total number, or statistics, the number of female employees, or statistical average wages, the highest wages, the information such as the minimum wage,
(7) save function: can record all kinds of personnel in the current system in the file, deposited in the arbitrary way; Can be saved in the file personnel information into the current system, for users to use,

CodePudding user response:

https://blog.csdn.net/qq_46039856/article/details/106269628? Utm_medium=distribute. Pc_feed. None - task - blog - personrec_tag - 10. Nonecase& Dist_request_id=1328741.52360.16171056789435209 & amp; Depth_1 - utm_source=distribute. Pc_feed. None - task - blog - personrec_tag - 10. Nonecase