Python Basics-Day 3 assignment-compensation Management System Payroll Management

Source: Internet
Author: User
Job Requirements

Alex 100000

Rain 80000

Egon 50000

Yuan 30000

-----above are info.txt file-----

Implementation results:

Read employees and their payroll information from the Info.txt file, and finally write the revised or increased employee payroll information to the original Info.txt file.

Effect Demo:

1. Check the employee's salary

2. Revise employee's salary

3. Add new Employee Records

4. Exit

>>:1

Please enter the name of the employee to be queried (ex: Alex): Alex

Alex's salary is: 100000.

1. Check the employee's salary

2. Revise employee's salary

3. Add new Employee Records

4. Exit

>>:2

Please enter the employee name and salary to be modified, separated by a space (for example: Alex): Alex 10

Modified successfully!

1. Check the employee's salary

2. Revise employee's salary

3. Add new Employee Records

4. Exit

>>:3

Please enter the employee's name and salary to be added, split the total space (ex: Eric 100000): Eric 100000

Increase success!

1. Check the employee's salary

2. Revise employee's salary

3. Add new Employee Records

4. Exit

>>:4

Good bye!

Python Basics-Day 3 assignment-compensation Management System Payroll Management

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.