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
1. The construction process begins with which of the following stages?
Firdavs [7]

Answer:

c) site preparation

Explanation:

A construction process can be defined as a series of important physical events (processes) that must be accomplished during the execution of a construction project.

Generally, in the construction of any physical asset such as offices, hospitals, schools, stadiums etc, the first step of the construction process is site preparation. Site preparation refers to processes such as clearing, blasting, levelling, landfilling, surveying, cutting, excavating and demolition of all unwanted objects on a piece of land, so as to make it ready for use.

This ultimately implies that, site preparation should be the first task to be accomplished in the construction process.

Hence, the construction process typically begins with site preparation before other activities such as the laying of foundation can be done.

Additionally, construction costs can be defined as the overall costs associated with the development of a built asset, project or property. The construction costs is classified into two (2) main categories and these are; capital and operational costs.

7 0
3 years ago
What should be your strongest tool be for gulding your ethical decisions making process
valkas [14]

Answer:

Recognize that there is a moral dilemma.

Determine the actor. ...

Gather the relevant facts. ...

Test for right versus wrong issues. ...

Test for right versus right paradigms. ...

Apply the resolution principles. ...

Investigate the trilemma options. ...

Make the decision.

7 0
2 years ago
10% A steel beam W18x76 spans 32 feet and is subjected to a Moment of 334 kips-ft. Find the load w on the beam. Determine the de
Lilit [14]

Answer:

w = 10.437 kips

deflection at 1/4 span  20.83\E ft

at mid span = 1.23\E ft

shear stress  7.3629 psi

Explanation:

area of cross section = 18*76

length of span = 32 ft

moment = 334 kips-ft

we know that

moment = load *eccentricity

334 = w * 32

w = 10.437 kips

deflection at 1/4 span

\delta = \frac{wa^2b^2}{3EI}

= \frac{10.4375*8^2 *24^2}{3E \frac{BD^3}{12}}

         =\frac{10.437 *8^2*24^2}{3E \frac{18*16^3}{12}}

         = 20.83\E ft

at mid span

\delta = \frac{wl^3}{48EI}

= \frac{10.43 *32^3}{48 *E*\frac{18*16^3}{12}}

\delta = 1.23\E ft

shear stress

\tau = \frac{w}{A} = \frac{10.43 7*10^3}{18*76} =7.3629 psi

6 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
What’s Statistics<br> What are the 2 Source of error in data collection
FromTheMoon [43]

Answer:

<em>The main sources of error in the collection of data are as follows : Due to direct personal interview. Due to indirect oral interviews. Information from correspondents may be misleading.</em>

4 0
3 years ago
Read 2 more answers
Other questions:
  • Why does the auto industry prefer uniform (national) standards for automobile emissions as opposed to regionally varying standar
    11·1 answer
  • Explain the difference in the heat transfer modes of conduction and convection.
    14·1 answer
  • A 450 MWt combined cycle plant has a Brayton cycle efficiency of 24% and a Rankine cycle efficiency of 29% with no heat augmenta
    6·1 answer
  • Wqqwfqwfqwfqfqfqffqwffqwqfqqfqfqffqqfqfwccc
    12·2 answers
  • Prove the following languages are nonregular, once using the pumping lemma and once using the Myhill-Nerode theorem. When using
    15·1 answer
  • Which of the following justifies the need for an already-certified engineer to continue to take classes?
    15·1 answer
  • A student lives in an apartment with a floor area of 60 m2 and ceiling height of 1.8 m. The apartment has a fresh (outdoor) air
    14·1 answer
  • TOPO NÀO CÓ CẤU HÌNH ĐA ĐIỂM
    15·2 answers
  • 6.3. A __________ is used to indicate the base material that needs to be beveled.
    12·1 answer
  • Which type of system is being researched to deliver power to several motors to drive multiple systems in vehicles?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!