Question: Programming language is C 3.. Calculate employee salary Given the information of N employees, including name, basic salary, floating salary and expenditure, you are required

 Programming language is C 3.. Calculate employee salary Given the information

Programming language is C 3.. Calculate employee salary Given the information of N employees, including name, basic salary, floating salary and expenditure, you are required to write a program to output the name and actual salary of each employee in given order (actual salary = basic salary + floating salary-expenditure). Input format: The first line is the number of employees. For the following N lines, each line gives information about one employee. The name, basic salary, variable salary and expenditure are separated by one space. The name is non-empty string with length less than 10 and does not contain blank characters. Output format: According to the input sequence, each line outputs the name and actual salary of an employee, separated by one space, and the salary keeps 2 decimal places. Input sample: 3 zhao 240 400 75 gian 360 120 50 zhou 560 150 80 Output sample: zhag 565.00 gian 430.00 zhou 630.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!