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
vodka [1.7K]
3 years ago
5

python Given num_rows and num_cols, 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. Ex: num_rows = 2 and num_cols = 3 prints: 1A 1B 1C 2A 2B 2Cnum_rows = 2num_cols = 3# Note 1: You will need to declare more variables# Note 2: Place end=' ' at the end of your print statement to separate seats by spaces

Engineering
1 answer:
MissTica3 years ago
3 0

Explanation:

First of all get the input from the user, number of rows and number of columns where rows represents seat digit number and column represents the seat letter

rows is initialized to 1 to ensure that row starts at 1 or you can remove it then seat number will start from 0.

The first loop is used for digits starting from 1 to number of rows

The second loop is used for letters starting from 1 to number of columns

since rows and cols are not of the same type that's why we are converting the int type to string type

print(str(rows)+cols) counter will keep updating the columns A, B, C.....

rows= rows + 1 counter will keep updating the rows 1, 2, 3....

Code:

Please refer to the attached image.

Output:

Please enter the number of rows: 2

Please enter the number of columns: 3

1A

1B

1C

2A

2B

2C

You might be interested in
14. The load across a 50.0-V battery consists of a
Paladinen [302]
The answer you’re looking for is
A.
- I hope this helps, I got it right. Enjoy the rest of your day/night, please make me brainliest!
7 0
3 years ago
Select the correct answer. Felix aspires to be an engineer working for the government. What credentials will Felix require to ap
Aneli [31]

Answer:

OB

Explanation:

5 0
3 years ago
Which regulations are related to guard rail height and dimensions and uniformity of stairs?
galina1969 [7]

Answer:

C.

structural safety

Explanation:

Guards protecting floor surfaces must be 36 inches in height, while guards for stairs must be 34 inches in height measured vertically from the tread nosing. A guard may also serve as the required handrail (34 to 38 inches high) provided the top rail meets the requirements for grip size.

4 0
3 years ago
Read 2 more answers
Compared to arc welding, which of the following statements are true about<br> gas welding?
UNO [17]

Show than arc welding

4 0
3 years ago
The cars of a roller-coaster ride have a speed of 30 km / h as they pass over the top of the circular track. Neglect any frictio
PtichkaEL [24]

Answer:

Explanation:

30 we know that radius is 18 and the circumference is 36pi and the time to go around is is 36pi/30=1.2pi≈3.76991118

7 0
3 years ago
Other questions:
  • In manufacturing a particular set of motor shafts, only shaft diameters of between 38.00 and 37.50 mm are usable. If the process
    12·1 answer
  • A conical enlargement in a vertical pipeline is 5 ft long and enlarges the pipe diameter from 12 in. to 24 in. diameter. Calcula
    5·1 answer
  • Consider the following set of processes, with the length of the CPU burst given in milliseconds:Process Burst Time PriorityP1 2
    12·1 answer
  • What is the main purpose of the alternator?
    13·1 answer
  • Design a 10-to-4 encoder with inputs in the l-out-of-10 code and outputs in a code like normal BCD except that input lines 8 and
    8·1 answer
  • 7. The "3 second rule" is the time you should pause at an intersection marked with a stop sign.
    6·1 answer
  • How to draw a location/site plan​
    11·2 answers
  • What is the flow of a charge called​
    12·1 answer
  • What is a radio wave made up of? Molecules? Electrons? Other?
    15·2 answers
  • How many volts of alternating current passes through the electrolytic capacitor
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!