
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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
1 / 1
This page cannot be seen from the preview
Don't miss anything!

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