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
Who plays a role in the financial activities of a company?
KatRina [158]

Hey,

Who plays a role in the financial activities of a company?

<em>O D. Everyone at the company, including managers and employees</em>

3 0
3 years ago
For metallurgical reasons, it is desirable to melt the weld metal with minimum energy input. Which one of the following heat sou
stellarik [79]

Answer:

The correct option is;

(a) High power density

Explanation:

The power density of a material is the amount of power per unit volume of the material. Power density, in the context of transformers, fuel cells, batteries, motors, and power supply units, is measured with respect to the volume, and the units is given as W/m³

A system such as a capacitor with an high power density has the capacity to put out large energy amount from a small volume. A capacitor with a high power density, can produce the same power output as a car battery and is said to have a high power density.

8 0
3 years ago
Don't break or crush mercury-containing lamps because mercury powder may be released.
alexandr402 [8]
A.

It would be released without a doubt so be careful!

Hope this helps :)
5 0
3 years ago
An urgent. Please answer this. :)<br><br>1 &amp; 2 are Ω<br><br>3 &amp; 4 are V​
balandron [24]

Answer:

See below ↓

Explanation:

1) 40 Ω

2) 24 Ω

3) 85 V

4) 135 V

6 0
3 years ago
Calculate the biaxial stresses σ1 and σ2 for the biaxial stress case, where ε1 = .0020 and ε2 = –.0010 are determined experiment
Llana [10]

Answer:

i) σ1 = 133.5 MPa

  σ2 = -2427 MPa

ii) 78.89 MPa

Explanation:

Given data:

ε1 = 0.0020 and ε2 = –0.0010

E = 71 GPa

v = 0.35

<u>i) Determine the biaxial stresses  σ1 and σ2 using the relations below</u>

ε1 = σ1 / E - v (σ2 / E)   -----( 1 )

ε2 = σ2 / E - v (σ1 / E)  -------( 2 )

resolving equations 1 and 2

σ1 = E / 1 - v^2 {  ε1 + vε2 } ---- ( 3 )

σ2 = E / 1 - v^2 {  ε2 + vε1 } ----- ( 4 )

input the given data into equation 3 and equation 4

σ1 = 133.5 MPa

σ2 = -2427 MPa

<u>ii) Calculate the value of the maximum shear stress ( Zmax )</u>

Zmax = ( σ1 - σ2 ) / 2

         = 133.5 - ( - 2427 ) / 2

         = 78.89 MPa

3 0
3 years ago
Other questions:
  • A section of a two-lane highway has 12-ft lanes and a design speed of 75 mi/h. The section contains a vertical curve and a horiz
    9·1 answer
  • To compute the energy used by a motor, multiply the power that it draws by the time of operation. Con- sider a motor that draws
    5·1 answer
  • Which of the following is true of dead zones? a. They are formed when a volcanic eruption covers the soil with ash. b. They are
    15·1 answer
  • A rigid tank whose volume is 2 m3, initially containing air at 1 bar, 295 K, is connected by a valve to a large vessel holding a
    15·1 answer
  • Employees cannot be held legally responsible for an environmental violation.
    14·1 answer
  • A crystalline grain of aluminum in a metal plate is situated so that a tensile load is oriented along the [1 1 1] direction. Wha
    9·1 answer
  • Only respond if your the person im talkin to
    14·1 answer
  • A 2-bit positive-edge triggered register has data inputs d1, d0, clock input clk, and outputs q1, q0. Data inputs d1d0 are 01 an
    15·1 answer
  • How does energy transition from one form to another as water moves from behind a dam to downstream of a dam?.
    8·1 answer
  • Pay attention to the following questions!
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!