1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
bonufazy [111]
3 years ago
13

Suppose you are provided with 2 strings to your program. Your task is to join the strings together so you get a single string wi

th a space between the 2 original strings. This is a common case is coding and you will need to create your output by joining the inputs and adding the space in the middle.
# Input from the command line
import sys
string1 = sys.argv[1]
string2 = sys.argv[2]
Computers and Technology
1 answer:
Mariulka [41]3 years ago
6 0

Answer:

public class TestImport{

   public static void main(String[] args) {

       String string1 = args[1];

       String string2 = args[2];

       System.out.println(string1 +" " +string2);

   }

}

Explanation:

The solution here is to use string concatenation as has been used in this statement System.out.println(string1 +" " +string2);

When this code is run from the command line and passed atleast three command line arguments for index 0,1,2 respectively, the print statment will return the second string (that is index1) and the third argument(that is index2) with a space in-between the two string.

You might be interested in
Uhaul general mechanical questions 2021
hammer [34]

Moving or transportation tools, equipment and methods provides guidance

on the safe an efficient ways to move items.

The correct responses are;

1) (B); 2) B; 3) C; 4) A; 5) D; 6) B; 7) A; 8) B; 9) (A); 10) A; 11) C; 12) B; 13) A; 14) A; 15) B; 16) A; 17) B; 18) A; 19) (C); 20) B; 21) B; 22) A; 23) B; 24) (C); 25) B

Reasons:

1) The correct option is; (B) Withstand a heavier load and add greater stability

  • By sing two wheels on the rear of a truck, heavy loads can be hauled, and transported around corners, and bumpy roads, reducing the possibility of the load tipping the truck over, thereby keeping the truck stable.

2) The correct option is; B

  • The Phillips-head screw is cross shaped, and required a cross shaped screwdriver, which is option B)

3) The correct option is; C

  • The alternator converts mechanical rotational energy into electrical energy, and usually has a compact electrical coil and magnets within its enclosure. The alternator is option C

4) The correct option is; A

  • The rear of a truck moves in the direction the front tires are turned

5) The correct option is; D

  • Option A  and B are pliers, while option B is a spanner, all of which are used to fasten and loosen bolts and nuts. Option D is a screwdriver used to fasten and loosen screws.

6) The correct option is; B

  • The working platform on scaffold B has extra support from the diagonal braces.

7) The correct option is; A

  • The large size tires in refrigerator A increases the contact surface with the road to prevent entering into small holes

8) The correct option is; B

  • Due to the heavier load in the trailer of pick-up truck B, more force is required, to stop the truck according to Newton's Laws of motion, and therefore, a longer distance will be taken to stop by the truck, given similar conditions (magnitude) stopping force available

9) The correct option is; (A)

  • Jumping two batteries to start an automotive with a dead battery requires a Negative to Negative / Positive to Positive  connection, which is option (A)

10) The correct option is; A

  • The air filter will have a open outer rim for the free passage of air.

11) The correct option is; C

  • The scale measures the difference in weight, and the weight depends on the mass of the item. Given that the mass are equal, both weights would be equal, and therefore, the scale would be level.

12) The correct option is; B

  • The smoothest ride is closest to the most weight of the vehicle, which is located in the front, therefore, the area that gets the smoothest ride is option B

13) The correct option is; A

  • The downward pressure is given by the location of the load relative to the wheel on the trailer, that gives either a clockwise or downward moment of force when in position of option A or a counterclockwise or upward moment at B

14) The correct option is; A

  • Gear connected by belt or chain move in the same direction, therefore, the direction of wheel 3 is option A

15) The correct option is; B

  • A tire blowout will not occur because, the pressure is below the recommended pressure. However, the motion of the car will be unstable

16) The correct option is; A

  • When tightening a nut with an adjustable wrench, the direction of turning the wrench is towards the movable jaw, therefore, the option A is correct

17) The correct option is; B

  • The difference between the threads of the given tires is the depth of their grooves, therefore, the tire in option B has more thread.

18) The correct option is; A

  • When loading items on a trailer, the majority of the load should be located in the front, therefore, the correct location for loading only the washer is illustrated by the picture A.

19) The correct option is; (C)

  • The object has a lead, an insulated handle, and a electrical bulb that lights up when there is electricity, therefore, it is used for (C) Checking for electrical current travelling through a wire.

20) The correct option is; B

  • The trailer swings in the opposite direction to the truck.

21) The correct option is; B

  • The ladder in picture B is safer because it spreads more at the base

22) The correct option is; A

  • Most of the weight of the refrigerator act on the wheel in picture A than in picture B

23) The correct option is; B

  • The gear turns towards the screen on the left and away from the screen on the right, which is a direction from left to right.

24) The correct option is; (C)

  • The cotter pin is assembled last to hold the bolt in place, and cannot be assembled before the other parts as it will restrict their movement

25) The correct option is; B

The front tire should be turned in the opposite direction to the intended direction of the trailer.

Learn more here:

brainly.com/question/69628

6 0
2 years ago
An online service provider provides its users with hosted computers, an operating system, and a database management system (DBMS
RoseWind [281]

Answer:

The correct option is B: platform as a service (PaaS)

Explanation:

Platform as a service (PaaS) is regarded as a computing model in the cloud and ensures delivery of both software and hardware tools via a third-party provider. Tools delivered are mostly those that are needed for the development of application and are mostly delivers via the internet to its users. Software and hardware tools are usually hosted in the infrastructure of the PaaS provider host and thus this removes the burden on developers of having to install a physical software or hardware in the development or running of a new application.

7 0
3 years ago
Develop an sec (single error correction) code for a 16-bit data word. generate the code for the data word 0101000000111001. show
natita [175]

Answer:

010100000001101000101

Explanation:

When an error occurs in data bits, the SEC code is used to determine where the error took place. 5 check-bits are needed to generate SEC code for 16-bits data word. The check bits are:

C16=0, C8=0, C4=0,C2=0,C1=1

Therefore the SEC code is 010100000001101000101

7 0
3 years ago
Read 2 more answers
What are the three general methods for delivering content from a server to a client across a network
Tju [1.3M]

Answer:

Answered below.

Explanation:

The three general methods consist of unicasting, broadcasting and multicasting.

Casting implies the transfer of data from one computer (sender) to another (recipient).

Unicasting is the transfer of data from a single sender to a single recipient.

Broadcasting deals with the transfer of data from one sender to many recipients.

Multicasting defines the transfer of data from more than one sender to more than one recipients.

8 0
3 years ago
When installing a Windows 10 an already installed Windows 7 what happen​
astra-53 [7]

Answer:

are u updating it? or u r rooting it?

4 0
2 years ago
Read 2 more answers
Other questions:
  • • Two advertisers A and B
    8·1 answer
  • What is meant by polling mode in communication between software andUART and what is its disadvantage as compared to interrupt mo
    14·1 answer
  • You are given 6 training examples for a binary classification problem as follows:
    12·1 answer
  • The image below shows a weather service map
    13·1 answer
  • Drag the tiles to the correct boxes to complete the pairs.
    13·1 answer
  • Which of the data repositories serves as a pool of raw data and stores large amounts of structured, semi-structured, and unstruc
    9·1 answer
  • In 1980, IBM's cheapest computer was more affordable than Apple's.<br><br><br> True<br><br> False
    10·1 answer
  • Rachelle is writing a program that needs to calculate the cube root of a number. She is not sure how to write the code for that
    10·2 answers
  • The direction of a ratchet is reversed by _______________________.
    14·1 answer
  • What is the accurate description
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!