Answer:
The main problem is the incorrect use of assignment operator, the correct way to check if two number are equal is
num1==num2
Explanation:
Here we have a created a simple function which takes two input arguments num1 and num2. In the body of the function we have used if condition to find out whether the two number are equal or not. If condition is true then print that values are equal. If condition is false then print that values are not equal. In the driver code, we have called the function two times with different values of num1 and num2 to check if it is working correctly.
The implementation logic is same in all these programming languages, the only difference the syntax.
Python Code:
def checkEquality(num1, num2):
if num1 == num2:
print("The values are equal.")
else:
print("The values are not equal.")
Driver Code:
checkEquality(2,5)
checkEquality(3,3)
Output:
The values are not equal.
The values are equal.
C++ Code:
void checkEquality(int num1, int num2) {
if (num1 == num2)
cout<<"The values are equal."<<endl;
else
cout<<"The values are not equal."<<endl;
}
Driver Code:
#include <iostream>
using namespace std;
void checkEquality(int num1, int num2);
int main()
{
checkEquality(2,5);
checkEquality(3,3);
return 0;
}
Output:
The values are not equal.
The values are equal.
Answer:
The laminar flow is generally given in high viscosity fluids such as honey or oil, it has the characteristic of flowing in an orderly manner, the walls of the tube have a zero speed while in the center it has a maximum speed.
turbulent flow is characterized by fluid velocity vectors presenting themselves in a disorderly manner and in all directions.
I attached the drawings for the velocity profile in laminar and turbulent flow.
Answer
TL/TH- TL
Because we know that power coefficient is. = QL/QH-QL
=so using this for performance we have
=>Perf= TL/(TH-TL)
Answer:
A. True
The bilinear transform is employed in digital signal processing and discrete-time control theory which helps in transforming continuous-time system representations to discrete-time
Answer:
surface temperature = 128.74⁰c
Explanation:
Given data
diameter of cable = 5 mm = 0.005 m
length of cable = 4 m
T∞ ( surrounding temperature ) = 20⁰c
voltage drop across cable ( dv )= 60 V
current across cable = 1.5 A
attached to this answer is the comprehensive analysis and solution to the problem.
The assumption made is not a good one since the calculated Ts ( surface temperature ) is very much different from the assumed Ts