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
OleMash [197]
3 years ago
14

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 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'.
Engineering
1 answer:
gladu [14]3 years ago
7 0

Answer & Explanation:

//written in java

public class Main {

   public static void main(String[] args) {

       //declare a char variable for a, b, c

       char a;

       char b;

       char c;

       //assign a b and c

       //a b and c can be replaced for with  

       // '#', '$', '%', then with '1', '2', '3'

       // for further testing

       a = 'x';

       b = 'y';

       c = 'z';

       //output for all possible combination for a, b, c.

       System.out.println("" + a + b + c + " " + a + c + b + " " + b + a + c +

               " " + b + c + a + " " + c + a + b + " " + c + b + a);

   }

}

You might be interested in
Plssssssssssssss Alexi is writing a program which prompts users to enter their age. Which function should she use?
aleksandr82 [10.1K]

Answer:

int()

Explanation:

float() is using decimals, so that can't be it, like float(input( "how much does this cost?"))

print() is used to print something, not a user asking, like print("hello")

string() means like a whole, like string( I am good)

By elimination, int() is correct.

Hope this helps!

7 0
2 years ago
Please help me do this with my exam tomorrow.
blagie [28]

Answer:

ddddddddddddddddddddddddddddd

Explanation:

cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

6 0
2 years ago
A world class runner can run long distances at a pace of 15 km/hour. That runner expends 800 kilocalories of energy per hour. a)
maks197457 [2]

Answer: a) 1.05kW b) 3.78MJ c) 5.3 bars

Explanation :

A)

Conversions give 900 kcal as 900000 x 4.2 J/cal {4.2 J/cal is the standard factor}

= 3780kJ

And 1 hour = 3600s

Therefore, Power in watts = 3780/3600 = 1.05kW = 1050W

B)

At 15km/hour a 15km run takes 1 hour.

1 hour is 3600s and the runner burns 1050 joule per second.

Energy used in 1 hour = 3600 x 1050 J/s

= 3780000 J or 3.78MJ

C)

1 mile = 1.61km so 13.1 mile is 13.1 x 1.61 = 21.1km

15km needs 3.78 MJ of energy therefore 21.1km needs 3.78 x 21.1/15 = 5.32MJ =5320 kJ

Finally,

1 Milky Way = 240000 calories = 4.2 x 240000 J = 1008000J or 1008kJ

This means that the runner needs 5320/1008 = 5.3 bars

7 0
3 years ago
What precautions should be taken to avoid the overloading of domestic electric circuits.
madam [21]

The precautions that should be taken to avoid the overloading of domestic electric circuits are:

  1. Do not put high voltage wires in one socket.
  2. Do not use many electric appliances of high power at the same time.
<h3>What are electric circuits?</h3>

Electric circuits are wires or devices that give electricity to devices that run on electricity. Running of electric devices should be done carefully because our body can come in contact with the current.

Thus, the precautions are to keep high voltage lines away from one socket. Use only a few high-power electric appliances at once.

To learn more about electric circuits, refer to the below link:

brainly.com/question/28221759

#SPJ4

4 0
2 years ago
What is the ANSI B paper size also know as?
krek1111 [17]

Answer:

ANSI A sized paper is commonly referred to as Letter and ANSI B as Ledger or Tabloid.

Explanation:

7 0
3 years ago
Other questions:
  • A prototype boat is 30 meters long and is designed to cruise at 9 m/s. Its drag is to be simulated by a 0.5-meter-long model pul
    6·1 answer
  • Due at 11:59pm please help
    14·1 answer
  • What's the best way to find the load capacity of a crane? Select the best option. Call the manufacturer Ask co-workers Look at t
    8·1 answer
  • A paint company produces glow in the dark paint with an advertised glow time of 15 min. A painter is interested in finding out i
    11·1 answer
  • Which of the following statements about pitot-static systems is FALSE? a). A pitot probe measures the Total Pressure of the free
    10·1 answer
  • Users say that the game is interesting to look at but the music gets annoying
    9·1 answer
  • Can someone teach me how to find all valid minterms of any given truth table?
    11·1 answer
  • Which actions would the maintenance and operations crews carry out as a building is completed and preparing to open to the publi
    8·2 answers
  • What is mechanical engineer​
    14·1 answer
  • A 46.0-g meter stick is balanced at its midpoint (50.0 cm, zero point is a left end of stick). Then a 210.0-g weight is hung wit
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!