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
Researchers at the University of__________modified the iPhone to allow it to create medical images.
Morgarella [4.7K]

Answer:

B

Explanation:

I'm so sorry if this is wrong. This is what I think it is though, I had a class like this and I think this is what I said.

3 0
2 years ago
Read 2 more answers
What are significant figures​
lesantik [10]

Answer:

rounding

Explanation:

each of the digits of a number that are used to express it to the required degree of accuracy, starting from the first non-zero digit.

4 0
3 years ago
The costs of mining and transporting coal are roughly independent of the heating value of the coal. Consider:
Paul [167]

Answer:

2

Explanation:

5 0
3 years ago
An AC generator supplies an rms voltage of 120 V at 50.0 Hz. It is connected in series with a 0.650 H inductor, a 4.80 μF capaci
Serggg [28]

Answer:

Explanation:

f = 50.0 Hz, L = 0.650 H, π = 3.14

C = 4.80 μF, R = 301 Ω resistor. V = 120volts

XL = wL = 2πfL

= 2×3.14×50* 0.650

= 204.1 Ohm

Xc= 1/wC

Xc = 1/2πfC

Xc = 1/2×3.14×50×4.80μF

= 1/0.0015072

= 663.48Ohms

1. Total impedance, Z = sqrt (R^2 + (Xc-XL)^2)= √ 301^2+ (663.48Ohms - 204.1 Ohm)^2

√ 90601 + (459.38)^2

√ 90601+211029.98

√ 301630.9844

= 549.209

Z = 549.21Ohms

2. I=V/Z = 120/ 549.21Ohms =0.218Ampere

3. P=V×I = 120* 0.218 = 26.16Watt

Note that

I rms = Vrms/Xc

= 120/663.48Ohms

= 0.18086A

4. I(max) = I(rms) × √2

= 0.18086A × 1.4142

= 0.2557

= 0.256A

5. V=I(max) * XL

= 0.256A ×204.1

=52.2496

= 52.250volts

6. V=I(max) × Xc

= 0.256A × 663.48Ohms

= 169.85volts

7. Xc=XL

1/2πfC = 2πfL

1/2πfC = 2πf× 0.650

1/2×3.14×f×4.80μF = 2×3.14×f×0.650

1/6.28×f×4.8×10^-6 = 4.082f

1/0.000030144× f = 4.082×f

1 = 0.000030144×f×4.082×f

1 = 0.000123f^2

f^2 = 1/0.000123048

f^2 = 8126.922

f =√8126.922

f = 90.14 Hz

8 0
3 years ago
Dampness or moisture introduces ____ into the weld, which causes cracking when some metals are welded.
N76 [4]

Answer: Dampness or moisture introduces hydrogen into the weld, which causes cracking when some metals are welded.

Explanation:

<em>This moisture (hydrogen) is a major cause of weld cracking and porosity. </em>

5 0
2 years ago
Other questions:
  • Compute the fundamental natural frequency of the transverse vibration of a uniform beam of rectanqular cross section, with one e
    11·2 answers
  • In order to avoid slipping in the shop, your footwear should __
    10·2 answers
  • You are traveling along an interstate highway at 32.0 m/s (about 72 mph) when a truck stops suddenly in front of you. You immedi
    11·1 answer
  • potential difference is the work done in moving a unit positive charge from one point to another in an electric field. State Tru
    12·1 answer
  • 8- Concentration polarization occurs on the surface of the.......
    15·1 answer
  • By using a book of the OHS Act, Act 85 of 1993, find the act or regulation where the following extraction comes from "every empl
    12·1 answer
  • 9
    15·1 answer
  • HELP ASSAPPP
    15·1 answer
  • "Transformer is used to change the voltage".
    5·1 answer
  • Suppose a manager of a certain mining company wants to determine the weekly food expenditure of the company’s employees. if ther
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!