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
Rzqust [24]
3 years ago
15

JAVA

Computers and Technology
1 answer:
agasfer [191]3 years ago
7 0

import java.util.Scanner;

public class JavaApplication53 {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter Strings:");

       String txt1 = scan.nextLine();

       String txt2 = scan.nextLine();

       String newTxt = "";

       if (txt1.length() != txt2.length()){

           System.out.println("error");

       }

       else{

           for (int i = 0; i<txt1.length(); i++){

               newTxt += txt1.charAt(i)+""+txt2.charAt(i);

           }

       }

       System.out.println(newTxt);

   }

   

}

I hope this helps!

You might be interested in
For this problem, use a formula from this chapter, but first state the formula. Frames arrive randomly at a 100-Mbps channel for
brilliants [131]

Answer:

(a). 0.1 × 10^-3 = 0.1 msec.

(b). 0.11 × 10^-3 = 0.11 msec.

(c). 1 × 10^-3. = 1 msec.

Explanation:

So, in order to solve this problem or question there is the need to use the Markov queuing formula which is represented mathematically as below;

Mean time delay, t = /(mean frame length,L) × channel capacity, C - frame arrival rate, F. ---------------------------------(1).

(a). Using equation (1) above, the delay experience by 90 frames/sec.

=> 1/(10^-4× 10^8 - 90). = 0.1 × 10^-3= 0.1 msec.

(b). Using equation (1) above, the delay experience by 900 frames/sec.

=> 1/(10^-4× 10^8 - 900). = 0.11 × 10^-3= 0.11 msec.

(c). Using equation (1) above, the delay experience by 90 frames/sec.

=> 1/(10^-4× 10^8 - 9000). = 1 × 10^-3= 1 msec.

Hence, the operating queuing system is; 900/10^-4 × 10^8 = 0.9.

8 0
4 years ago
1 Explain the difference between using a computer program and programming a computer.
Zanzabum
Well when you are using a computer program you are using a program. If you are programming a computer you are making the computer do a desired task. 
7 0
3 years ago
In c++ when you create a class and you don't want to put the class and the main program in one source file and let's say you cre
Alik [6]
Usually, you make a header file of the class with it's prototype and include it in your main program using double quotes instead of <>. This is how it's done with libraries that are compiled. In your case, this leaves the Class.cpp file unlinked. You could put an include at the end of the header file, or in this case I believe that you can just include the Class.cpp in your main source:

#include "Class.cpp"
8 0
3 years ago
The Mac OS was the first to use a graphical user interface.<br><br><br> False<br><br> True
Phoenix [80]
True
Hope this helps
5 0
3 years ago
What is the gear ratios of a gear train with an input gear of 48 teeth and an output gear of 12?
kondor19780726 [428]

Answer:

D: 4:1

Explanation:

If you divide 48 by 12, you get 4. 12 is 1/4 of 48. Therefore, you keep it at 4:1.

7 0
3 years ago
Read 2 more answers
Other questions:
  • After configuring a static IP address on a desktop computer, the technician finds that he cannot communicate with other devices
    10·1 answer
  • Which is currently the most common cellular network?<br> 4G<br> 4G LTE<br> 5G<br> 5G LTE
    13·1 answer
  • I’m stuck in a class where i don’t understand anything, it’s only been 3 days.. any tips for learning computer coding?
    12·1 answer
  • Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching exper
    7·1 answer
  • Create an application that writes a series of random numbers to a file. Each random number should be in the range of 1 through 1
    9·1 answer
  • True or False. Students taking courses log into Blackboard with their "key account" username and password.
    8·1 answer
  • Marie uses DHTML to create a website for her college. How is DHTML more helpful than HTML?
    13·2 answers
  • You are a project manager for Laredo Pioneer's Traveling Rodeo Show. You're heading up a project to promote a new line of souven
    6·1 answer
  • The type of memory that stores data<br>Currently in used is called​
    8·2 answers
  • Which statement best describes one reason why assembly language is easier
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!