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

1)A random variable is defined as 

  (a)Construct the Probability distribution function of X.

  (b) Compute;

     (i) the standard deviation of X            

  (ii) E                      

    (iii)Var



given a number of mangoes and number of persons. Find the number of ways to distribute identical mangoes among identical persons in python

A. Drivers using the Accra-Tema motorway have to stop at the tollbooth to pay their tolls. Motorists arrive at the tollbooth at a rate of 200 per 8-hour-day. The single tollbooth attendant can serve, on average, 220 motorists per 8-hour-day.

a. What is the average minutes’ time a motorist waits in the queue to receive service at the toll?

b. What is the average number of motorists in the queuing system?

Management of the motorway likes to have its operators working 90% of the time. What must the arrival rate be for the tollbooth attendant to be as busy as management would like?


Write a program to swap the data members in two objects, using pass by reference for objects.


Write a program which displays a given character, n number of times, using a function. When the n value is not provided, it should print the given character 80 times. When both the

character and n value is not provided, it should print ‘*’ character 80 times. 

Write the above program in two ways: -

(i) By using function overloading

(ii) By using default arguments


LA is an array with 10 elements. Your task is to write a C++ program that will perform

sequential search for an element and compute the sum of squares of the location of the

element sought for


A class octopus has a dummy head which has four pointers – left, right, top and bottom. You have to build link list in these 4 directions depending on the input commands. There will be four types of commands – L, R, T and B. Their specifications are given below:

L x: insert x in the left link list // Where x is an integer number.

R x: insert x in the right link list

T x: insert x in the top link list

B x: insert x in the bottom link list

Input: Test case will start with a number n indicating the number of lines following it.

Output: you have to give output that which link list (Left, Right, Top and Bottom) has maximum sum of values. See the sample input and output.

Sample input

14

L 3

L 15

L 1

R 17

T 9

T 10

B 13

T 5

L 8

R 3

R 12

B 2

B 3

B 4

Sample output

Right Link List Has Maximum Sum 32


Write a program to create a menu-driven calculator that performs arithmetic operations (+, -, *, /, and %).

The input will be a single line containing 2 integers and operator(+, -, *, /, and %) similar to 3 + 5.

If given operator is "+", print sum of two numbers.

"-", print subtraction of the two numbers.

"*", print multiplication of the two numbers.

"/", print division of the two numbers.

"%", print modulus operation of the two numbers.

Explanation

For EX, if the operator is "+" and two numbers are 3 and 5. As it is addition, your code should print the sum of two numbers (3 + 5), which is 8. Similarly, if it is "*" and two numbers are 2 and 5.

As it is a multiplication, your code should print result of multiplication of 2 numbers (2 * 5), which is 10.

Similarly, if operator is "-" & two numbers are 10 and 9.As it is subtraction operator, your code should print result of subtraction of 2 numbers (10 - 9), which is 1.





 

1.      Write a C++ program for function template to linear and binary search of an array.

Prefix Suffix

Write a program to check the overlapping of one string's suffix with the prefix of another string.Input


The first line of the input will contain a string A.

The second line of the input will contain a string B.Output


The output should contain overlapping word if present else print "No overlapping".Explanation


For example, if the given two strings, A and B, are "ramisgood" "goodforall"

The output should be "good" as good overlaps as a suffix of the first string and prefix of next.

Sample Input 1

ramisgood

goodforall

Sample Output 1

good

Sample Input 2

finally

restforall

Sample Output 2

No overlapping




LATEST TUTORIALS
APPROVED BY CLIENTS