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
Differentiate between isohyetal method and arithmetical average method of rainfall​
prohojiy [21]

Answer:

Explained below

Explanation:

The isohyetal method is one used in estimating Rainfall whereby the mean precipitation across an area is gotten by drawing lines that have equal precipitation. This is done by the use of topographic and other data to yield reliable estimates.

Whereas, the arithmetic method is used to calculate true precipitation by the way of getting the arithmetic mean of all the points or arial measurements that will be considered in the analysis.

7 0
3 years ago
What are the three elementary parts of a vibrating system?
zhenek [66]

Answer:

the three part are mass, spring, damping

Explanation:

vibrating system consist of three elementary system namely

1) Mass - it is a rigid body due to which system experience vibration and kinetic energy due to vibration is directly proportional to velocity of the body.

2) Spring -  the part that has elasticity and help to hold mass

3) Damping - this part considered to have zero mass and  zero elasticity.

7 0
3 years ago
Document the XSS stored exploit script: Use the View Source feature of the web page and create a screenshot of the few lines cod
Natali [406]

Answer:

Hold on let me ask my brother

Explanation:

5 0
3 years ago
To revise a monthly budget, changes in which categories might need to be addressed? Check all that apply.
GREYUIT [131]

Income

amount budgeted

expenses

5 0
3 years ago
An 1800-W toaster, a 1400-W electric frying pan, and a 75-W lamp are plugged into the same outlet in a 15-A, 120-V circuit. The
Mila [183]

Answer:

a) Current drawn by the toaster = 15A

Current drawn by the electric frying pan = 11.67A

Current drawn by the lamp = 0.625A

b) This combination will blow the 15A fuse as the total current requirement for this setup exceeds the 15A rating of the fuse.

Explanation:

a) For parallel connection, there exists, the same voltage and different currents across all the devices.

Voltage cross each of the 3 devices = outlet voltage of 120V

From their respective power rating, current drawn by each device will be calculated.

P = IV

For the toaster, P = 1800 W, V = 120V

I = 1800/120 = 15A

For the electric frying pan, P = 1400 W, V = 120 V

I = 1400/120 = 11.67 A

For the lamp, P = 75 W, V = 120V

I = 75/120 = 0.625 A

b) Total current in a parallel connection setup = Sum total of all the currents.

Total current drawn by all 3 devices = 15 + 11.67 + 0.625 = 27.295A = 27.3 A

This total current requirement surpasses the 15A current rating of the fuse, therefore, this combination will blow the fuse.

Hope this Helps!!!

6 0
3 years ago
Other questions:
  • A thin‐walled tube with a diameter of 12 mm and length of 25 m is used to carry exhaust gas from a smoke stack to the laboratory
    10·1 answer
  • Sea X una variable aleatoria con funci´on de densidad
    9·1 answer
  • Consider a fully developed laminar flow in a circular pipe. The velocity at R/2 (midway between the wall surface and the centerl
    6·1 answer
  • At the end of a power distribution system, a certain feeder supplies three distribution transformer, each one supplying a group
    8·1 answer
  • Consider a 1000-W iron whose base plate is made of 0.5-cm-thick aluminum alloy 2024-T6 (rho = 2770 kg/m3 and cp = 875 J/kg·°C).
    12·1 answer
  • he Weather Channel reports that it is a hot, muggy day with an air temperature of 90????F, a 10 mph breeze out of the southwest,
    6·1 answer
  • Write a program in C++ that can be used by a small theater to sell tickets for performances.The theater’s auditorium has 15 rows
    7·1 answer
  • Which of these are an ethical issue
    14·1 answer
  • Estimate the luminosity of a 3 -solar-mass main-sequence star; of a 9 -solar-mass main-sequence star. Can you easily estimate th
    5·1 answer
  • If an elevator repairer observes that cables begin to fray after 15 years, what process might he or she use to create a maintena
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!