Answer:
The solution code is written in C.
- #include <stdio.h>
- #include <string.h>
- #include <stdbool.h>
- bool isPalindrome(char str[])
- {
- int length = strlen(str) ;
- bool status = true;
- int i;
-
- for(i = 0; i < length / 2; i++){
-
- if(str[i] != str[length - 1 - i]){
- status = false;
- return status;
- }
- }
-
- return status;
- }
Explanation:
Firstly, we need to include libraries<em> stdio, string </em>and<em> stdbool </em> (Line 1 -3)<em>.</em>
Next, we create a function<em> isPalindrome</em> that take one string parameter and return a boolean value (Line 5).
We use function strlen to get the length to the input string (Line 7). At this point, let's set our <em>status</em> as true (Line 8).
We create a for-loop to traverse through the characters inside the input string (Line 11). Within the loop, we set a condition that compare the first letter to the letter started from the last index (Line 13). If the letters are not matched, this means the input string is not a palindrome and set the status as false and return it as output (Line 14 - 15).
Otherwise, the for-loop will just terminate without running the statements within the if-block and return status as true (Line 19).
Answer:
(a) high voltage = 19.9 kV, low voltage = 7.97 kV, turns ratio = 2.50:1, apparent power = 133 kVA
(b) high voltage = 19.9 kV, low voltage = 13.8 kV, turns ratio = 1.44:1, apparent power = 133 kVA
(c) high voltage = 34.5 kV, low voltage = 7.97 kV, turns ratio = 4.33:1, apparent power = 133 kVA
(d) high voltage = 34.5 kV, low voltage = 13.8 kV, turns ratio = 2.50:1, apparent power = 133 kVA
Explanation:
The turn ratio can be estimated by taking the ratio of the values of the high voltage and the low voltage. For example, the turn ratio for (a) is 19.9 kV/7.97 kV = 2.50:1. Similarly, the apparent power for each transformer is calculated as 400 kVA/3 = 133 kVA. Furthermore, the high and low voltages for the Δ are the same for the three-phase transformer i.e. 34.5 kv/13.8 kV. The high and high voltages for Y connection is calculated as 34.5 kV/1.73 = 19.9 kV and 13.8 kV/1.73 = 7.97 kV.
Answer:
(a) 148.148 lb/ft^2
(b) 62.245 ft/s
Explanation:
In this question, we are asked to calculate the divergence dynamic pressure at sea level and the divergence airspeed at sea level of a torsionally elastic wind tunnel of model of uniform wing.
Please check attachment for complete step by step solution
Answer: 100% (double)
Explanation:
The question tells us two important things:
- Mass remains constant
- Volume remains constant
(We can think in a gas enclosed in a closed bottle, which is heated, for instance)
In this case we know that, as always the gas can be considered as ideal, we can apply the general equation for ideal gases, as follows:
- State 1 (P1, V1, n1, T1) ⇒ P1*V1 = n1*R*T1
- State 2 (P2, V2, n2, T2) ⇒ P2*V2 = n2*R*T2
But we know that V1=V2 and that n1=n2, som dividing both sides, we get:
P1/P2 = T1/T2, i.e, if T2=2 T1, in order to keep both sides equal, we need that P2= 2 P1.
This result is just reasonable, because as temperature measures the kinetic energy of the gas molecules, if temperature increases, the kinetic energy will also increase, and consequently, the frequency of collisions of the molecules (which is the pressure) will also increase in the same proportion.
Answer:
aluminum bar carrying a higher load than steel bar
Explanation:
Given data;
steel abr
diameter = 5 mm
stress = 500 MPa
aluminium bar
diameter = 10 mm
stress = 150 MPa
we know
stress = laod/area
for steel bar
![500 = \frac{P}{\frac{\pi}{4} 5^2}](https://tex.z-dn.net/?f=500%20%3D%20%5Cfrac%7BP%7D%7B%5Cfrac%7B%5Cpi%7D%7B4%7D%205%5E2%7D)
solving for P
P = 9817.47 N
for Aluminium bar
![150 = \frac{P}{\frac{\pi}{4} 10^2}](https://tex.z-dn.net/?f=150%20%3D%20%5Cfrac%7BP%7D%7B%5Cfrac%7B%5Cpi%7D%7B4%7D%2010%5E2%7D)
solving for P
P = 11790 N
aluminum bar carrying a higher load than steel bar