Write an annual salary calculator in Java to help you easily complete a large amount of pre-tax and post-tax total salary calculations

There is no doubt that every company with a small scale will have an accounting department, but is the work of accounting really as simple as most people think, and it is only busy in the last few days of each month? The answer is of course No, otherwise this position would have been overcrowded.

At present, as far as I know, the daily work of accounting is as follows:

1. Fill in the accounting voucher;

2. Prepare the T-shaped account and prepare the voucher summary table;

3. Register the three-column subsidiary ledger and other subsidiary ledgers;

4. Register the general ledger and prepare the trial balance sheet

5. Prepare financial statements.

Review the original vouchers for procurement or reimbursement by various departments--review the cashier and fill in the accounting vouchers involving collection and payment--fill in the accounting vouchers that do not involve collection and payment--logging (or computer review and posting) )----Check the subject summary trial balance.

Month-end work: reconciliation work, account closing work, preparation of reports, tax declaration, sorting out and archiving materials

To put it bluntly, the accountant is in charge of the company’s financial power, and the monthly salary has to go through their hands before it goes to the pockets of other staff, but to put it bluntly, the accountant is actually a person who reimburses the accounts, no different from the staff of the cashier. , facing the data and trivial numbers every day, the yuan must be matched, and a penny can't be wrong, otherwise you have to post the money yourself, which is annoying!

So writing an annual salary calculator in Java can really help accounting calculations?

Let's first take a look at the conditions that need to be met to use the Java salary calculator:

(1) Enter the user's monthly salary through the keyboard | every year is a few months of salary.

(2) Output the user's annual salary

(3) Output a line of words "If the annual salary exceeds 100,000, congratulations that you surpass 90% of the Chinese people", "if the annual salary exceeds 200,000, congratulations that you surpass 98% of the Chinese people".

(4) Until the keyboard enters the number 88, then exit the program (use break to exit the loop)

(5) Enter 66 on the keyboard, then the user exits the calculation without displaying "Congratulations..", and directly displays "Restart calculation..

Then calculate the annual salary of the next user.

Then put the above requirements into the new class calculator of the code, which means salary calculation

Enter the numeric code as required

Test results (resulting salary and annual salary)

 

Continue to enter other requirements

 

The calculation is a cyclic calculation state, and the final annual salary result can be obtained by inputting all the requirements until the end.

 

final test result

 

Write a small annual salary calculator program in Java, and the code is not much. If you don’t know the meaning of the code, you can copy it with the teacher. This is also a way of learning. If you write too much, you will understand. The accounting work is suddenly easy. Isn’t it great that you only need to enter the value and get the result without having to convert it step by step.

If you want to know more simple calculation methods to reduce the workload, learn Java quickly. It is easy to get started, easy to understand, and zero foundation is also possible! 

Shangxuetang brings a brand-new Java300 course to students! Java zero-basic self-study Java must-have high-quality tutorial

Java Zero-Basic Xiaobai Self-study Java Essential High-quality Tutorial


Friends who like this article, you can pay attention, please look forward to the next update of the editor~ 

Guess you like

Origin blog.csdn.net/lghtdw1314/article/details/121901975