Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

There is a class Team, that holds information about the team name, number of players in the team, and player’s code. Design the constructor function that decides the number of player in the team and initializes code for each player. Create a team and display its all data. (Implement dynamic memory allocation)

Create a ticketing system code using the following:


If else statement


User type


Switch statement


String


Looping (if possible)

Create EmployeeSalary as parent interface to store basic_sal, housing_all and transport_all. The values for these three items are fixed for all Employee and has abstract function calculateSalary


Create three objects: prog, adm and lib, for programmer, admin and librarian respectively to access the properties in Employee class.


Create a staff/worker information system using C Struct where you’ll be able to –


a ) Insert staff/worker details with id, name and monthlySalary


b ) Display staff/worker details (searched by id)


c ) Update monthlySalary of a staff/worker

Rob is fond of collecting coins but unfortunately,sometimes he has to sell a coin to get other coins.he puts all his coins one over the other in a column.

(0,i):Add coin with value i to the collection.

(1,0):sell a coin.

Selling a coin:For selling a coin ,he picks up the top coin in the coloumn if he constraint A is satisfied.Constraint A:Rob can only sell the coin if the coin collection value is more than Y.

Upon removal ,the coin collection value goes to the previous value.Initially,with 0 coins ,coin collection value is 0.

Adding a Coin:on adding a coin of value i to the collection the coin collection value increments via the following prodcedure.

If the coin collection had>=X value then current total value is X+i else X+2*i.

Rob needs to find and return the final value of coin collection after Q operations.

Note:Initially,the value X is 0 and not X.

Ex1:

i/p1:10(deciding increment)

i/p2:0(selling coins)

i/p3:1(no of operations)

i/p4:{{0,5}}

o/p:10




Write a program to overload operators in the same program by writing suitable operator member functions for following set of expressions:


O2=++O1;

O3=O2--;

O4=!O3;

O5=-O4;


[Here O1,O2,O3,O4 and O5 are objects of a class “overloading”, and this class is having one integer data member]


given an integer value N as input write a program to print a shaded diamond of 2 *N -1 rows using an asterisk characters

if the sequence number is 8001 for the SYN flag and sequence number for SYN + ACK is 15000 from server then what is the acknowledgement number for SYN + ACK






15001




8001




8002




15002


While using a computer a user the ALT-TAB key to switch between applications. The ALT-TAB window works on the principle of holding the ALT key for MRU listening. Hence the applications arrange themselves in such a way that the most recently used application will be the first them in the ALT TAB window and so forth.


You are the list of opened applications and the number of times that the user presses the ‘Tab key’ to switch between applications. Find the final arrangements of applications in the ALT-TAB window.


Example 1:


Input1:4


Input1:3


Input1: {1,2,3,4}


Output: {3,1,2,4}


Explanations are open .Holding the ALT key the user presses TAB key3 times. This pops up application number 3.hence 3 is the most active application in the ALT-TAB panel.


Example 2:


Input1:10


Input1:7


Input1:{4,1,3,7,6,8,5,2,10,9}


Output:{5,4,1,3,7,6,8,2,10,9}


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS