Answer:well u can use to make a shelter but that's all I can think of ??
Explanation:
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:
d= 4.079m ≈ 4.1m
Explanation:
calculate the shaft diameter from the torque, \frac{τ}{r} = \frac{T}{J} = \frac{C . ∅}{l}
Where, τ = Torsional stress induced at the outer surface of the shaft (Maximum Shear stress).
r = Radius of the shaft.
T = Twisting Moment or Torque.
J = Polar moment of inertia.
C = Modulus of rigidity for the shaft material.
l = Length of the shaft.
θ = Angle of twist in radians on a length.
Maximum Torque, ζ= τ × \frac{ π}{16} × d³
τ= 60 MPa
ζ= 800 N·m
800 = 60 × \frac{ π}{16} × d³
800= 11.78 × d³
d³= 800 ÷ 11.78
d³= 67.9
d= \sqrt[3]{} 67.9
d= 4.079m ≈ 4.1m
They all share the way that they are fundamentally designed: if they are quite complex, they will share the same basic logic foundations, like the way that the programming languages work. They also all share the method of construction and common and fundamental electronic components, like resistors, capacitors and transistors. As we humans design them, they make logical sense to at least someone, and probably only discounting the internet, you can probably draw logic diagrams and whatever to represent how they work.
Because they are designed by Humans, in a way they all mimic how our brains and society work. Also, as yet there are no truly intelligent technological systems, and are only able to react to a situation how they have been programmed to do so.
Answer and Explanation:
• 1 thread awaits the incoming request
• 1 thread responds to the request
• 1 thread reads the hard disk
A multithreaded file server is better than a single-threaded server and a finite-state machine server because it provides better response compared to the rest and can make use of the shared Web data.
Yes, there are circumstances in which a single-threaded server might be better. If it is designed such that:
- the server is completely CPU bound, such that multiple threads isn't needed. But it would account for some complexity that aren't needed.
An example is, the assistance number of a telephone directory (e.g 7771414) for an community of say, one million people. Consider that each name and telephone number record is sixty-four characters, the whole database takes 64 MB, and can be easily stored in the server's memory in order to provide quick lookup.
NOTE:
Multiple threads lead to operation slow down and no support for Kernel threads.