At the end of a financial year a company decided to give bonus for their employees. The bonus for each employee is calculated as n times of their basic salary. n is a number between 0 and 2.
You are asked to write a C program to calculate the bonus given for the employees.
Write a function called calcNoOfTimes() to calculate and return the number of times for each employee. Number of times depend on the employee category as shown in the following table.
Employee Category No of times
1 1.0
2 1.5
Other ( 3 - 9) 2.0
In your main function enter the employee category and the salary of an employee from the keyboard. Calculate and display the bonus given for the employee using the above implemented functions.
Enter Salary : 15000.00
Enter employee number : 2
Bonus : 22500.00
Write a function to sort data. (in increasing order) in an array using
a. pass by value
b. and pass by reference.?
Write a. program that inputs a string value from the user and displays it in
reverse using pointer.?
Using the information above, draw a diagram to illustrate the file and folder structure, and permission strategy for the H:\ and W:\directories.
Using the information above, draw a diagram to illustrate the file and folder structure, and permission strategy for the H:\ and W:\directories.
Write a program that prompts the user to enter a person’s date of birth in numeric form such as 8-27-1980. The program then outputs the date of birth in the form: August 27, 1980. Your program must contain at least two exception classes: invalidDay and invalidMonth. If the user enters an invalid value for day, then the program should throw and catch an invalidDay object. Follow similar conventions for the invalid values of month and year. (Note that your program must handle a leap year.)