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

Instructions for writing two programs: one for processing a given date and displaying related information (day of the year, past days, remaining days, and week number), and another for calculating an employee's net salary based on their job grade and salary input. The document also includes examples of user prompts for job grade and salary.

Typology: Exercises

2011/2012

Uploaded on 07/13/2012

ekbal
ekbal 🇮🇳

3.3

(4)

46 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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