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 FCC iron–carbon alloy initially containing 0.35 wt% C is exposed to an oxygen-rich and virtually carbon-free atmosphere at 14
disa [49]

Answer:

3.99 mm

Explanation:

To treat a diffusive process in function of time and distance we need to solve  2nd Ficks Law. This a partial differential equation, with certain condition the solution looks like this:

\frac{C_{s}-C_{x}}{C_{s}-C{o}} =erf(x/2\sqrt{D*t})

Where Cs is the concentration in the surface of the solid

Cx is the concentration at certain deep X

Co is the initial concentration of solute in the solid

and erf is the error function

First we need to solve the Cs-Cx/Cs-Co on the left to search the corresponding value later on a table.

\frac{0.15}{0.35} =0.4285

We look on a table and we see for erf(z)=0.4284 z=0.40

Then we solve for x

x=0.40*2*\sqrt{D*t}=0.40*2*\sqrt{6.9*10^{-11}m^{2}/s*36000s}=0.00399m=3.99mmt} )[/tex]

7 0
3 years ago
Determine the minimum radius of a horizontal circular curve for a route having a 70 mph design speed, super-elevation (e) 3%, an
patriot [66]

Answer:

a) Rmin ≈ 52 m

b) D = 110.184°

c) Lc ≈ 59 m

d) PT Station = 2827+12.37

PT Station = 2827+78.63

Explanation:

a) Given

v = 70 mph = (70 mph)(1,609 m/1 mile)(1 h/3600 s) = 31.286 m/s

e = 3% = 0.03

f = 0.12

a) We can use the equation

Rmin = v²/(127*(e + f))

⇒ Rmin = (31.286)²/(127*(0.03 + 0.12))

⇒ Rmin = 51.38 m ≈ 52 m

b) We can use the equation

D = 5729.578/R  ⇒  D = 5729.578/52

⇒  D = 110.184°

c) We apply the formula

Lc = R*Δ/57.3

If  Δ = 65°  we have

Lc = 52*65/57.3

⇒ Lc = 58.98 m ≈ 59 m

d) If the PI is station 2827+45.50 we get the tangent length T as follows:

T = R*tan(Δ/2)

⇒ T = 52*tan(65/2) = 33.13 m

then, the station of the PC will be

PC Station = PI - T

⇒ PC Station = (2827+45.50) - (0+33.13) = 2827+12.37

and the station of the PT will be

PT Station = PI + T

⇒ PT Station = (2827+45.50) + (0+33.13) = 2827+78.63

3 0
4 years ago
How is electricity made from fossil fuels such as coal?.
xeze [42]

Answer:

Coal or oil-fired power plants generate heat, which is then used to generate steam, which drives turbines that generate electricity.

<em>I hope this helps you</em>

<em>:)</em>

8 0
2 years ago
What is Batch manufacturing?
Alex
Batch production is a method of manufacturing where the products are made as specified groups or amounts, within a time frame. A batch can go through a series of steps in a large manufacturing process to make the final desired product.
3 0
3 years ago
When lining up the song on the tempo grid it is important to allow
Reika [66]

Tempo decides the speed at which the music is played.

<u>Explanation:</u>

The Tempo of a bit of music decides the speed at which it is played, and is estimated in beats per minute (BPM). The 'beat' is dictated when mark of the piece, so 100 BPM in 4/4 compares to 100 quarter notes in a single moment.

A quick tempo, prestissimo, has somewhere in the range of 200 and 208 beats for each moment, presto has 168 to 200 beats for every moment, allegro has somewhere in the range of 120 and 168 beats for every moment, moderato has 108 to 120 beats for every moment, moderately slow and even has 76 to 108, adagio has 66 to 76, larghetto has 60 to 66, and largo, the slowest rhythm, has 40 to 60.

6 0
3 years ago
Other questions:
  • What is the name for a part of a window that joins two windows into a single unit?
    12·1 answer
  • According to the HERARCHY of hazard control what sequence is specified for protecting workers from chemical hazards assume that
    7·1 answer
  • Carry Generate (CG) and Carry Propagate (CP) are defined with AND and XOR operators, respectively. Show the algebraic expression
    15·1 answer
  • (TCO A) Explain how computer-aided design and flexible manufacturing help create small niches in the market place. Provide and e
    5·1 answer
  • Steam is contained in a closed rigid container which has a volume of 2 initially the the pressure and the temperature is the rem
    5·1 answer
  • Tech A says that thrust angle refers to the direction the front wheels are pointing. Tech B says that scrub radius refers to the
    8·1 answer
  • Turning a screw with a screwdriver pushes the screw into the wood. The force is __________ over many turns
    9·1 answer
  • An inductor is connected to a voltage source and it is found that it has a time constant, t. When a 10-ohm resistor is placed in
    12·1 answer
  • 10. Which one of the following items would you expect to find on a floor framing plan?
    6·2 answers
  • A skull and crossbones pictogram indicates this kind of information about a chemical.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!