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]
4 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]4 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
The flexural strength or MOR of a ceramic is 310 MPa. A block of the ceramic, which is 20 mm wide, 15 mm high, and 300 mm long,
Alja [10]

Answer:

F=6200\ \text{N}\\

Explanation:

In this problem you need to define the force that acts upon a beam in a 3 point bending problem. I put a picture of the problem taken from Wikipedia:

In this problem the flexural strength is defined with the following formula:

\sigma=\cfrac{3FL}{2bd^2}

where F is the force applied, L the length between the two rods, b the width of the ceramic block and d it's height.

The force is then defined as:

F=\cfrac{2\sigma bd^2}{3L}=6200\ \text{N}

3 0
3 years ago
Doubling the diameter of a solid, cylindrical wire doubles its strength in tension.
julsineya [31]

Answer:

True ❤️

-Solid by solid can make Cylindrical wire doubles Strengths in tension

4 0
3 years ago
What is one thing a person should do to stay safe when exercising
elixir [45]
Staying hydrated at all times
7 0
3 years ago
Read 2 more answers
If the channel-Length modulation effect is neglected, ID in the saturation region is considered to be independent of VDS
djverab [1.8K]
The answer is true because if the effect is neglected, the saturation id region is considered true
4 0
3 years ago
I'll mark brainliest plz help
Citrus2011 [14]

Answer:

Explanation:

There are three points in time we need to consider.  At point 0, the mango begins to fall from the tree.  At point 1, the mango reaches the top of the window.  At point 2, the mango reaches the bottom of the window.

We are given the following information:

y₁ = 3 m

y₂ = 3 m − 2.4 m = 0.6 m

t₂ − t₁ = 0.4 s

a = -9.8 m/s²

t₀ = 0 s

v₀ = 0 m/s

We need to find y₀.

Use a constant acceleration equation:

y = y₀ + v₀ t + ½ at²

Evaluated at point 1:

3 = y₀ + (0) t₁ + ½ (-9.8) t₁²

3 = y₀ − 4.9 t₁²

Evaluated at point 2:

0.6 = y₀ + (0) t₂ + ½ (-9.8) t₂²

0.6 = y₀ − 4.9 t₂²

Solve for y₀ in the first equation and substitute into the second:

y₀ = 3 + 4.9 t₁²

0.6 = (3 + 4.9 t₁²) − 4.9 t₂²

0 = 2.4 + 4.9 (t₁² − t₂²)

We know t₂ = t₁ + 0.4:

0 = 2.4 + 4.9 (t₁² − (t₁ + 0.4)²)

0 = 2.4 + 4.9 (t₁² − (t₁² + 0.8 t₁ + 0.16))

0 = 2.4 + 4.9 (t₁² − t₁² − 0.8 t₁ − 0.16)

0 = 2.4 + 4.9 (-0.8 t₁ − 0.16)

0 = 2.4 − 3.92 t₁ − 0.784

0 = 1.616 − 3.92 t₁

t₁ = 0.412

Now we can plug this into the original equation and find y₀:

3 = y₀ − 4.9 t₁²

3 = y₀ − 4.9 (0.412)²

3 = y₀ − 0.83

y₀ = 3.83

Rounded to two significant figures, the height of the tree is 3.8 meters.

7 0
3 years ago
Other questions:
  • Two wastewater treatment plant workers (one male and one female) are exposed to hydrogen sulfide in confined spaces in the treat
    7·1 answer
  • What is the composition, in atom percent, of an alloy that consists of 4.5 wt% Pb and 95.5 wt% Sn?
    13·1 answer
  • Consider a multiprocessor system and a multithreaded program written using the many-to-many threading model. Let the number of u
    9·1 answer
  • If you play roblox leave user down bellow
    14·2 answers
  • A round bar of chromium steel, (ρ= 7833 kg/m, k =48.9 W/m-K, c =0.115 KJ/kg-K, α=3.91 ×10^-6 m^2/s) emerges from a heat treatmen
    14·1 answer
  • In a creep test, increasing the temperature will (choose the best answer) A. increase the instantaneous initial deformation B. i
    5·1 answer
  • A full-adder is a combinational circuit that forms the arithmetic sum of three input bits.
    9·1 answer
  • A teenage brain is already fully developed to enable us to manage risks effectively.
    13·2 answers
  • What is the force in kN of work done is 1.2 ms moves through 120m​
    15·1 answer
  • At time t the resultant force on a particle, of mass 250kg is (300ti-400tj)N. Initially, the particle is at the origin and is mo
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!