A company has many employees & each employee is led by only 1 person except for the CEO (who has no boss). The cost to the company of an employee is the sum of his salary plus the cost to the company of all the people led by him. Given is the following structure :EmployeeData members:NameSalaryisBossnameOfBossMethods:getSalarygetNamea) Define the class/structureb) Write a function getCostToCompany() to calculate the cost to the company of an employee whose name is passed as a parameter to the function
The code was given for a problem and you have to identitfy the logical error in it. That was simple. The code was to merge the Danagrams of 2 words. The danagram of a word is the letters of word arranged in sequential order. Eg danagram of abhinav is aabhinv. merging of danamagram is to merge the danagrams of 2 or more words such that the highest no of occurance are coming for each alphabet. Eg merging of aabhinv and abbhhixz is aabbhhinvxz.
Reservation. there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can receive only 5 seat at a time. If person reserving seat , the care is atken
Latest Answer: #include#include#includestruct rail{ int seatNo; int isEmpty;}seat[67];void reserve(int n);int arrRowState[15];void main(){ for(int i = 0 ; i
A company has some clients and some officers. Also it has some rooms to be used for meetings between client and officers. one officer is responsible for each room. and room has unique room id. a meeting will be arranged only when the officer and client are free and room is also free. the officer and clients must be registered to the system which will give them unique email ids. arrange the meetings.write a program for the given situation.also draw the class diagram for the same.
The forum is going on and administartor find that some people use abusing or bad lnaguage in discussion.so he decided that when he uses such language it should be replaced with "beap". How can this be done?
Latest Answer: A class diagram is a blue print for your objects, Inshort it represents your domain model. Data model represents the actual database structure, this will have the columns of the tables , refrential integrities that is defined among them.Good Luck ...
Latest Answer: I was cleared the Sapient written and they send mail to attend the interview in Delhi on 5th of December, but I have a university exam on 4th of December, I am from Andhra Pradesh What I do now. ...
SIR ON 19 OCT I HAVE FIRST ROUND IN SAPIENT. SO PLS SEND ME THE LATEST PLACEMENT PAPER OF SAPIENT SOON . WITH ANSWER.
Please send me all sapient interview questions with solutions, asap, as i am going for an interview in Sapient on 15th October.
View page [1] 2 3 Next >>

Go Top