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
Consider laminar, fully developed flow in a channel of constant surface temperature Ts. For a given mass flow rate and channel l
Pachacha [2.7K]

Answer:

Please see attachment.

Explanation:

8 0
3 years ago
A water supply agency is planning to add two reservoirs to its system. Water will flow from Reservoir A to Reservoir B via a 10,
NikAS [45]

Attached is the solution to the above question.

3 0
3 years ago
If a generator has 120 volts and 22 amps, how many ohms are needed so the generator will not explode.
daser333 [38]
120 volt divided by 22 ampere
= 5.4545454545455 ohm (Ω)
P = V × I
= 120 volt × 22 ampere
= 2640 watt (W)
7 0
3 years ago
A buret is a device designed to precisely dispense liquids. The scale is calibrated in mL with the zero point at the top with nu
kobusy [5.1K]

Answer:

As there was no attached picture, I will explain how to take the measurement of liquids in any buret which you can then apply to the specific question

Explanation:

A buret is a  laboratory apparatus used to precisely measure the volume of liquids (usually alkalise or bases) used in a titration experiment. The standard buret has a capacity of 50 ml  and graduated in 0.1ml though burets with smaller capacities exist.

From the question, your buret is filled to the top (0.00ml) with liquid. It is very important when taking buret readings to place the buret below your eye level so that the bottom meniscus (lower part of the liquid) can be read.

To take the buret reading, note your initial buret reading (in this case 0.00ml) then titrate the liquid base in the buret against the acid by opening the tap located at the bottom of the buret.

When the titration or reaction is complete, note the final reading against the calibration of buret. You can do this by observing the lower meniscus of the liquid remaining in the buret. (Remember to keep the buret at eye level  to avoid parallax error),

The difference between your final buret reading and the initial buret reading gives you the precise volume of liquid used in the reaction.

6 0
3 years ago
Section BreakProblem 08.048 2.value: 5.00 pointsRequired information Problem 08.048.b Compute the expected error. The expected e
Lady_Fox [76]

Answer:

a) 19 or select the closest answer

b) 5%

Explanation:

a)

from the voltage divide rule

V_{in} = V_0 * \frac{R_2}{R_2 + R_f}

\frac{V_0}{V_{in}} = \frac{R_2 + R_f}{R_2} => 1 + \frac{R_f}{R_2} = 20

\frac{R_f}{R_2} = 19

Select the nearest answer

b)

obtained gain = \frac{V_0}{V_{in}} = 1 + \frac{36}{2} = 19

Expected gain = \frac{V_0}{V_{in}} = 20

∴ error = |\frac{19 - 20}{20}| × 100

            = 1/20 × 100            

            = 5%

6 0
3 years ago
Other questions:
  • The pressure gage on a 2.5-m^3 oxygen tank reads 500 kPa. Determine the amount of oxygen in the tank if the temperature is 28°C
    15·1 answer
  • A fuel cell vehicle draws 50 kW of power at 70 mph and is 40% efficient at rated power. You are asked to size the fuel cell syst
    15·1 answer
  • Why or why not the following materials will make good candidates for the construction of
    15·1 answer
  • How do I cancel my subscription
    12·2 answers
  • A cylindrical specimen of a titanium alloy having an elastic modulus of 107 GPa (15.5 × 106 psi) and an original diameter of 3.7
    14·1 answer
  • Draw the sequence of BSTs that results when you insert the keys E, A, S, Y, Q, U, E, S, T, I, O, N, in that order into an initia
    10·1 answer
  • In water and wastewater treatment processes a filtration device may be used to remove water from the sludge formed by a precipit
    10·1 answer
  • WARNING:<br><br> when people put links in the answer it is a virus DO NOT DOWNLOAD IT
    15·2 answers
  • How many steps are there in the problem-solving process?
    9·2 answers
  • For some metal alloy, the following engineering stresses produce the corresponding engineering plastic strains prior to necking.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!