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
What are the horizontal structures beneath a slab that help transfer the load from the slab to the columns?
Delicious77 [7]

Answer: D) Beams

Explanation:

3 0
2 years ago
Read 2 more answers
A 500-km, 500-kV, 60-Hz, uncompensated three-phase line has a positivesequence series impedance. z = 5 0.03 1 + j 0.35 V/km and
Anni [7]

Answer:

A) 282.34 - j 12.08 Ω

B) 0.0266 + j 0.621 / unit

C)

A = 0.812 < 1.09° per unit

B =  164.6 < 85.42°Ω  

C =  2.061 * 10^-3 < 90.32° s

D =  0.812 < 1.09° per unit

Explanation:

Given data :

Z ( impedance ) = 0.03 i  + j 0.35 Ω/km

positive sequence shunt admittance ( Y ) = j4.4*10^-6 S/km

A) calculate Zc

Zc = \sqrt{\frac{z}{y} }  =  \sqrt{\frac{0.03 i  + j 0.35}{j4.4*10^-6 } }    

    = \sqrt{79837.128< 4.899^o}   =  282.6 < -2.45°

hence Zc = 282.34 - j 12.08 Ω

B) Calculate  gl

gl = \sqrt{zy} * d  

 d = 500

 z = 0.03 i  + j 0.35

 y = j4.4*10^-6 S/km

gl =  \sqrt{0.03 i  + j 0.35*  j4.4*10^-6}  * 500

   = \sqrt{1.5456*10^{-6} < 175.1^0} * 500

   = 0.622 < 87.55 °

gl = 0.0266 + j 0.621 / unit

C) exact ABCD parameters for this line

A = cos h (gl) . per unit  =  0.812 < 1.09° per unit ( as calculated )

B = Zc sin h (gl) Ω  = 164.6 < 85.42°Ω  ( as calculated )

C = 1/Zc  sin h (gl) s  =  2.061 * 10^-3 < 90.32° s ( as calculated )

D = cos h (gl) . per unit = 0.812 < 1.09° per unit ( as calculated )

where :  cos h (gl)  = \frac{e^{gl} + e^{-gl}  }{2}

             sin h (gl) = \frac{e^{gl}-e^{-gl}  }{2}

     

7 0
2 years ago
Conditions of special concern: i. Suggest two reasons each why distillation columns are run a.) above or b.) below ambient press
lutik1710 [3]

Solution :

Methods for selling pressure of a distillation column :

a). Set, \text{based on the pressure required to condensed} the overhead stream using cooling water.

  (minimum of approximate 45°C condenser temperature)

b). Set, \text{based on highest temperature} of bottom product that avoids decomposition or reaction.

c). Set, \text{based on available highest } not utility for reboiler.

Running the distillation column above the ambient pressure because :

The components to be distilled have very high vapor pressures and the temperature at which they can be condensed at or below the ambient pressure.

Run the reactor at an evaluated temperature because :

a). The rate of reaction is taster. This results in a small reactor or high phase conversion.

b). The reaction is endothermic and equilibrium limited increasing the temperature shifts the equilibrium to the right.

Run the reaction at an evaluated pressure because :

The reaction is gas phase and the concentration and hence the rate is increased as the pressure is increased. This results in a smaller reactor and /or higher reactor conversion.

The reaction is equilibrium limited and there are few products moles than react moles. As increase in pressure shifts the equilibrium to the right.

7 0
2 years ago
An electric kettle is required to heat 0.64 kg of water from 15.4°C to 98.2°C in six
skelet666 [1.2K]

Answer:

Almost done

Explanation:

I am just finishing up my work

7 0
2 years ago
with a digital system, if you have measured incorrectly and use too low of a kvp for adequate penetration, what do you need to d
Lubov Fominskaja [6]

The x-ray beam's penetrating power is regulated by kVp (beam quality). Every time an exposure is conducted, the x-rays need to be powerful (enough) to sufficiently penetrate through the target area.

<h3>How does kVp impact the exposure to digital receptors?</h3>

The radiation's penetration power and exposure to the image receptor both increase as the kVp value is raised.

<h3>Exposure to the image receptor is enhanced with an increase in kVp, right?</h3>

Due to an increase in photon quantity and penetrability, exposure at the image receptor rises by a factor of five of the change in kVp, doubling the intensity at the detector with a 15% change in kVp.

To know more about kVp visit:-

brainly.com/question/17095191

#SPJ4

5 0
1 year ago
Other questions:
  • The following C program asks the user for two input null-terminated strings, each stored in uninitialized 100-byte buffer, and c
    6·1 answer
  • a refrigerator uses refrigerant-134a as the working fluid and operates on the vapor-compression refrigeration cycle. the evapora
    10·2 answers
  • 12. The small space above the piston in which fuel is burned is called the
    10·1 answer
  • A venturi meter is to be installed in a 63 mm bore section of a piping system to measure the flow rate of water in it. From spac
    15·1 answer
  • A parallel plate capacitor has a separation of 2x10 m and free space between the plates. A 10 V battery is connected across the
    9·1 answer
  • A long bone is subjected to a torsion test. Assume that the inner diameter is 0.375 in. and the outer diameter is 1.25 in., both
    14·1 answer
  • List everything wrong with 2020
    5·2 answers
  • The goal of the following model is generate a clock waveform that has the clock high 4 time units and low 4 time units, with the
    15·1 answer
  • Which statement describes a possible limitation on a experimental design? A. Collecting samples to analyze is expensive B. The e
    6·2 answers
  • Can you help me with this task/homework.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!