Write a programme to demonstrate the Dynamic Memory Allocation with some real-time
example. Also, mention the possible ways of intializing and deallocating memory from dynamically
created objects of the class
What is the difference between Virtual Function and Pure Virtual Function? Is it always mandatory
to implement or define all the pure virtual function of the base class into derived class? Justify your
answer.
Choose data members for class Car to define its properties. Create 2 objects of class Car and
overload the operator ‘greater than’ > to compare both the objects concerning their data members
Create 5 objects of class Product, input its product code, name and quantity and write into the
FILE. Later, display the data of all objects by reading from the FILE
A trolley,mass 5kg moves at 4m.s east across a frictionless horizontal surface. A brick of mass 1.5kg is dropped onto the trolley . Calculate the change in momentum of the 5kg trolley
A firm operates in aperfectly competitive market . The market price of it's product is 4 birr and the total cost function is given by TC=1/3Q^3-5Q^2+20Q+50,Where TC is the total cost and Q is the level of output
A. What level of output should the firm produce to maximize it's profit ?
B. Determine the level of profit at equilibrium ?
C. What minimum price is required by the firm to stay in the market ?
The random variable Y = LogX has N(12,6) distribution. Find (a) The pdf of X (b) Mean and variance of X (c) P ( X ≤ 1000
The random variable Y = LogX has N(10,4) distribution. Find (a) The pdf of X (b) Mean and variance of X (c) P ( X ≤ 1000
n a farming community, 30% of the farmers grow oranges only, 10% grow lemons only and 4% grow both oranges and lemons. 1.1) What proportion of farmers in the community grow either oranges or lemons? [3 marks] 1.2) If a farmer is chosen randomly from these in the community, what is the probability that he grows neither oranges nor lemons? [marks] 1.3) Of all the farmers who grow oranges, what proportion grow lemons also?
What proportion of farmers in the community grow either oranges or lemons