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
Which career best fits the group of the words below? High voltage, lines
Llana [10]

Answer:

I forget the word for it, but probably the guys who set up the power lines in the city.

Explanation:

5 0
3 years ago
Read 2 more answers
Shortly after the introduction of a new​ coin, newspapers published articles claiming the coin is biased. The stories were based
garik1379 [7]

Answer:

(a) 0.12924

(b) Taking into consideration significance level of 0.05 yet the value of p is greater than 0.05, it suggests that the coin is fair hence the coin can be used at the beginning of any sport event.

Explanation:

(a)

n=200 for fair coin getting head, p= 0.5

Expectation = np =200*0.5=100

Variance = np(1 - p) = 100(1-0.5)=100*0.5=50

Standard deviation, s = \sqrt {variance}=\sqrt {50}= 7.071068

Z value for 108, z =\frac {108-100}{7.071068}= 1.131371

P( x ≥108) = P( z >1.13)= 0.12924

(b)

Taking into consideration significance level of 0.05 yet the value of p is greater than 0.05, it suggests that the coin is fair hence the coin can be used at the beginning of any sport event.

3 0
3 years ago
weight of 1000 pounds is suspended from two cables. The allowable stress in the cables is 1500 psi. Find the minimum diameter fo
kari74 [83]

Answer:

The minimum diameter for each cable should be 0.65 inches.

Explanation:

Since, the load is supported by two ropes and the allowable stress in each rope is 1500 psi. Therefore,

(1/2)(Weight/Cross Sectional Area) = Allowable Stress

Here,

Weight = 1000 lb

Cross-sectional area = πr²

where, r = minimum radius for each cable

(1/2)(1000 lb/πr²) = 1500 psi

500 lb/1500π psi = r²

r = √1.061 in²

r = 0.325 in

Now, for diameter:

Diameter = 2(radius) = 2r

Diameter = 2(0.325 in)

<u>Diameter = 0.65 in</u>

7 0
3 years ago
A particular motor rotates at 3000 revolutions per minute. What is its speed in rad/sec, and how many seconds does it takes to m
Leno4ka [110]

Answer:

ω=314.15 rad/s.

0.02 s.

Explanation:

Given that

Motor speed ,N= 3000 revolutions per minute

N= 3000 RPM

The speed of the motor in rad/s given as

\omega=\dfrac{2\pi N}{60}\ rad/s

Now by putting the values in the above equation

\omega=\dfrac{2\pi \times 3000}{60}\ rad/s

ω=314.15 rad/s

Therefore the speed in rad/s will be 314.15 rad/s.

The speed in rev/sec given as

\omega=\dfrac{ 3000}{60}\ rad/s

ω= 50 rev/s

It take 1 sec to cover 50 revolutions

That is why to cover 1 revolution it take

\dfrac{1}{50}=0.02\ s

4 0
3 years ago
g A heat exchanger is designed to is to heat 2,500 kg/h of water from 15 to 80 °C by engine oil. The configuration of the heat e
sergey [27]

Answer:

See explaination

Explanation:

Please kindly check attachment for the step by step solution of the given problem.

The attached file gave a detailed solution of the problem.

8 0
3 years ago
Other questions:
  • At the instant shown, slider block B is moving with a constant acceleration, and its speed is 150 mm/s. Knowing that after slide
    13·1 answer
  • Ion 2 23
    10·1 answer
  • Two points along a wire are labeled Xand Y. The current is measured to be iXY= –3A.The reference direction of iXY is defined by
    11·1 answer
  • It is desired to produce and aligned carbon fiber-epoxy matrix composite having a longitudinal tensile strength of 800 MPa. Calc
    6·1 answer
  • Which device assists with medical imaging?
    7·2 answers
  • Describe the role of C-S-H in providing strength for cement. Discuss which compounds produce C-S-H and why balancing the amounts
    13·1 answer
  • Which of the following has special properties that allow forces and pressure to be distributed evenly?
    15·1 answer
  • Find the capacitance reactance of a 0.1 micro frequency capacitor 50Hz and at 200Hz​
    9·1 answer
  • Which Two moon phases are directly opposite each other?
    9·2 answers
  • A protocol is a set of rules or procedures, usually written, that should be followed in specific situations. Which of the follow
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!