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
hjlf
3 years ago
8

In Java; Given numRows and numColumns, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or

3E. Print a space after each seat, including after the last. Use separate print statements to print the row and column. Ex: numRows = 2 and numColumns = 3 prints:
1A 1B 1C 2A 2B 2C
import java.util.Scanner;
public class NestedLoops {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
int numRows;
int numColumns;
int currentRow;
int currentColumn;
char currentColumnLetter;

numRows = scnr.nextInt();
numColumns = scnr.nextInt();

numColumns = currentColumnLetter
for(currentRow = 0; currentRow < numRows;currentRow++){
for(currentColumn = =

System.out.println("");
}
}
Engineering
1 answer:
baherus [9]3 years ago
5 0

Answer:

Explanation:

import java.util.Scanner;

public class NestedLoops {

   public static void main (String [] args) {

       Scanner scnr = new Scanner(System.in);

       int numRows;

       int numColumns;

       int currentRow;

       int currentColumn;

       char currentColumnLetter;

       numRows = scnr.nextInt();

       numColumns = scnr.nextInt();

       for (currentRow = 0; currentRow < numRows; currentRow++) {

           currentColumnLetter = 'A';

           for (currentColumn = 0; currentColumn < numColumns; currentColumn++) {

               System.out.print(currentRow + 1);

               System.out.print(currentColumnLetter + " ");

               currentColumnLetter++;

           }

       }

       System.out.println("");

   }

}

2

3

1A  1B  1C  2A  2B  2C

thanks

You might be interested in
An open vat in a food processing plant contains 500 L of water at 20°C and atmospheric pressure. If the water is heated to 80°C,
tester [92]

Answer:

percentage change in volume is 2.60%

water level rise is 4.138 mm

Explanation:

given data

volume of water V = 500 L

temperature T1 = 20°C

temperature T2 = 80°C

vat diameter = 2 m

to find out

percentage change in volume and how much water level rise

solution

we will apply here bulk modulus equation that is ratio of change in pressure   to rate of change of volume to change of pressure

and we know that is also in term of change in density also

so

E = -\frac{dp}{dV/V}  ................1

And -\frac{dV}{V} = \frac{d\rho}{\rho}   ............2

here ρ is density

and we know ρ  for 20°C = 998 kg/m³

and ρ  for 80°C = 972 kg/m³

so from equation 2 put all value

-\frac{dV}{V} = \frac{d\rho}{\rho}

-\frac{dV}{500*10^{-3} } = \frac{972-998}{998}

dV = 0.0130 m³

so now  % change in volume will be

dV % = -\frac{dV}{V}  × 100

dV % = -\frac{0.0130}{500*10^{-3} }  × 100

dV % = 2.60 %

so percentage change in volume is 2.60%

and

initial volume v1 = \frac{\pi }{4} *d^2*l(i)    ................3

final volume v2 = \frac{\pi }{4} *d^2*l(f)    ................4

now from equation 3 and 4 , subtract v1 by v2

v2 - v1 =  \frac{\pi }{4} *d^2*(l(f)-l(i))

dV = \frac{\pi }{4} *d^2*dl

put here all value

0.0130 = \frac{\pi }{4} *2^2*dl

dl = 0.004138 m

so water level rise is 4.138 mm

8 0
2 years ago
Please solve part two
Burka [1]

Answer:

Wat part 2

Explanation:

7 0
2 years ago
Bulk wind shear is calculated by finding the vector difference between the winds at two different heights. Using the supercell w
ivanzaharov [21]

Answer:

See explaination

Explanation:

2. 0-1 km shear value: taking winds at 1000mb and 850 mb

15 kts south easterly and 50 kts southerly

Vector difference 135/15 and 180/50 will be 170/61 or southerly 61 kts

3. 0-6 km shear value: taking winds at 1000 mb and 500 mb

15 kts south easterly and 40 kts westerly

Vector difference 135/15 and 270/40 will be 281/51 kts

please see attachment

5 0
3 years ago
During the recovery of a cold-worked material, which of the following statement(s) is (are) true?
Len [333]

Answer:

Some of the internal strain energy is relieved.

There is some reduction in the number of dislocations.

The electrical conductivity is recovered to its precold-worked state.

The thermal conductivity is recovered to its precold-worked state

Explanation:

The process of the recovery of a cold-worked material happens at a very low temperature, this process involves the movement and annihilation of points where there are defects, also there is the annihilation and change in position of dislocation points which leads to forming of the subgrains and the subgrains boundaries such as tilt, twist low angle boundaries.

4 0
3 years ago
Help please its due today will mark you brainliest
Tems11 [23]

Answer:

launch- The first stage is ignited at launch and burns through the powered ascent until its propellants are exhausted. The first stage engine is then extinguished, the second stage separates from the first stage, and the second stage engine is ignited. The payload is carried atop the second stage into orbit

powered ascent-The first stage is ignited at launch and burns through the powered ascent until its propellants are exhausted. The first stage engine is then extinguished, the second stage separates from the first stage, and the second stage engine is ignited. The payload is carried atop the second stage into orbit

coasting flight-

When the rocket runs out of fuel, it enters a coasting flight. The vehicle slows down under the action of the weight and drag since there is no longer any thrust present. The rocket eventually reaches some maximum altitude which you can measure using some simple length and angle measurements and trigonometry.

ejection charge-At the end of the delay charge, an ejection charge is ignited which pressurizes the body tube, blows the nose cap off, and deploys the parachute. The rocket then begins a slow descent under parachute to a recovery. The forces at work here are the weight of the vehicle and the drag of the parachute.

slow decent- slow downs (i guess)

recovery-A recovery period is typically characterized by abnormally high levels of growth in real gross domestic product, employment, corporate profits, and other indicators. This is a turning point from contraction to expansion and often results in an increase in consumer confidence

Explanation:

6 0
3 years ago
Other questions:
  • A process involves the removal of oil and other liquid contaminants from metal parts using a heat-treat oven, which has a volume
    10·1 answer
  • Basic output with variables (Java) This zyLab activity is intended for students to prepare for a larger programming assignment.
    7·1 answer
  • Technician A says if the input signal turn-on time is too fast for the input circuit, your program may operate as though the inp
    11·1 answer
  • What are your thoughts on physical education ?
    12·2 answers
  • Water at 70 kPa and 1008C is compressed isentropically in a closed system to 4 MPa. Determine the final temperature of the water
    6·1 answer
  • Effective presentations are: Have a central message Colorful and exciting Have many messages Are influence by a setting Created
    15·2 answers
  • Select the correct answer. Jude is a mechanical engineer. He works in the automobile industry. He is creating a prototype of an
    13·1 answer
  • Writing an excellent problem statement will not help guide you through the rest of the process and steer you towards the BEST so
    8·1 answer
  • A single-phase load is located 2800 ft from its source. The load draws a current of 86 A and operates on 480 V. The maximum volt
    10·1 answer
  • The source term will affect all algebraic equations.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!