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
Concerned with the number of maintenance visits the rocket can undergo before being out of service, you have been informed that
Ainat [17]

Answer:

(a) Mn = M₁ + (n-1) (M₂ -M₁) = 1 + (n- 1) 1 = n (b) n > 10 (exceed 10) or n =11 (c) n >50 or n= 51

After making a journey of 51 times, the rocket will be discarded

Explanation:

Solution

(a) Let Mn denotes the number of  maintenance visits after the nth journey

Then M₁ = 1 , M₂ = 1 +M₁ = 2, M₃ = 1 +M₂ = 3

We therefore, notice that M follows an arithmetic sequence

So,

Mn = M₁ + (n-1) (M₂ -M₁)

= 1 + (n- 1) 1 = n

or Mn =n

(b)  For what value of n we will get  fro Mn > 10

Thus,

n > 10 (exceed 10) or n =11

(c)Similarly of Mn is greater than 50 or Mn>50, the rocket will not be used or reused

So,

n >50 or n= 51

After making a journey of 51 times, the rocket will be discarded

7 0
3 years ago
1. Under what conditions can soils be chemically stabilized?
marshall27 [118]

Answer:

All will be Explained below.

Explanation:

1) Under which Condition can a soil be chemically Stabilize.

Answer

a). Plasticity Index :A soil with a high value of plasticity Index is not good for various engineering projects. The introduction of line helps in reducing plasticity due cation exchange reaction.Pozzolanic reaction over time reduces plasticity and increase index strength due to the formation of calcium - silicate hydrate.

7 0
3 years ago
Una empresa realizó en el ejercicio de compras al contado por valor
Tanzania [10]

Answer:

englishhhh pleasee

Explanation:

we dont understand sorry....

8 0
3 years ago
A 100 ft long steel wire has a cross-sectional area of 0.0144 in.2. When a force of 270 lb is applied to the wire, its length in
blondinia [14]

Answer:

(a) The stress on the steel wire is 19,000 Psi

(b) The strain on the steel wire is 0.00063

(c) The modulus of elasticity of the steel is 30,000,000 Psi

Explanation:

Given;

length of steel wire, L = 100 ft

cross-sectional area, A = 0.0144 in²

applied force, F = 270 lb

extension of the wire, e = 0.75 in

<u>Part (A)</u> The stress on the steel wire;

δ = F/A

   = 270 / 0.0144

δ  = 18750 lb/in² = 19,000 Psi

<u>Part (B)</u> The strain on the steel wire;

σ = e/ L

L = 100 ft = 1200 in

σ = 0.75 / 1200

σ = 0.00063

<u>Part (C)</u> The modulus of elasticity of the steel

E = δ/σ

   = 19,000 / 0.00063

E = 30,000,000 Psi

4 0
3 years ago
Roads in rural areas are _______.
Roman55 [17]

Answer:

Explanation:

Mountain roads often zigzag across a mountain with a series of sharp turns called. switchbacks.

6 0
2 years ago
Read 2 more answers
Other questions:
  • To ensure safe footing on penetrable surfaces,use?
    5·1 answer
  • Material with hardness of 220 Vickers is harder than material with a hardness of 180 Vickers. a)-True b)- False
    8·1 answer
  • The acceleration (in m/s^2) of a linear slider (undergoing rectilinear motion) within a If the machine can be expressed in terms
    5·1 answer
  • What considerations are included in the Preliminary Floodproofing/Retrofitting Preference Matrix?
    7·1 answer
  • 1. A turbine in a steam power plant operates isentropically with an inlet pressure (P3) of 3.5 MPa and inlet temperature (T3) of
    9·1 answer
  • A car accelerates uniformly from rest to 60 km/h in 30 s. What is its displacement during this time?
    7·1 answer
  • Which of the following correctly describes caster?
    8·1 answer
  • A(94,0,14) B(52,56,94) C(10,6,48) D(128,64,10)
    6·1 answer
  • Christopher has designed a fluid power system that repeatedly gets clogs. Which of the following objects should he choose to add
    13·1 answer
  • It is important to follow correct procedures when running electrical cables next to data cables in order to protect against whic
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!