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
Witch measuring tool would be used to determine the diameter of a crankshaft journal
djverab [1.8K]
Answer =

dial bore gauge

a “dial bore gauge” measures the inside of round holes, such as the bearing journals . can mesure up to 2” and 6” diameter holes .

when ( “ ) is next to a number it means inches fwi - but hope this helped have a good day :)
3 0
3 years ago
HELP ME PLEASE RN
IRISSAK [1]

Answer:

information

Explanation:

see picture

8 0
3 years ago
What does WCS stand for? A. Western CAD System B. Worldwide Coordinate Sectors C. World Coordinate System D. Wrong CAD Settings
Ray Of Light [21]

Answer:

The correct answer is C. World Coordinate System

Explanation:

The World Coordinate System has to do with that coordinate system which is fixed in the activities of the CADing. There is a default system in which we can refer to them as soon as we want to manipulate the objects and add new elements.

7 0
3 years ago
Select the right answer<br>​
Kruka [31]

Answer:

for 1st question the answer is 5th option.

for 2nd question the answer is 2nd option

hope it helps you mate

please mark me as brainliast

5 0
3 years ago
A steel bar is 150 mm square and has a hot-rolled finish. It will be used in a fully reversed bending application. Sut for the s
Xelga [282]

Answer:

See explanation

Explanation:

Given The bar is square and has a hot-rolled finish. The loading is fully reversed bending.

Tensile Strength

Sut: 600 MPa

Maximum temperature

Tmax: 500 °C

Bar side dimension

b: 150 mm

Alternating stress

σa: 100 MPa

Reliability

R: 0.999 Note 1.

Assumptions Infinite life is required and is obtainable since this ductile steel will have an endurance limit. A reliability factor of 99.9% will be used.

Solution See Excel file Ex06-01.xls.

1 Since no endurance-limit or fatigue strength information is given, we will estimate S'e based on the ultimate tensile strength using equation 6.5a.

S'e: 300 MPa = 0.5 * Sut

2 The loading is bending so the load factor from equation 6.7a is

Cload: 1

3 The part size is greater than the test specimen and the part is not round, so an equivalent diameter based on its 95% stressed area must be determined and used to find the size factor. For a rectangular section in nonrotating bending, the A95 area is defined in Figure 6-25c and the equivalent diameter is found from equation 6.7d

A95: 1125 mm2 = 0.05 * b * b Note 2.

dequiv: 121.2 mm = SQRT(A95val / 0.0766)

and the size factor is found for this equivalent diameter from equation 6.7b, to be

Csize: 0.747 = 1.189 * dequiv^-0.097

4 The surface factor is found from equation 6.7e and the data in Table 6-3 for the specified hot-rolled finish.

Table 6-3 constants

A: 57.7

b: -0.718 Note 3.

Csurf: 0.584 = Acoeff * Sut^bCoeff

5 The temperature factor is found from equation 6.7f :

Ctemp: 0.710 = 1 - 0.0058 * (Tmax - 450)

6 The reliability factor is taken from Table 6-4 for R = 0.999 and is

Creliab: 0.753

7 The corrected endurance limit Se can now be calculated from equation 6.6:

Se: 69.94 MPa = Cload * Csize * Csurf * Ctemp *

Creliab * Sprme

Let

Se: 70 MPa

8 To create the S-N diagram, we also need a value for the estimated strength Sm at 103 cycles based on equation 6.9 for bending loading.

Sm: 540 MPa = 0.9 * Sut

9 The estimated S-N diagram is shown in Figure 6-34 with the above values of Sm and Se. The expressions of the two lines are found from equations 6.10a through 6.10c assuming that Se begins at 106 cycles.

b: -0.2958 Note 4.

a: 4165.7

Plotting Sn as a function of N from equation 6.10a

N Sn (MPa)

1000 540 =aa*B73^bb

2000 440

4000 358

8000 292

16000 238

32000 194

64000 158

128000 129

256000 105

512000 85

1000000 70

FIGURE 6-34. S-N Diagram and Alternating Stress Line Showing Failure Point

10 The number of cycles of life for any alternating stress level can now be found from equation 6.10a by replacing σa for Sn.

At N = 103 cycles,

Sn3: 540 MPa = aa * 1000^bb

At N = 106 cycles,

Sn6: 70 MPa = aa * 1000000^bb

The figure above shows the intersection of the alternating stress line (σa = 100 MPa) with the failure line at N = 3.0 x 105 cycles.

8 0
3 years ago
Other questions:
  • 9) A construction company employs 2 sales engineers. Engineer 1 does the work in estimating cost for 70% of jobs bid by the comp
    11·1 answer
  • Exercise 19
    15·1 answer
  • (d) Suppose two students are memorizing a list according to the same model dL dt = 0.5(1 − L) where L represents the fraction of
    6·1 answer
  • The rainfall rate in a certain city is 20 inches per year over an infiltration area that covers 33000 acres. Twenty percent of t
    6·1 answer
  • Which of these are factors of 121?
    13·2 answers
  • You must yield the right-of-way to all of the following EXCEPT:
    8·1 answer
  • You are a planning aide on a team and are given the assignment of researching the historical significance and original blueprint
    5·1 answer
  • Technician A says power steering pumps can be engine driven. Technician B says power steering
    9·1 answer
  • Help please!!!!!
    12·1 answer
  • Match the measuring instrument with its description.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!