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
1) Pareto charts are used to: A) identify inspection points in a process. B) outline production schedules. C) organize errors, p
zloy xaker [14]

Answer:

E) Please see below as the answer is self -explanatory.

Explanation:

The pareto chart, is used in quality control, and is a combined type of graph, that uses a line-type curve to denote the cumulative percentages of the different types of defects found in a sample (so the maximum value is 100%)

Also, it features a bar chart, which shows the relative occurrence of the different values (as in a histogram) which allows to find easily which defects are more relevant ones, alerting in this way about unacceptable deviations in the manufacturing process (if we are producing a good under given quality standards, for instance).

4 0
3 years ago
When designing solid rockets, thrust and mass flow must be considered time dependent. a) True b) False
Novay_Z [31]

Answer:

the answer is true when designing sold rockets thrust and mass flow

8 0
4 years ago
Substance Specific Heat (cal/g°C) Specific Heat (J/g°C) water 1.00 4.18 steam 0.96 4.02 alcohol 0.59 2.47 ice 0.50 2.09 wood 0.4
Jobisdone [24]

Answer:

C) 43,2°C

Explanation:

<em>Sensible heat</em> is the amount of thermal energy that is required to change the temperature of an object, the equation for calculating the heat change is  given by:

Q=msΔT

where:

  • Q, heat that has been absorbed or realeased by the substance [J]
  • m, mass of the substance [g]
  • s, specific heat capacity [J/g°C]
  • ΔT, changes in the substance temperature [°C]

To solve the problem, we clear ΔT of the equation and then replace our data:

Q=890 [J],

m=16,6 [g],

s=2,74 [J/g°C]

Q=msΔT.......................ΔT=Q/ms

ΔT=\frac{890 J}{16,6g*2,47\frac{J}{gC}}=21,7°C

As:

ΔT=Tfinal-Tinitial

Tfinal=ΔT+Tinitial

Tfinal=21,7+21,5=43,2°C

The final temperature of the ethanol is 43,2°C.

4 0
4 years ago
a city with a large population is planning a bridge that will cross a river. The river is very deep and wide with a muddy bottom
Mrrafil [7]

Answer:

i think the city should not do it honestly it could cause way more traffic.

3 0
2 years ago
Why do bridges collapse?
Reika [66]

Hi! bridges could have been collapse due to an error made by the engineers during construction.

8 0
3 years ago
Read 2 more answers
Other questions:
  • Consider a torsionally elastic (GJ = 8000 lb-in2) wind tunnel model of a uniform wing, the ends of which are rigidly fastened (f
    11·2 answers
  • 6. You are an electrician working in an industrial plant. You are building a motor control cabinet that contains six motor start
    6·1 answer
  • What material has the highest strength to weight ratio?
    9·2 answers
  • A two-stage compression refrigeration system operates with refrigerant-134a between the pressure limits of 1.4 and 0.10 MPa. The
    6·1 answer
  • What is the the force available at the roadway surface to perform work?
    6·1 answer
  • The following displacement (cm), output (V) data have been recorded during a calibration of an LVDT. Displacement (cm), output (
    15·1 answer
  • Name three major heat transfer mechanisms giving one example of each from day-to-day life. Also explain the physical mechanism b
    14·1 answer
  • How can the use of local materials improve the standard of living of Filipinos?
    8·1 answer
  • Charging the system is being discussed. Technician A says that the refrigerant must be weighed (or metered) to obtain a proper c
    10·1 answer
  • If you measure the voltage across a diode and it measures 0.3 V, the diode is probably made of __________ and is __________ bias
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!