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
What are the success factors for mechanical engineering?
Eva8 [605]

Answer:

-effective technical skills.

-the ability to work under pressure.

-problem-solving skills.

-creativity.

-interpersonal skills.

-verbal and written communication skills.

-commercial awareness.

-teamworking skills.

Explanation:

is this what ur looking for? if so there ya go lol

7 0
2 years ago
Read 2 more answers
Imagine you are a process safety consultant and you have been tasked to make a metal refinery site DSEAR compliant. What are the
masya89 [10]

Complying with DSEAR involves:

Assessing risks. ...

Preventing or controlling risks. ...

Control measures. ...

Mitigation. ...

Preparing emergency plans and procedures. ...

Providing information, instruction and training for employees. ...

Places where explosive atmospheres may occur ('ATEX' requirements)

hse uk

4 0
2 years ago
Consider a thin suspended hotplate that measures 0.25 m × 0.25 m. The isothermal plate has a mass of 3.75 kg, a specific heat of
Orlov [11]

Answer:

Heat losses by convection, Qconv = 90W

Heat losses by radiation, Qrad = 5.814W

Explanation:

Heat transfer is defined as the transfer of heat from the heat surface to the object that needs to be heated. There are three types which are:

1. Radiation

2. Conduction

3. Convection

Convection is defined as the transfer of heat through the actual movement of the molecules.

Qconv = hA(Temp.final - Temp.surr)

Where h = 6.4KW/m2K

A, area of a square = L2

= (0.25)2

= 0.0625m2

Temp.final = 250°C

Temp.surr = 25°C

Q = 64 * 0.0625 * (250 - 25)

= 90W

Radiation is a heat transfer method that does not rely upon the contact between the initial heat source and the object to be heated, it can be called thermal radiation.

Qrad = E*S*(Temp.final4 - Temp.surr4)

Where E = emissivity of the surface

S = boltzmann constant

= 5.6703 x 10-8 W/m2K4

Qrad = 5.6703 x 10-8 * 0.42 * 0.0625 * ((250)4 - (25)4)

= 5.814 W

7 0
3 years ago
An electromagnet is formed when a coil of wire wrapped around an iron core is hooked up to a dry cell battery. The current trave
german

Answer:

true

Explanation:

true An electromagnet is formed when a coil of wire wrapped around an iron core is hooked up to a dry cell battery. The current traveling through the wire sets up a magnetic field around the wire. TRUE or FALSE

3 0
2 years ago
The solid aluminum shaft has a diameter of 50 mm. Determine the absolute maximum shear stress in the shaft and sketch the shear-
jarptica [38.1K]

Answer:

Max shear = 8.15 x 10^7 N/m2

Explanation:

In order to find the maximum stress for a solid shaft having radius r, we will be applying the Torsion formula which can be written as;

Allowable Shear Stress = Torque x Radius / pi/2 x radius^4

Putting the values we have;

T = 2000 N/m

Radius = Diameter/2 = 0.05 / 2 = 0.025 m

Putting values in formula;

Max shear = 2000 x 0.025 / 3.14/2 x (0.025)^4

Max shear = 8.15 x 10^7 N/m2

5 0
3 years ago
Other questions:
  • What is pessimism technology
    12·1 answer
  • 12. Dies are turned using a special tool called a/an
    10·1 answer
  • Fix the code so the program will run correctly for MAXCHEESE values of 0 to 20 (inclusive). Note that the value of MAXCHEESE is
    8·1 answer
  • Only an outer panel is being replaced. Technician A says that removing the spot welds by drilling through both panels allows the
    11·1 answer
  • Refrigerant-134a enters an adiabatic compressor at -30oC as a saturated vapor at a rate of 0.45 m3 /min and leaves at 900 kPa an
    13·1 answer
  • Three consequences of unbalanced wheels on a motor vehicle​
    11·1 answer
  • Explain with examples:<br> What are the reasons of a successful and unsuccessful software project?
    8·1 answer
  • OSHA requires safe work practices when working around brake shoes and clutches that contain asbestos.
    5·1 answer
  • I) A sag vertical curve is to be designed to join a 4% grade to a 2% grade. If the design
    6·1 answer
  • This test should be performed on all cord sets, receptacles that aren't part of a building or structure's permanent wiring, and
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!