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
function summedValue = SummationWithLoop(userNum) % Summation of all values from 1 to userNum summedValue = 0; i = 1; % Write a
Alexeev081 [22]

Answer:

function summedValue = SummationWithLoop(userNum)

% Summation of all values from 1 to userNum

  summedValue = 0;

  i = 0;

  % use a while loop that assigns summedValue with the

  % sum of all values from 1 to userNum

  while(i <= userNum)

      summedValue = summedValue + i;

      i = i + 1;

  end

end

8 0
3 years ago
3) What kind of bridges direct their load along it's curve and into the
AlladinOne [14]

Explanation:

suspension is the answer

8 0
3 years ago
*6–24. The beam is used to support a dead load of 400 lb&gt;ft, a live load of 2 k&gt;ft, and a concentrated live load of 8 k. D
lisabon 2012 [21]

Answer:

(a) maximum positive reaction at A = 64.0 k

(b) maximum positive shear at A = 32.0 k

(c) maximum negative moment at C = -540 k·ft

Explanation:

Given;

dead load  Gk = 400 lb/ft

live load Qk = 2 k/ft

concentrated live load Pk =8 k

(a) from the influence line for vertical reaction at A, the maximum positive reaction is

A_{ymax} = 2*(8) +(1/2(20 - 0)* (2))*(2 + 0.4) = 64 k

See attachment for the calculations of (b) & (c) including the influence line

3 0
3 years ago
python Given num_rows and num_cols, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E.
MissTica

Explanation:

First of all get the input from the user, number of rows and number of columns where rows represents seat digit number and column represents the seat letter

rows is initialized to 1 to ensure that row starts at 1 or you can remove it then seat number will start from 0.

The first loop is used for digits starting from 1 to number of rows

The second loop is used for letters starting from 1 to number of columns

since rows and cols are not of the same type that's why we are converting the int type to string type

print(str(rows)+cols) counter will keep updating the columns A, B, C.....

rows= rows + 1 counter will keep updating the rows 1, 2, 3....

Code:

Please refer to the attached image.

Output:

Please enter the number of rows: 2

Please enter the number of columns: 3

1A

1B

1C

2A

2B

2C

3 0
3 years ago
Need help with both giving out brainlest for the people to help me
sammy [17]
The first one is d or the 4th answer choice and the second one is false. Hope this helps!
4 0
3 years ago
Other questions:
  • How much time does it take a freezer to make a tray of ice cubes out of a tray of 0.25kg liquid water at 10 Celsius). Assume the
    13·1 answer
  • A wastewater treatment plant discharges 1.0 m3/s of effluent having an ultimate BOD of 40.0 mg/ L into a stream flowingat 10.0 m
    11·1 answer
  • In Engineering, what is a shoulder on a bridge?
    8·1 answer
  • What is the difference between a Datum and a Datum Feature? a) A Datum and Datum Feature are synonymous. b) A Datum is theoretic
    14·1 answer
  • Write multiple if statements
    5·1 answer
  • Air enters a counterflow heat exchanger operating at steady state at 27 C, 0.3 MPa and exits at 12 C. Refrigerant 134a enters at
    5·1 answer
  • - If you overload the rear portion of you vehicle &amp; it's raining out, your car could easily:
    14·1 answer
  • Consider the equation y = 10^(4x). Which of the following statements is true?
    9·1 answer
  • The following is a series of questions pertaining to the NSPE Code of Ethics. Please indicate whether the statement are true or
    14·1 answer
  • The ratio between the modulating signal voltage and the carrier voltage is called?.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!