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
A segment of four-lane freeway (two lanes in each direction) has a 3% upgrade that is 1500 ft long followed by a 1000-ft 4% upgr
Dennis_Churaev [7]

Answer:

The level of service of of compound grade freeway is LOSB.

Explanation:

Find the provided attachments for explanation

3 0
3 years ago
Q.14
Kay [80]

Answer:

A. optical isolation

Explanation:

well I can't really give a good explanation because I also saw the same question in my exams and option A was the correct answer

6 0
3 years ago
Viscous effects are negligible outside of the hydrodynamic boundary layer. (3 points) a. True b. False
Valentin [98]

Answer:

I would say false but I am not for sure

8 0
3 years ago
The size of Carvins Cove water reservoir is 3.2 billion gallons. Approximately, 11 cfs of water is continuous withdrawn from thi
Zolol [24]

Answer:

471 days

Explanation:

Capacity of Carvins Cove water reservoir = 3.2 billion gallons i.e. 3.2 x 10˄9 gallons

As,  

1 gallon = 0.133 cubic feet (cf)

Therefore,  

Capacity of Carvins Cove water reservoir in cf  = 3.2 x 10˄9 x 0.133

                                                                         = 4.28 x 10˄8

 

Applying Mass balance i.e

Accumulation = Mass In - Mass out   (Eq. 01)

Here  

Mass In = 0.5 cfs

Mass out = 11 cfs

Putting values in (Eq. 01)

Accumulation  = 0.5 - 11

                         = - 10.5 cfs

 

Negative accumulation shows that reservoir is depleting i.e. at a rate of 10.5 cubic feet per second.

Converting depletion of reservoir in cubic feet per hour = 10.5 x 3600

                                                                                       = 37,800

 

Converting depletion of reservoir in cubic feet per day = 37, 800 x 24

                                                                                         = 907,200  

 

i.e. 907,200 cubic feet volume is being depleted in days = 1 day

1 cubic feet volume is being depleted in days = 1/907,200 day

4.28 x 10˄8 cubic feet volume will deplete in days  = (4.28 x 10˄8) x                    1/907,200

                                                                                 = 471 Days.

 

Hence in case of continuous drought reservoir will last for 471 days before dry-up.

8 0
2 years ago
Describe carbonation as it applies to the four-stroke engine.
valentinak56 [21]
Carbonation is more of a healer to the engine
5 0
2 years ago
Read 2 more answers
Other questions:
  • What can your employer do to protect you from overhead power lines?
    8·1 answer
  • Your class has designed a self-cleaning reptile tank. What kind of patent would you apply for? A. a plant patent B. a design pat
    14·2 answers
  • A team member who has been a good worker for many years has recently been doing poor work. You suspect that he may be tired of h
    6·1 answer
  • 4. The friction point is the point
    12·1 answer
  • The fouling on the heat exchanger surfaces causes additional thermal resistance, thus decreases the heat transfer rate. a)- True
    11·1 answer
  • For an irreversible isothermal process occured in a system with temperature T, which following expression best evaluates the cha
    11·1 answer
  • Consider the formation of p-nitrophenol from p-nitrophenyl trimethyl acetate. The process is known as enzymatic hydrolysis and i
    7·1 answer
  • Three 1.83 in. diameter bolts are used to connect the axial member to the support in a double shear connection. The ultimate she
    8·1 answer
  • g Asbestos is a fibrous silicate mineral with remarkably high tensile strength. But is no longer used because airborne asbestos
    5·1 answer
  • An engine has a piston with a surface area of 17.31 in2 and can travel 3.44 inches. What is the potential change in volume, disp
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!