starlight company has revised their employees salaries. they had a certain criteria on which they decided the total increment value of employee on their salary, following is the criteria:
20% increase if he has only worked on company's local projects
25% increase if he has only worked on company's international projects
30% increase if he has worked on company's both local & international
Now you are required to ask from 5 employees salary.
Build a class Project with id(int) , desc (String), duration (int) , budget (double) and members (ArrayList of Workers). Provide a parameterized constructor Project (int id, String desc, double budget). The member array will be initialized as empty array and the initial duration of the project will be 0 b. Provide setters for description and budget and getters for all except members list
Provide a method getTotalCost() that calculates the total cost of the project by summing the budget and the salary of each member of the project. The salary of each member can be found by calculating an appropriate method of the Worker class .
Build a class Department having id (int), address (String) and projects (array list of projects) and workers (array list of workers) a. Provide parameterized constructor Department (String address) which initialized id randomly and array lists as empty array lists b. Provide getters for id and address and setter for address only.
Provide a method getDepartmentTotalBudget() that calculates the total cost of each project of the department and adds it up to get the total budget (You will call appropriate method of the Project instances to get the project costs). Please provide in department class void addProjectWork(int pid, int wide, int hours) This will add the hours to the worker of the given project. In this you will need to call the appropriate method of the project class i.e addMemberHours which adds the hours for the specified member as well as add to duration of the project
Write a program to determine if a string S2 is a rotation of anothe string
Question 3 [5 Marks]
You are an employee of a marketing organization that pays you a monthly salary of Ksh. 10,000 if you work for the recommended 160 hours a month (Monday - Friday, 9am - 5pm, for a month). This salary can however fluctuate based on the number of hours worked, in that if you work for more than the recommended working hours ie above 160 hours, you earn an extra 10% of your salary but if you work for less than 160 hours, you will be deducted 10% of your salary. With the aid of a SWITCH CASE select structure Implement a program written in C++ that would help the finance department calculate your monthly salary based on the hours worked being the input value of the program.
write a code for bresenham line drawing algorithm in processing.org
The whole system allows up to 10 processes currently stay in the memory, only one of them is running on the CPU, while the others are either in the Ready Queue, or blocked in the Disk Queue (i.e. waiting for disk I/O). Each process has its PCB. just follow the format in the textbook. For memory management, you may choose paging (page size 64 byte or larger) or other management methods. No requirement on
deadlock prevention or virtual memory.
9. The text is given. Display the numbers in the text.
11. File components-strings. Determine the number of characters in each line.