Docsity

Lab Task: Date Processing and Employee Salary Calculation, Exercises of Computer Programming

Toggle sidebar
bg1
LAB TASK (12-10-2011)
Q1.
Q2.
Write a program that takes a date as input from user in dd/mm/yyyy format. And display
Day of the year
Number of Past Days of the year
Number of Remaining Days in the year
Week of the year
Write a program that takes Salary as input and
Please Enter Your Job Scale [A, B, C]: ?
Please Enter Your Salary: ?
Dear Employee Your Net Salary is __________
If employee is in Grade A job then he receive (10% Bonus + 1000 Allowance) on Salary
And 3.5% Tax Deduction
If employee is in Grade B job then he receive (2.5% Bonus) on Salary And 1.5% Tax
Deduction
If employee is in Grade C job then he receive (500 Allowance) And No Tax Deduction
docsity.com

Partial preview of the text

Download Lab Task: Date Processing and Employee Salary Calculation and more Exercises Computer Programming in PDF only on Docsity!

LAB TASK (12-10-2011)

Q1.

Q2.

Write a program that takes a date as input from user in dd/mm/yyyy format. And display  Day of the year  Number of Past Days of the year  Number of Remaining Days in the year  Week of the year

Write a program that takes Salary as input and Please Enter Your Job Scale [A, B, C]:? Please Enter Your Salary:? Dear Employee Your Net Salary is __________

If employee is in Grade A job then he receive (10% Bonus + 1000 Allowance) on Salary And 3.5% Tax Deduction

If employee is in Grade B job then he receive (2.5% Bonus) on Salary And 1.5% Tax Deduction

If employee is in Grade C job then he receive (500 Allowance) And No Tax Deduction

docsity.com