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
A pressure gage at the inlet to a gas compressor indicates that the gage pressure is 40.0 kPa. Atmospheric pressure is 1.01 bar.
bonufazy [111]

Answer:

Given

inlet Pga =40kpa = 40000pa

Patm=1.01bar = 1.01 x 100000pa =101000pa

exit Pab= 6.5 (inlet Pab)

But generally, Pab = Patm + Pga

1. the absolute pressure of the gas at the inlet, inlet Pab?

inlet Pab = Patm + inlet Pga

            = 101000pa + 40000pa = 141kpa

the absolute pressure of the gas at the inlet, inlet Pab = 141kpa

2. the gage pressure of the gas at the exit? exit Pga?

exit Pab = Patm + exit Pga

exit Pga = exit Pab - Patm

             = (6.5 x 141kpa) - 101kpa

              = 815.5kpa

the gage pressure of the gas at the exit exit Pga=815.5kpa

5 0
3 years ago
Define a separate subroutine for each of the following tasks respectively.
Valentin [98]

Answer:

I HAVE NO CLUEEEE

Explanation:

???????????????????/

5 0
2 years ago
Read 2 more answers
Lynx eat snowshoe hares, and snowshoes hears eat plants. Which term can be applied to the lynx in this food chain example? Prima
erastova [34]

Answer:

primary consumer because YES

3 0
2 years ago
According to fire regulations in a town, the pressure drop in a commercial steel, horizontal pipe must not exceed 2.0 psi per 25
bonufazy [111]

Answer:

6.37 inch

Explanation:

Thinking process:

We need to know the flow rate of the fluid through the cross sectional pipe. Let this rate be denoted by Q.

To determine the pressure drop in the pipe:

Using the Bernoulli equation for mass conservation:

\frac{P1}{\rho } + \frac{v_{2} }{2g} +z_{1}  = \frac{P2}{\rho } + \frac{v2^{2} }{2g} + z_{2} + f\frac{l}{D} \frac{v^{2} }{2g}

thus

\frac{P1-P2}{\rho }  = f\frac{l}{D} \frac{v^{2} }{2g}

The largest pressure drop (P1-P2) will occur with the largest f, which occurs with the smallest Reynolds number, Re or the largest V.

Since the viscosity of the water increases with temperature decrease, we consider coldest case at T = 50⁰F

from the tables

Re= 2.01 × 10⁵

Hence, f = 0.018

Therefore, pressure drop, (P1-P2)/p = 2.70 ft

This occurs at ae presure change of 1.17 psi

Correlating with the chart, we find that the diameter will be D= 0.513

                                                                                                      = <u>6.37 in Ans</u>

7 0
3 years ago
Steam enters an adiabatic condenser (heat exchanger) at a mass flow rate of 5.55 kg/s where it condensed to saturated liquid wat
Evgen [1.6K]

Answer:

The minimum mass flow rate will be "330 kg/s".

Explanation:

Given:

For steam,

m_{s}=5.55 \ kg/s

\Delta h=2491 \ kg/kj

For water,

\Delta T=10^{\circ}C

(Cp)_{w}=4.184 \ kJ/kg^{\circ}C

They add energy efficiency as condenser becomes adiabatic, with total mass flow rate of minimal vapor,

⇒  m_{s}\times (\Delta h)=M_{w}\times(Cp)_{w}\times \Delta T

On putting the estimated values, we get

⇒  5.55\times 2491=M_{w}\times 4.184\times 10\\

⇒  13825.05=M_{w}\times 41.84

⇒  M_{w}=330 \ kg/s

7 0
3 years ago
Other questions:
  • Explain the purpose of the checkpoint mechanism. How often should checkpoints be performed?How does the frequency of checkpoints
    6·1 answer
  • The position of a particle moving along a straight line is defined by the relation. s = t^3 – 6t^2 – 15t + 40, where s is expres
    13·1 answer
  • What was the main drawback of Ford’s assembly line?
    12·2 answers
  • Two hemispherical shells of inner diameter 1m are joined together with 12 equally spaced bolts. If the interior pressure is rais
    15·1 answer
  • A four-lane freeway (two lanes in each direction) is located on rolling terrain and has 12-ft lanes, no lateral obstructions wit
    14·1 answer
  • Do heavier cars really use more gasoline? Suppose a car is chosen at random. Let x be the weight of the car (in hundreds of poun
    9·1 answer
  • Consider a Carnot refrigeration cycle executed in a closed system in the saturated liquid-vapor mixture region using 0.96 kg of
    11·1 answer
  • Define the Artist class in Artist.py with a constructor to initialize an artist's information. The constructor should by default
    7·1 answer
  • What can you add to a seatbelt ??<br> HELP ASAP
    15·1 answer
  • Factors such as brake shoe orientation, pin location, and direction of rotation determine whether a particular brake shoe is con
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!