Friday 30 September 2022

What is Relational Operator in C++, JavaScript, Python, C Language |What is Relational Operator in Programming Language |What is Operator in programming Language |C++ Operators |How Many Operators are in C++ Language |What is Operators in Computer |What is Relational Operator in Computer



-:   Relational Operators  :-

     Operators are those symbols which are used between operands to perform Mathematical and Logical operations.

    Relational Operators are those symbols which are used to establish a relationship and compare the values of Two operands.

In the relational operator following symbols are used -
[ <, >, ==, !=, <=, >= ]

_________________________________________________________
see an example of relational operator-

#include<iostream>
using namespace std ;
int main() {
    int a=5, b=10 ;       
       if(a==b) 
            cout<<"both a and b are equal" ;
       else
            cout<<"a and b are not equal" ;
    return 0 ;
} 
_________________________________________________________
Output:-        a and b are not equal. 
_________________________________________________________
_________________________________________________________
see one another example and compare it with the example given above - 
#include<iostream>
using namespace std ;
int main() {
    int a=5, b=5 ;        //here a and b both are equal. 
       if(a==b) 
            cout<<"both a and b are equal" ;
       else
            cout<<"a and b are not equal" ;
    return 0 ;
}
_________________________________________________________
Output:-          both a and b are equal. 
_________________________________________________________


let's understand that actually what is happening above - 

    We took two variables named "a" and "b", both of these variables containing integer type data. Now we established a relation (==) between these two variables. 
     if ( after establishing the relation we gave a condition that if both variables are equal so what to do. we said that if values of both variables are equal so do this ๐Ÿ‘‰ simply print a statement "both a and b are equal" in output screen.) 
 
    else(after establishing the relation we gave a condition that if both variables are not equal so what to do. we said that if values of both variables are not equal so do this ๐Ÿ‘‰ simply print a statement "a and b are not equal" in output screen.) 

prog1:-   in the 1st program, 5 and 10 are not equal, so we got  "a and b are not equal" in the output screen. 

prog2:-   in the 2nd program, 5 and 5 are equal, so we got  "both a and b are equal" in the output screen. 




MUST SEE :- 















Wednesday 28 September 2022

What is Class and Object in C++ Hindi Explain |What is Class and Object in C language in hindi |What is Class & Object in Programming languages in hindi |What is Class in Programming language | What is Object in Programming language | Class and object in Programming Language C++, JavaScript explain in hindi

        -:  Class & Object in C++  :-


Class:-

   C++ เคฎें, Class เค…เคชเคจे เคธ्เคตเคฏं เค•े เค—ुเคฃों(Attributes) เค”เคฐ เคตिเคงिเคฏों(Methods) เค•े เคธाเคฅ เคเค• เคฌिเคฒ्เคกिंเค— เคฌ्เคฒॉเค• เคนैं। เคฏเคนां เค—ुเคฃ(Attribute) เค•ा เค…เคฐ्เคฅ เคนै เค…ंเคฆเคฐ เค‰เคชเคฒเคฌ्เคง เคšเคฐ(variable) เค”เคฐ เคตिเคงिเคฏों(Methods) เค•ा เค…เคฐ्เคฅ เคนै เค•เค•्เคทा เค•े เค…ंเคฆเคฐ เค‰เคชเคฒเคฌ्เคง เค•ाเคฐ्เคฏ(Function).


     Class,  เค•िเคธी เคตिเคถिเคท्เคŸ(specific) เคช्เคฐเค•ाเคฐ เค•े เคตिเคทเคฏ เคธे เคธंเคฌंเคงिเคค เคกेเคŸा เคฏा เคœाเคจเค•ाเคฐी เค•े เคธंเค—्เคฐเคน เค•े เคฒिเค  เคเค• เคฌुเคจिเคฏाเคฆी เคธंเคฐเคšเคจा(Basic Structure) เคฏा เคเค• Blueprint เค•เคนा เคœा เคธเค•เคคा เคนै।


เค‰เคฆाเคนเคฐเคฃ เค•े เคฒिเค: -   เคนเคฎाเคฐे เคชाเคธ เคเค• เค•ाเคฐ เคถोเคฐूเคฎ เคนै, เคœเคนां เคตिเคญिเคจ्เคจ เค•ाเคฐें เค‰เคชเคฒเคฌ्เคง เคนैं। เค•्เคฏोंเค•ि เค•ाเคฐें เค…เคฒเค— เคนैं เคฎเคคเคฒเคฌ เค‰เคจเค•े เค—ुเคฃ(Attribute) เคญी เค…เคฒเค— เคนोंเค—े, เคœैเคธे เคฎूเคฒ्เคฏ(Price) , เคฌ्เคฐांเคก เคจाเคฎ(Brand Name) , เคˆंเคงเคจ เคช्เคฐเค•ाเคฐ(Fuel Type). เคคो เคฏเคนां เคช्เคฐเคค्เคฏेเค• เค•ाเคฐ เคธे เคธंเคฌंเคงिเคค personal เคกेเคŸा เค•े เคธाเคฅ เคธเคญी เค•ाเคฐों เค•ी เคœाเคจเค•ाเคฐी เคธंเค—्เคฐเคนीเคค เค•เคฐเคจे เค•े เคฒिเค เคเค• Class เคฌเคจाเคฏा เคœाเคเค—ा।


class CarInfo{

            public:

                  DataType  Price ;

                  DataType  Brand;

                 DataType  FuelType ;

           };



Objects :- 

     Object เคตाเคธ्เคคเคตिเค• เคตिเคถ्เคต เค‡เค•ाเคˆ(real world entity) เคนै เคœिเคธเคฎें เค•ोเคˆ เคญी เค…เคตเคธ्เคฅा(state) เค”เคฐ เคต्เคฏเคตเคนाเคฐ(behavior) เคนोเคคा เคนै। เคฏเคฆि เค‡เคธเค•ा เค•ोเคˆ State เคนै เคคो เคจिเคถ्เคšिเคค เคฐूเคช เคธे เค‡เคธเค•े state  เคธे เคธंเคฌंเคงिเคค เคกेเคŸा เคนोเค—ा เค”เคฐ เคฏเคฆि เค‡เคธเค•ा เค•ोเคˆ  behavior เคนै เคคो เคจिเคถ्เคšिเคค เคฐूเคช เคธे เค‡เคธเค•े behavior เคธे เคธंเคฌंเคงिเคค เคกेเคŸा เคนोเค—ा เค…เคฐ्เคฅाเคค เคจिเคถ्เคšिเคค เคฐूเคช เคธे เค‡เคธเค•ी เค•ोเคˆ เค•ाเคฐ्เคฏเค•्เคทเคฎเคคा(functionality) เคนोเค—ी।

 

    Object เค•े เคจाเคฎ เค•े เคฌाเคฆ เคกॉเคŸ (.) เค‘เคชเคฐेเคŸเคฐ เค•ा เค‰เคชเคฏोเค— เค•เคฐเค•े เคนเคฎ class เค•ी property เค”เคฐ เคตिเคงिเคฏों(Methods) เคคเค• เคชเคนुंเคš(can access) เคธเค•เคคे เคนैं।


basics structure of Class with Object - 

________________________________________________________________________


    #include<iostream>

    using namespace std;

    class CarInfo{

    public:

        int Price  ;

         string BrandName ;

         string FuelType; 

          FunctionName() {

                         Statements

           }

    }

 int main() {

           CarInfo  car1, car2;


                car1.Price = 1500000;

                car2.Price = 8000000;

                 car1.FuelType = "Diesel" ;

                 car2.FuelType = "Petrol" ;

           cout<< "price of car1 = " << car1.Price <<endl;

           cout<< "car1 Fuel Type =" <<car1.FuelType <<endl;

           cout<< "price of car2 = " << car2.Price <<endl;

           cout<< "car2 Fuel Type = " <<car2.FuelType <<endl;

        return 0;

 }

________________________________________________________________________


output:- 

price of car1 = 1500000

car1 Fuel Type = Diesel

price of car2 = 8000000

car2 Fuel Type = Petrol


      According to definition, Class เค•े เค…ंเคฆเคฐ เค•े function เค•ो เคตिเคงि(method) เค•เคนा เคœाเคคा เคนै เค”เคฐ class เค•े เค…ंเคฆเคฐ เค•े เคšเคฐ(variable) เค•ो เค—ुเคฃ(property) เคฏा เคตिเคถेเคทเคคा(Attribute) เค•เคนा เคœाเคคा เคนै। เคฎूเคฒ्เคฏ, เคฌ्เคฐांเคกเคจाเคฎ เค”เคฐ เคซ्เคฏूเคฒ เคŸाเค‡เคช เคจिเคฐ्เคฎिเคค class เค•े เค—ुเคฃ เคนैं เคœเคนां FunctionName() เคเค• เคนी class เค•े เค…ंเคฆเคฐ เคเค• function เคนै।

________________________________________________________________________

Click on image to see clear view 




   Output :-

What is Class and Object in C++ |What is Class and Object in C language |What is Class & Object in Programming languages |What is Class in Programming language | What is Object in Programming language | Class and object in Programming Language C++, JavaScript,


        -:  Class & Object in C++  :-

Class:-

       In the C++, the classes are a building blocks along with their own properties and methods. Here Properties means Variables available inside and methods means Function available inside the class.

    A class is a basic structure or can say a blueprint for a collection of data or information related to any specific kind of Subject.

For Example:-   we have a car showroom with different cars & their properties like price, brand name, fuel type . So here    A class will be created to store All Cars information with data related to the each car.

        class CarInfo{

            public:

                  DataType  Price ;

                  DataType  Brand;

                 DataType  FuelType ;

           };


Objects :- 

    An object is an instance of Class. Object is a real world entity that has any state and behavior. If it has any state means Definitely it would have data related to its state and behavior means Definitely it would have any functionality. 

    By using dott(.) operator after objectName we can access the property and methods of Class.


 basics structure of Class with Object - 

________________________________________________________________________

    #include<iostream>

    using namespace std;

    class CarInfo{

    public:

        int Price  ;

         string BrandName ;

         string FuelType

          FunctionName() {

                         Statements

           }

    }

 int main() {

           CarInfo  car1, car2;


                car1.Price = 1500000;

                car2.Price = 8000000;

                 car1.FuelType = "Diesel" ;

                 car2.FuelType = "Petrol" ;

             cout<< "price of car1 = " << car1.Price <<endl;

             cout<< "car1 Fuel Type = " <<car1.FuelType <<endl;

             cout<< "price of car2 = " << car2.Price <<endl;

             cout<< "car2 Fuel Type = " <<car2.FuelType <<endl;

        return 0;
 }

________________________________________________________________________

output:- 

price of car1 = 1500000

car1 Fuel Type = Diesel

price of car2 = 8000000

car2 Fuel Type = Petrol


      According to the definition , The Function inside the class is called as Method and Variable inside the Class is called Property or Attribute. PriceBrandName and FuelType  are properties of created Class where FunctionName() is a function inside the same Class.

________________________________________________________________________

Click on image to see clear view 



    OUTPUT :-





Must Read:-







Tuesday 27 September 2022

What is Function in programming language in hindi |Programming language Function in hindi | Programming Language me function kya Hai |Computer me function kya Hai |C++ Language me function kya hai |Functions in C++ Language

 -:เคช्เคฐोเค—्เคฐाเคฎिंเค— Language เคฎें Function เค•्เคฏा เคนै? :-

Function 

    Function เค•ोเคก เค•ा เคเค• เคฌ्เคฒॉเค• เคนै, เคœो เคเค• เคฌाเคฐ เคฌเคจाเคฏा เคœाเคคा เคนै เค”เคฐ เคœเคฐूเคฐเคค เคชเคก़เคจे เคชเคฐ เค‡เคธे เคนเคฎाเคฐे เคช्เคฐोเค—्เคฐाเคฎ เคฎें เคฌाเคฐ-เคฌाเคฐ เค‡เคธ्เคคेเคฎाเคฒ เค•िเคฏा เคœाเคคा เคนै।

    Function เคคเคฌ run เค•เคฐเคคा เคนै เคœเคฌ เค‡เคธे เคช्เคฐोเค—्เคฐाเคฎ เค•े เค…ंเคฆเคฐ เคฌुเคฒाเคฏा เคœाเคคा เคนै। เคตिเคญिเคจ्เคจ เค‰เคฆ्เคฆेเคถ्เคฏों (Operations) เค•ी เคชूเคฐ्เคคि เค•े เคฒिเค เคตिเคญिเคจ्เคจ Function เคฌเคจाเคคे เคนैं।

___________________________________________________________

  - Basic Syntax of Function in C++ is written below - 

#include<iostream>

using namespace std;

DataType FunctionName( Parameter1, parameter 2,.......){

       Return WriteOperationToBePerform(example +, -, *, / etc);

int main() {

        cout<<FunctionName(value1, value2,......) ;

    return 0 ;

___________________________________________________________

  - : เค†เค‡เค เคเค• เค‰เคฆाเคนเคฐเคฃ เคฆेเค–ें เค•ि เคซ़ंเค•्เคถเคจ เค•ैเคธे เคฌเคจाเคं เค”เคฐ เค‰เคชเคฏोเค— เค•เคฐें :-


#include<iostream>

using namespace std;

int AddFunc(int X, int Y) {

      return X + Y; } 

int SubFunc(int A, int B) {

     return A - B; } 

int MulFunc(int P, int Q) {

     return P * Q; } 

int DivFunc(int M, int N) {

     return M/N ;} 

int main() {  

       cout<<"Summation of X & Y = " <<AddFunc(10, 5) <<endl;

        cout<<"Subtraction of A & B= " <<SubFunc(50, 20) <<endl;

        cout<<"Product of P & Q = " <<MulFunc(15, 2) <<endl;

        cout<<"Division of M & N = " <<DivFunc(40,20) ;

         return 0 ;

___________________________________________________________


 output :-    Summation of X & Y = 15

                    Subtraction of A & B= 30

                    Product of P & Q = 30

                    Division of X & Y = 2

___________________________________________________________


       Click on image to see clear view



      Output:-


เค†เค‡เค เคธเคฎเคเคคे เคนैं เค•ि เคŠเคชเคฐ เค•्เคฏा เคนुเค† -

   เคธเคฌเคธे เคชเคนเคฒे เคนเคฎเคจे FunctionName SumFunc() เค•े เคธाเคฅ เคเค• Function เคฌเคจाเคฏा เค”เคฐ Function เคฐเคจ เค•े เคธเคฎเคฏ เคœोเคก़े เคœाเคจे เคตाเคฒे Values เค•ो เคถाเคฎिเคฒ เค•เคฐเคจे เค•े เคฒिเค Container เค•े เคฐूเคช เคฎें เคฆो Parameter เคชाเคธ เค•िเค।
    เคœเคนां เคนเคฎเคจे X เค”เคฐ Y เค•ो เค•्เคฐเคฎเคถः Parameter-1 เค”เคฐ Parameter-2 เค•े เคฐूเคช เคฎें เคฒिเคฏा।

     เค‡เคธी เคคเคฐเคน เคนเคฎเคจे เค˜เคŸाเคต, เค—ुเคฃा เค”เคฐ เคญाเค— เค•े เคฒिเค 3 เค…เคจ्เคฏ Function เคฌเคจाเค।
 เคธเคญी Functions เค•ो เคธเคซเคฒเคคाเคชूเคฐ्เคตเค• เคฌเคจाเคจे เค•े เคฌाเคฆ, เคนเคฎเคจे เค‡เคจ Functions เค•ो เค‰เคจเค•े FunctionName [SumFunc(), SubFunc(), MulFunc(), DivFunc()] เคฆ्เคตाเคฐा Call เค•िเคฏा। 

     เค‡เคจ Functions เค•ो เคเค• เคนी เค•्เคฐเคฎ เคฎें เค•ॉเคฒ เค•เคฐเคจा เค†เคตเคถ्เคฏเค• เคจเคนीं เคนै, เคธाเคฅ เคนी เคนเคฎ เคเค• เคฏा เค•เคˆ Functions เค•ो เคญी เค†เคตเคถ्เคฏเค•เคคाเคจुเคธाเคฐ เค•ॉเคฒ เค•เคฐ เคธเค•เคคे เคนैं।

    Function เค•ो call เค•เคฐเคคे เคธเคฎเคฏ , เคชैเคฐाเคฎीเคŸเคฐ -1 เค”เคฐ เคชैเคฐाเคฎीเคŸเคฐ -2 เค•े เคธ्เคฅाเคจ เคชเคฐ เคนเคฎเคจे เค•्เคฐเคฎเคถः 10 เค”เคฐ 5 เคฎाเคจ เคธीเคงे assign เค•िเคฏा เคนैं। เค†เคช เคตเคนां เค•ोเคˆ เคญी value assign เค•เคฐ เคธเค•เคคे เคนैं।

Use of Functions - 

        เคฏเคฆि เคนเคฎ เค•िเคธी special purpose or operation เค•े เคฒिเค เคเค• เคฒंเคฌा program เคฒिเค–เคคे เคนैं เค”เคฐ เคนเคฎें เคฆो เคธंเค–्เคฏाเค“ं เค•ो เค•เคˆ เคฌाเคฐ เคœोเคก़เคจा เคนोเคคा เคนै, เคคो เคเค• เคนी เค•ोเคก เค•ो เคฌाเคฐ-เคฌाเคฐ เคฒिเค–เคจे เค•े เคฌเคœाเคฏ, เคนเคฎ เค•ेเคตเคฒ เค‰เคธ function เค•ो เค•ॉเคฒ เค•เคฐेंเค—े เคœो เคตिเคถेเคท เคฐूเคช เคธे เคฆो เคธंเค–्เคฏाเค“ं เค•ो เคœोเคก़เคจे เค•े เคฒिเค เคฒिเค–ा เค—เคฏा เคนै เค”เคฐ parameter-1 เค”เคฐ parameter-2 เค•े เคธ्เคฅाเคจ เค•ेเคตเคฒ เคฆो เคจเค เคฎाเคจ assign เค•เคฐें  เคœो เคœोเคก़ा เคœाเคจा เคนै।

  •  single purpose เค•ी เคชूเคฐ्เคคि เค•े เคฒिเค เค•ोเคก เค•ी เคชुเคจเคฐाเคตृเคค्เคคि เคธे เคฌเคšเคจे เค•े เคฒिเค।
  •  เคนเคฎाเคฐे program เค•ो เคธाเคซ เคฐเค–เคจे เค•े เคฒिเค।
  •  เคนเคฎाเคฐे program เค•ो เค›ोเคŸा เค•เคฐเคจे เค•े เคฒिเค |

เค‡เคธे เค…เคตเคถ्เคฏ เคฆेเค–ें:-      




What is Operators in C++| Types of Operators in C++ |Types of Operators in C Language |Arithmetic Operator in C++ |What is Operators in Programming Language|Operators in Computer |


-: Operators in Programming Languages :-


Operators - 

        In the programing Languages, operators are those symbols which are used between operands to perform any operation.

For Example :-    4 + 7 = 12

     where, 

         (4) and (7) are Operands 

        (+) and (=) sign are Operators


 Types of Operators in C++ Language :-

  • Arithmetic Operators (+, -, *, /, %) 
  • Relational Operators (<, >, ==, !=, <=, >=) 
  • Logical Operators (&&, ||, !) 
  • Bitwise Operators (&, |, ~, ^, >>, <<) 
  • Increment Decrement Operators (++, - -) 
  • Assignment Operators (=, +=, - =, *=, /=) 
  • Conditional or Ternary Operators (?, :) 
  • Special or Other Operator (sizeof() ) 


Arithmetic Operators - 
        These Operators are used between operands to perform arithmetic mathematical operations. 

____________________________________________________________
   A program to understand Arithmetic Operators :
 
#include<iostream>
using namespace std ;
int main() {
       int a = 10, b = 5;
       int c = a + b;
       cout<<"Addition Of Two Numbers = " <<c <<endl;
   
       int d = a - b ;
       cout<<"Difference of Two Numbers = " <<d <<endl;

       int e = a * b ;
       cout<<"Product of Two Numbers = " <<e <<endl;

      int f = a/b ;
      cout<<"Division of Two Numbers = " <<f <<endl;

      int g = a % b ;
      cout<<"Module of Two Numbers = " <<g ;

  return 0;
}

 ____________________________________________________________

OUTPUT :- 

       Addition Of Two Numbers = 15

       Difference of Two Numbers = 5

       Product of Two Numbers = 50

       Division of Two Numbers =  2

       Module of Two Numbers =  0


where ,   Module

(%) gives us remainder as a results. 

____________________________________________________________

Monday 26 September 2022

What is Function in programming language |what is function in C++ |what is function call in programming language |what is function in computer |What is function in programming

-: Functions in C++ :-

     Function is a block of code, which created once and reused it again and again in our programme anywhere when needed.

      Function runs when it is called inside the program. To serve different purposes(operations) create different functions.


    - Basic Syntax of Function in C++ is written below - 

__________________________________________________________

#include<iostream>

using namespace std;

DataType  FunctionName( Parameter1, parameter 2,.......){

       Return  WriteOperationToBePerformed(example +, -, *, / etc);

int main() {

        cout<<FunctionName(value1, value2,......) ;

    return 0 ;

} 

___________________________________________________________


-:Let's See one example for how to create and use functions:-

#include<iostream>

using namespace std;

int AddFunc(int X, int Y) {

      return  X + Y;    } 

int  SubFunc(int A, int B) {

     return  A - B;    } 

int MulFunc(int P, int Q) {

     return  P * Q;   } 

int DivFunc(int M, int N) {

     return  M/N ;

int main() {

       

       cout<<"Summation of  X & Y = " <<AddFunc(10, 5) <<endl;

        cout<<"Subtraction of A & B= " <<SubFunc(50, 20) <<endl;

        cout<<"Product of  P & Q = " <<MulFunc(15, 2) <<endl;

        cout<<"Division of  M & N = " <<DivFunc(40,20) <<endl;

         return 0 ;

} 

         

___________________________________________________________

 output :-   Summation of X & Y = 15

                    Subtraction of A & B=  30

                    Product of  P & Q =  30

                   Division of  X & Y =  2

 

___________________________________________________________

       Click on image to see clear view




            Output:-


let's understand that what happened above -  

  • firstly we created a function with FunctionName SumFunc() and passed two parameters as container to contain those values which are to be added at the time of function run. 
  • where we took X and Y as parameter-1 and parameter-2 respectively. 
  • similarly we created 3 another functions for subtraction, multiplication and division. 
  • After successfully creating all functions we simply called these functions by their FunctionName [SumFunc(), SubFunc(), MulFunc(), DivFunc()]. it is not necessary to call these functions in same sequence, at a same time we can call either single or multiple functions too as we needed. 
  • On Calling Function, in the place of parameter-1 and parameter-2 we assigned directly values 10 and 5 respectively. You can put any value there. 

Use of functions :-

if we write a lengthy program for any special purpose and we have to add two numbers many times, so instead of writing repeatedly same code, we will simply call the function which is specially written to add two numbers and only assign two new values in the place of parameter-1 and parameter-2 which are to be added. 

  • To avoid repetition of code to serve single purpose. 
  • To keep clean our programme. 
  • To make shorter our programme. 




Must Read :-

What is function in programming language (Hindi explanation)

what is class in programming language C++





Sunday 25 September 2022

zeroth Law of Thermodynamics |First Law of Thermodynamics |Law of conservation of Energy |

 


-:   Thermodynamics Laws  :-


 Zeroth Law :-

            zeroth law of thermodynamics states that if two thermodynamic systems are in thermal equilibrium with third system, so we can say that they all are in thermal with each other .

         in simple words- if system X is in thermal equilibrium with system Y, and system Y is in thermal equilibrium with system Z. Then X, Y, Z will be in thermal equilibrium with each other.

        lets understand this with an example given below - 

    


              if we try to understand this in mathematical manner, so we can explain it like this -

                let         system Xsystem Y   ...........(1)

                             system Ysystem Z   ..........(2)

                       from eq.(1) & (2), we get 

                            system X =  system Z                                                _proved

                   So in the mathematical manner, we can prove the zeroth law of thermodynamics statement.


 First Law or Law of conservation of Energy:- 

            First Law of Thermodynamics states that Energy of the Universe remains same. It neither can be created nor be destroyed, only can be convert into one form to another form.

            in other words- Any thermodynamics system in equilibrium state posses a state called internal energy(E). Between any 2 equilibrium states, the change in internal energy is equal to the difference of the heat transfer into the system and work done by the system.

            lets understand this in detail with a most suitable example- 




        here in the figure shown above, system-A is having higher energy than system-B, and heat transfer takes place between both systems. As we know that heat transfer takes place from higher temperature to lower temperature.

                now Q heat started to travel from higher temperature system-A having energyE1 towards lower temperature system-B having energyE2. But heat Q travelled a path before reaching the system-B that means some work W is done by Q heat done to reach its final destination(system-B). So some Q heat is lost in the form of work W during the travel from A to B. So we can write it as -

E2 - E1 = Q - W

                                            or      ฮ”E = Q - W

as   system-B is taking energy hence E2 is positive.

       system-A is giving energy hence E1 is negative.

 similarly  if work done on system ,so W will be negative.

                if work done by system, so W will be positive.


            where,    

                 E1 = available initial energy of system-A  

                 E2 = available initial energy of system-B 

                 ฮ”E = change in internal energy(E1-E2), 

                W = work done by system during travelling the path, to reach                            the B    = (Q - Q1)

                Q = Total heat, started to travel to reach the system-B

                Q1 = energy lost, in the path travelling from A to B.

  






Saturday 24 September 2022

Difference Between Frame and Chassis | what is frame and chassis in automobile | Types of Frame in automobile | types of chassis in automobile


                            -: Difference Between Frame & Chassis :-                 


       Frame:- 

  •  it is the supporting base structure of  the vehicle without mountings.
  • The chassis is attached to the frame.
  • Frame are made of box, tubular channel or U-shaped section welded or riveted together.
  • In simple words - frames are that structure of a vehicle on which a the mountings (transmission, wheels, steering systems) remains mounted.
  • It bears all the vehicles components as well as passengers load.
    Types of frames - 
  1. Ladder frame
  2. Backbone frame
  3. X-frame
  4. Unibody

        Chassis :-
  • A structure of vehicle including Metallic Frame with other mountings (transmission, wheels, steering systems etc).
  •  As most of the mounting works are done on the frame, so it is also called as framework of vehicle.
  • it can be easily understand as    Chassis = frame + mountings.

    Types of Chassis - 
  1. Conventional or Framed Chassis.
  2. Non-conventional or Frameless Chassis.










Friday 23 September 2022

What is Stress | Difference Between Stress and Strain | What is Strain ? Stress & Strain formula |What is Stress in Engineering Mechanics | Unit of Stress

 


  -:  Difference between STRESS and STRAIN :-


Stress :-

    • Stress is the intensity of internal resisting forces (to oppose the applied pressure) developed at a point. 
    • in other words - it is a internal resistive force to deformation per unit area.
    • Stress may act either normal or parallel to the surface. 
    • Magnitude  of the stress at a point is unequal in all the directions.
    • Stress can be Tensile, Compressive or Shear type.
    • Due to stress Pressure will not be developed.

           Stress = F/A         in N/meterSq.

where F = internal resistive force developed (external)  in N
                                       A = Area in  meterSq. 


Strain:-

    • The ratio of change in length to actual length is called Strain.
    • When a force get applied on the body, length of that body either increases or decreases.
    • If length of body increases means the applied force is Tensile(+F) where if length decreases means the applied force is Compressive(-F) in nature.  
    • In other words, The ratio of Change in dimension to the Original Dimension is called Strain.

                            Strain(ฮต) =   ฮ”L/L  = (L1 - L)/L


                    Where  ฮ”L = change in length

                                   L = actual length.

                                 L1 = New Length after force applied.

 


[Note:-  in case of compressive force, Direction of forces shown in the figure will be inward.]


 Difference between Pressure & Stress ? 

Difference between Frame & Chassis ?

 

-

            

Thursday 22 September 2022

Difference Between Pressure and Stress | What is Stress | What is Pressure |Stress in Engineering

 

 -: Pressure and Stress :

Pressure  :-

  • Pressure represents the intensity of external or outside forces exerting or acting at a point. 
  • in other words - it is the amount of external force applied per unit area.
  • Magnitude of the Pressure at a point, remains same in all the direction.   
  • Due to pressure Stress will be developed.
        Pressure = F/A          in N/meterSq.

where F = External  applied force (external)  in N
            A = Area in  meterSq. 



Stress :-

  • Stress is the intensity of internal resisting forces (to oppose the applied pressure) developed at a point. 
  • in other words - it is a internal resistive force to deformation per unit area.
  • Stress may act either normal or parallel to the surface. 
  • Magnitude  of the stress at a point is unequal in all the directions.
  • Stress can be Tensile, Compressive or Shear type.
  • Due to stress Pressure will not be developed.

           Stress = F/A         in N/meterSq.

where F = internal resistive force developed (external)  in N
           A = Area in  meterSq.