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
Under the normal sign convention, the distributed load on a beam is equal to the:_______A. The rate of change of the bending mom
frez [133]

Answer:

Under the normal sign convention, the distributed load on a beam is equal to the: O The second derivative of the bending moment with respect to the length of the beam O Negative of the rate of change of the shear force with respect to the length of the beam.

Sorry if the answer is wrong

6 0
3 years ago
As you discovered in lab last week, the advantage of CMOS logic is that no drain current flows through the MOSFETs when the outp
Setler [38]

Complete Question:

CMOS Logic

As you discovered in lab last week, the advantage of CMOS logic is that no drain current flows through the MOSFETs when the output is either high or low. Because the CMOS logic family is based on the inverter, the logic functions of NOT, NAND, and NOR are easy to create. The logic functions AND and OR, however, require us to build a NAND or NOR gate and then add an inverter to the gate output: AND = NAND+NOT

<em>Design a 2-input CMOS OR-gate using MOSFETs . Make certain that the power dissipation is zero when the output is both logic 1 and logic 0 . Add NOT logic to one of switches to the inputs of the OR gate .</em>

Answer and Explanation:

  • The question require you to design a 2 input CMOS
  • make certain that the power dissipation is zero when the output is both logic 1 and logic 0
  • Add NOT logic to one of the switches to the input of the OR gate

attached below is a diagram of the designed 2-input CMOS labelled with all the other features explicitly stated

5 0
3 years ago
1)A wheel is used to turn a valve stem on a water valve. If the wheel radius is 1 foot and the stem, (axle), radius is .5 inches
Novay_Z [31]

Answer:

1.) 2.4

2.) 112 lbs

3.) 7.85 inches

4.) 6 lbs

5.) 2 lbs

6.) 67%

Explanation:

Given that

Radius of the wheel R = 1 foot

1 foot = 12 inches.

Radius of the axle r = 5 inches

1.) The mechanical advantage MA is :

MA = R/r = 12/5 = 2.4

2.) How much resistance force can ideally be overcome when an effort of 80 lbs is applied to the wheel of the water valve in problem 1?

MA = Load / effort

Where effort = 80 lbs

Substitute MA and effort into the formula

2.4 = Load / 80

Cross multiply

Load = 2.4 × 80 = 192 lbs

The resistance force to be overcome will be

Force = load - effort

Resistance force = 192 - 80 = 112 lbs

3) What is the linear distance traveled when a 2.5' diameter wheel makes one revolution

One revolution = 2π

Radius = 2.5 /2 = 1.25 inches

Linear distance S = angular distance Ø × radius r

S = Ør

S = 2π × 1.25

S = 7.85 inches

4. ) given that

Wheel radius R = 4

Axle radius r = 1

MA = 4/1 = 4

MA = Load / effort

4 = 24/ effort

Effort = 24/4 = 6 lbs

5.) 6 - 4 = 2lb

6.) Efficiency = MA / VR × 100

Efficiency = 4 / 6 × 100

Efficiency = 67%

3 0
3 years ago
Table 1(a) shows the marks obtained by 40 students in an examination
Arlecino [84]
I dont know the answer to this
5 0
3 years ago
0 - 1"<br> -20<br> -15<br> -10<br> 5<br> 0 1 2 3<br> 0
faust18 [17]

Answer:

#WeirdestQuestionOfAllTime

Explanation:

8 0
3 years ago
Other questions:
  • A food-services company with a 480 V, three-phase service entrance has the following set of loads:  A 7 ton walk-in refrigerati
    13·1 answer
  • Is a 68.75 and a 70 a pass in 5th grade?
    10·2 answers
  • Supón que tienes que calcular el centro de gravedad de una pieza
    11·1 answer
  • 8. Which of the following is a characteristic of no-till farming?
    8·1 answer
  • An undeformed specimen of some alloy has an average grain diameter of 0.050 mm. You are asked to reduce its average grain diamet
    11·1 answer
  • Identify the different engineering activities/steps in the engineering design process for each steps,summarize in 1–3 sentences
    13·1 answer
  • Make a sketch of a simple mechanically expanded brake and indicate the forces ​ ​ acting on the leading shoe when the brake is a
    10·1 answer
  • Set the leak rate to zero and choose a non-zero value for the proportional feedback gain.Restart the simulation and turn on the
    5·1 answer
  • The side area of the door shell that is concealed when the door is closed is called the:
    15·1 answer
  • when discussing valve train components, technician a says stamped rocker arms are very strong and may be used in high-horsepower
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!