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
Alla [95]
3 years ago
9

Output all combinations of character variables a, b, and c. If a = 'x', b = 'y', and c = 'z', then the output is: xyz xzy yxz yz

x zxy zyx Note: If outputting multiple character variables with one statement, the argument for System.out.print() should start with "" + Your code will be tested in three different programs, with a, b, c assigned with 'x', 'y', 'z', then with '#', '$', '%', then with '1', '2', '3'.
Computers and Technology
1 answer:
LekaFEV [45]3 years ago
8 0

Answer:

// package

import java.util.*;

// class definition

class Main

{

   // main method of the function

public static void main (String[] args) throws java.lang.Exception

{

   try{

       // initialize variables

       char a='x',b='y',c='z';

       // char variables with different Characters

      // char a='#',b='$',c='%';

      // char a='1',b='2',c='3';

       

       // print all the combinations

       System.out.print(""+a+b+c+" "+a+c+b+" "+b+a+c+" "+b+c+a+" "+c+a+b+" "+c+b+a);

   }catch(Exception ex){

       return;}

}

}

Explanation:

Declare and initialize variables a,b,c with "x","y","z" respectively.

Then with the help of print statement we can print all combinations

of these characters.Similarly we can check this for different input

characters.

Output:

xyz xzy yxz yzx zxy zyx

#$% #%$ $#% $%# %#$ %$#

123 132 213 231 312 321

You might be interested in
Count the number of words in the string. A word is one or more non-blank characters separated by one or more blanks. My suggesti
NikAS [45]

Answer:

myString = input("Please enter a string")

wordList = myString.split()

numofWords = len(wordList)

print('The number of words in {} is {}'.format(myString, numofWords))

Explanation:

Since the suggestion to use a boolean variable flag is not compulsory, I have implemented it in another way.

Using python programming language, the input function is used to prompt the user to enter a string which is saved in a variable myString.

The string entered is converted into a list of all the words by spliting at the blank spaces and saved in the variable wordList

Next we count the number of words by obtaining the len of the list and output to the user

7 0
3 years ago
Select five system utility functions.
Lina20 [59]

Answer:

so the five would be 5,4,6,8,2 i think correct me if I’m wrong

Explanation:

executing user-level programs Is one

-managing memory usage is two

-encrypting data is three

-managing files is four

-initializing system date and time is five

-managing the network is six

-backing up disk data is seven

-compressing data is eight

7 0
3 years ago
What kind is a utility file that shrinks the size of a file
Elena-2011 [213]

Answer:

<u><em>Moxa image resize utility</em></u>

Explanation:

Hope this helped! :)

7 0
3 years ago
HELP TIMED!!!!!!!!!!!!!!!!!!!!
Norma-Jean [14]
Competition I’d say, always needing to grow and adapt to new needs
8 0
2 years ago
Read 2 more answers
Gateway drugs are normally not addictive
scoundrel [369]
They are drugs that are <span>easy to get and ARE usually addictive</span>
5 0
3 years ago
Read 2 more answers
Other questions:
  • Which of these is a weakness of written communication?
    8·1 answer
  • Why has unicode become the standard way of converting binary to text
    7·1 answer
  • Which type of CPU instruction performs arithmetic calculations and stores the results in memory?
    14·2 answers
  • I need help with workplace safety systems please help
    10·1 answer
  • Which of the following is constantly changing and advancing?
    11·1 answer
  • Cómo se llaman los robots que se utilizan para la exploración espacial, en medicina, en la industria, en la agricultura, los que
    13·1 answer
  • Which of the following statements best illustrates how value was created for eggs? when a farmer sells a chicken who is no longe
    9·1 answer
  • Is iphone battery being draned if plugged into car charger when listening to podcasts
    6·1 answer
  • A menu that appears when an object is clicked with the right mouse button is called a tool-tip help menu
    10·1 answer
  • What command will prevent all unencrypted passwords from displaying in plain text in a configuration file?.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!