Answer:
- public class Main {
- public static void main(String[] args) {
- String testString = "abscacd";
-
- String evenStr = "";
- String oddStr = "";
-
- for(int i=testString.length() - 1; i >= 0; i--){
-
- if(i % 2 == 0){
- evenStr += testString.charAt(i);
- }
- else{
- oddStr += testString.charAt(i);
- }
- }
-
- System.out.println(evenStr + oddStr);
- }
- }
Explanation:
Firstly, let declare a variable testString to hold an input string "abscacd" (Line 1).
Next create another two String variable, evenStr and oddStr and initialize them with empty string (Line 5-6). These two variables will be used to hold the string at even index and odd index, respectively.
Next, we create a for loop that traverse the characters of the input string from the back by setting initial position index i to testString.length() - 1 (Line 8). Within the for-loop, create if and else block to check if the current index, i is divisible by 2, (i % 2 == 0), use the current i to get the character of the testString and join it with evenStr. Otherwise, join it with oddStr (Line 10 -14).
At last, we print the concatenated evenStr and oddStr (Line 18).
Answer:
vapor fraction = 0.4 and 0.08
Explanation:
At reasonably high temperatures, a mixture will exist in the form of a sub cooled liquid. Between these extremes, the mixture exists in a two phrase region where it is a vapor liquid equilibrium. From a vapor-liquid phase diagram, a mixture of 40% A, 39% B, and 21% C separates to give the vapor compositions of 0.4 and 0.08.
Answer:
Đường dây siêu cao áp 500kV: Những chuyện giờ mới kể ... Ngày 27/5/1994, hệ thống đường dây điện siêu cao áp 500kV Bắc - Nam chính thức đưa ... Tại thời điểm đó, các nước như Pháp, Úc, Mỹ khi xây dựng đường dây dài nhất ... và chế ra các máy kéo dây theo đặc thù công việc của từng đơn vị.
Explanation:
Given:
diameter of sphere, d = 6 inches
radius of sphere, r =
= 3 inches
density,
= 493 lbm/ 
S.G = 1.0027
g = 9.8 m/
= 386.22 inch/ 
Solution:
Using the formula for terminal velocity,
=
(1)

where,
V = volume of sphere
= drag coefficient
Now,
Surface area of sphere, A = 
Volume of sphere, V = 
Using the above formulae in eqn (1):
= 
=
= 
Therefore, terminal velcity is given by:
=
inch/sec
Answer: (a) 9.00 Mega Newtons or 9.00 * 10^6 N
(b) 17.1 m
Explanation: The length of wall under the surface can be given by

The average pressure on the surface of the wall is the pressure at the centeroid of the equilateral triangular block which can be then be calculated by multiplying it with the Plate Area which will provide us with the Resultant force.
![F(resultant) = Pavg ( A) = (Patm + \rho g h c)*A \\= [100000 N/m^2 + (1000 kg/m^3 * 9.81 m/s^2 * 25m/2)]* (140*25m/sin60)\\= 8.997*10^8 N \\= 9.0*10^8 N](https://tex.z-dn.net/?f=F%28resultant%29%20%3D%20Pavg%20%28%20A%29%20%3D%20%28Patm%20%2B%20%20%5Crho%20g%20h%20c%29%2AA%20%5C%5C%3D%20%5B100000%20N%2Fm%5E2%20%2B%20%281000%20kg%2Fm%5E3%20%2A%209.81%20m%2Fs%5E2%20%2A%2025m%2F2%29%5D%2A%20%28140%2A25m%2Fsin60%29%5C%5C%3D%208.997%2A10%5E8%20N%20%5C%5C%3D%209.0%2A10%5E8%20N)
Noting from the Bernoulli equation that

From the second image attached the distance of the pressure center from the free surface of the water along the surface of the wall is given by:
Substituting the values gives us the the distance of the surface to be equal to = 17.1 m