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
It is easy to say that an organization should hire, reward, and dismiss employees based on their character as well as their know
Nata [24]

It is possible to generate a policy in which common points such as those mentioned above are agreed in order to hire or fire employees in their function of their psychological personality, that is, the character of knowledge and skills. Depending on the company, Test could be created in order to evaluate the psychological skills of the employees, as well as Test to periodically determine how their employees are kept up to date with regard to knowledge. The cumulative filter could be done every semester, for which each employee must exceed a minimum margin of score on these tests, otherwise his position could be at risk.

At the same time, incentives can be generated for the best scores that are rewarded not only with monetary values but also with rest days, coupons in restaurants or sports, which would cause the worker to strive to be constantly learning.

This policy agreement is outside the vision and mission of the company, and whose information must be given to the worker once he begins his work activities.

5 0
3 years ago
Express (118)10 and (-49)10 in 8-bit binary one’s complement form and then add the numbers. What would be the representation (-0
stealth61 [152]

Answer:

118_{10}= 0110111 2) -49_{10}=110001_{2} 3) 0_{10}=0:16 \Rightarrow 0_{10}=0_{16}

Explanation:

1) Expressing the Division as the summation of the quotient and the remainder

for

118, knowing it is originally a decimal form:

118:2=59  +(0), 59/2 =29 + 1, 29/2=14+1, 14/2=7+0, 7/2=3+1, 3/2=1+1, 1/2=0+1

118_{10}= 0110111

2) -49_{10}

Similarly, we'll start the process with the absolute value of -49 since we want the positive value of it. Then let's start the successive divisions till zero.

|-49|=49

49:2=24+1, 24:2=12+0,12:2=6+0,6:2=3+0,3:2=1+1,1:2=0+1

100011

-49_{10}=110001_{2}

3) (-0)_{10}

The first step on that is dividing by 16, and then dividing their quotient again by 16, so on and adding their remainders. Simply put:

(-0)_{10}=0:16=0 \Rightarrow (0)_{10}=0_{16} \:or\\(0)_{16}=0000000000000000

5 0
3 years ago
What two things must be included in your function definition?
mars1129 [50]

Explanation:

commands to be and function arguments

8 0
3 years ago
What is the lehr and what purpose does it serve?
levacccp [35]

Explanation:

Step1

Lehr is the long open or closed insulated space for glass manufacturing. Lehr must be large enough to keep the cooling of glass uniform. The function of Lehr is the same as an annealing process in metallurgy.  

Step2

Lehr decrease the cooling and temperature variation in glass production. Uneven temperature creates the internal stress in the glass. Lehr reduces the internal stress in the glass product.  So, the main purpose of the Lehr is to reduce the internal stress and keep the cooling uniform.

5 0
3 years ago
Two fluids, A and B exchange heat in a counter – current heat exchanger. Fluid A enters at 4200C and has a mass flow rate of 1 k
Volgvan

Answer:

Your question has some missing information below is the missing information

Given that ( specific heat of fluid A = 1 kJ/kg K and specific heat of fluid B = 4 kJ/kg k )

answer : 300 kW , 95°c

Explanation:

Given data:

Fluid A ;

Temperature of Fluid ( Th1 )  = 420° C

mass flow rate (mh)  = 1 kg/s

Fluid B :

Temperature ( Tc1) = 20° C

mass flow rate ( mc ) = 1 kg/s

effectiveness of heat exchanger = 75% = 0.75

<u>Determine the heat transfer rate and  exit temperature of fluid</u> <u>B</u>

Cph = 1000 J/kgk

Cpc = 4000 J/Kgk

Given that the exit temperatures of both fluids are not given we will apply the NTU will be used to determine the heat transfer rate and exit temperature of fluid B

exit temp of fluid  B = 95°C

heat transfer = 300 kW

attached below is a the detailed solution

5 0
3 years ago
Other questions:
  • In the 1960s through 1980s, a medical filter manufacturer in Ann Arbor discharged 1,4-dioxane (an industrial solvent) directly i
    10·1 answer
  • What is the differences between stack and queue?
    11·1 answer
  • What does this work for
    6·1 answer
  • A police officer in a patrol car parked in a 70 km/h speed zone observes a passing automobile traveling at a slow, constant spee
    6·1 answer
  • The costs of mining and transporting coal are roughly independent of the heating value of the coal. Consider:
    15·1 answer
  • Consider a refrigerator that consumes 320 W of electric power when it is running. If the refrigerator runs only one quarterof th
    6·1 answer
  • El protozoos es del reino protista?
    14·2 answers
  • Which work practice should be followed to best prevent the ingestion of chemicals?
    7·1 answer
  • For the following circuit diagram, if A=010 , B= 101.
    6·1 answer
  • If a bearing needs 4. 0 s to solidify enough for impact, how high must the tower be?.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!