What is message passing? Demonstrate the utility of message passing with the help of an example code in C++.

BACHELOR OR COMPUTER APPLIATIONS (BCA) (REVISED)Term-End ExaminationJune, 2020BCS-031 : PROGRAMMING IN C++ Message passing is a communication mechanism used in various programming paradigms, such as object-oriented programming and concurrent programming, to allow objects or processes to exchange information and coordinate their actions. It involves sending messages between different entities to request actions or share data. … Read more

Program in C++ to add two 3 x. 3 matrices.

Write a program in C++ to add two 3 x. 3 matrices. Define proper class, constructor, destructor and methods in the program. BACHELOR OR COMPUTER APPLIATIONS (BCA) (REVISED)Term-End ExaminationJune, 2020BCS-031 : PROGRAMMING IN C++ Here’s an example of a C++ program that defines a Matrix class, including a constructor, destructor, and a method to add … Read more

What is the area of equilateral triangle?

formula-dishalekh

The area of an equilateral triangle can be calculated using the below formula: Area of equilateral triangle formula Area = (√3/4) * (side length)^2 where “side length” is the length of one of the sides of the equilateral triangle. Formula Of Mensuration Formula For Mean Area Of Trapezium Formula Formula Of A Cube Volume Of … Read more

What is the circumference of a circle formula?

formula-dishalekh

The formula for circumference of a circle C = 2πr Where: The circumference of a circle is the distance around the edge of the circle. It is equal to 2 times the value of π (pi) multiplied by the radius of the circle. Area Of An Equilateral Triangle Area Of An Isosceles Triangle Formula Formulas … Read more

What is the formula of sin2x?

formula-dishalekh

The formula for sin(2x) sin(2x) = 2 sin(x) cos(x) Where The formula expresses the sine of 2x in terms of the sine and cosine of x. The formula can be derived from the addition formula for sine: So, the formula for sin(2x) is equal to 2 times the product of the sine and cosine of … Read more

What is the formula of derivatives?

formula-dishalekh

The formula for derivatives The formula for the derivative of a function is given by the limit of the difference quotient: f'(x) = lim h -> 0 (f(x + h) – f(x)) / h The limit represents the rate of change of the function as h approaches zero. There are many rules and techniques for … Read more

What is the moment of inertia formula?

formula-dishalekh

Formula for moment of inertia Moment of inertia is a measure of an object’s resistance to rotational motion around a given axis. The formula for the moment of inertia (I) of an object depends on its shape and the axis about which the moment of inertia is being calculated. Some common formulas for different shapes: … Read more