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
HELP PLEASE!! ASAP!!!!
dezoksy [38]

Actions violated:

  • Long hair isn't tied up
  • The girl isn't wearing a lab coat
  • The girl isn't wearing safety goggles
  • Extra: There doesn't seem to be an emergency fire blanket in the safe

Actions to be taken:

  • Make sure the girl wears a lab coat or kick her out
  • Make sure the girl wears safety goggles or kick her out
  • Make sure her hair is tied up or kick her out

Edit: Use these to write your paragraph.

5 0
3 years ago
Read 2 more answers
Carl why is there a dead man in the living room?
scoray [572]
You always need some company
3 0
3 years ago
HELP ASAP
Illusion [34]

Answer:

You are a historian who is compiling information on the changing materials used in a product in one of the categories listed below. Choose a product that uses a variety of materials that have been discussed in this lesson (for example, a car or a tennis racket). Using online or library resources, research past materials used to create the product. Be sure to discuss the materials currently being used for the design and include information on the sustainability of these resources. Your research must also explain why the materials changes were made (for example, safety, cost, or weight). Keep track of your references so that you can document all of the resources used for your report.

3 0
3 years ago
Which of the following would NOT have to be cleaned after each use?
Delicious77 [7]

Answer:

OD.

nail brush

Explanation:

hope this will help you

4 0
3 years ago
Read 2 more answers
What is equation for surface area?
Marysya12 [62]

Answer:

Surface area is the sum of the areas of all faces (or surfaces) on a 3D shape. pls mark me branilest

6 0
3 years ago
Other questions:
  • Technician A says that TSBs are typically updates to the owner's manual. Technician B says that TSBs are generally
    11·1 answer
  • What is one disadvantage of analog recording?
    7·1 answer
  • An engineer is working with archeologists to create a realistic Roman village in a museum. The plan for a balance in a marketpla
    9·1 answer
  • A turbine operates at steady state, and experiences a heat loss. 1.1 kg/s of water flows through the system. The inlet is mainta
    6·1 answer
  • When 2 cars a and b are next to one another, they are traveling in the same dierection with speeds va and vb, respectively. if b
    10·1 answer
  • The 500 lb load is being hoisted at a constant speed using the motor M, which has a weight of 50 lb. The beam has a weight of 40
    8·1 answer
  • 21. If a Code of Federal Regulations Standard does not specifically address a workplace hazard, which of the following must be i
    12·2 answers
  • Please please help please with this this is the link for the story PLEASE PLEASE HELP PLEASE PLEASE help please
    7·1 answer
  • thier only motto and goal is to work for society and not make any profits A.small business entreprenuership B.scalable start up
    6·2 answers
  • Which of the following activities could be considered unethical?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!