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
nalin [4]
4 years ago
13

(This assignment could be done as a modification of the program in Programming Challenge 2.) Write a program char asks rhe user

for rhe name of a file. The program should display the contents of the file on the screen. Each line of screen output should be preceded with a line number, followed by a colon. The line numbering should start at "I
Engineering
1 answer:
JulijaS [17]4 years ago
4 0

Answer:

Python

file=open("file_name",r) #Opening the file we are using

f1=file.readlines() #Read each line of the file and save it into f1 vector

for x in range(len(f1)): #walk through every line in vector f1 and print it  

print(x+1, ".",f1[x]) """x+1 because the index begin in 0 so we add 1, ":" colon, f1[x] to take the x line"""

You might be interested in
In a tensile test on a steel specimen, true strain = 0.12 at a stress of 250 MPa. When true stress = 350 MPa, true strain = 0.26
scZoUnD [109]

Answer:

The strength coefficient is 625 and the strain-hardening exponent is 0.435

Explanation:

Given the true strain is 0.12 at 250 MPa stress.

Also, at 350 MPa the strain is 0.26.

We need to find  (K) and the (n).

\sigma =K\epsilon^n

We will plug the values in the formula.

250=K\times (0.12)^n\\350=K\times (0.26)^n

We will solve these equation.

K=\frac{250}{(0.12)^n} plug this value in 350=K\times (0.26)^n

350=\frac{250}{(0.12)^n}\times (0.26)^n\\ \\\frac{350}{250}=\frac{(0.26)^n}{(0.12)^n}\\  \\1.4=(2.17)^n

Taking a natural log both sides we get.

ln(1.4)=ln(2.17)^n\\ln(1.4)=n\times ln(2.17)\\n=\frac{ln(1.4)}{ln(2.17)}\\ n=0.435

Now, we will find value of K

K=\frac{250}{(0.12)^n}

K=\frac{250}{(0.12)^{0.435}}\\ \\K=\frac{250}{0.40}\\\\K=625

So, the strength coefficient is 625 and the strain-hardening exponent is 0.435.

5 0
3 years ago
Transmission cleaners are used: A) Only in conjunction with fuel system cleanersB) Only in the colder monthsC) By themselvesD) I
valentina_108 [34]

Answer: D

Explanation: When you change your transmission fluid you change your filter. When you do that you clean where the filter was. Then you can put the new filter on and the new fluid.

5 0
3 years ago
Read 2 more answers
g Two Standard 1/2" B18.8.2 dowel pins are to be installed in part B with an LN1 fit. The thickness of plate A is .750 +/- .005"
allochka39001 [22]

Answer:

nmuda mudaf A certain vehicle loses 3.5% of its value each year. If the vehicle has an initial value of $11,168, construct a model that represents the value of the vehicle after a certain number of years. Use your model to compute the value of the vehicle at the end of 6 years.

Explanation:

5 0
3 years ago
An office building is served by an air-cooled chiller currently operating at 115 tons (404.5 kW). The measured chilled water sup
Andrei [34K]

Answer:

B.197 gpm and 12.4 L/s

Explanation:

Given that

Load Q = 404.5 KW

Water inlet temperature= 6.1 °C

Water outlet temperature= 13.9°C

We know that specific heat for water

C_p=4.187\ \frac{KJ}{kg.K}

Now from energy balance

Q=\dot{m}C_p\Delta T

by putting the values

Q=\dot{m}C_p\Delta T

404.5=\dot{m}\times 4.187(13.9-6.1)

\dot{m}=12.38\ \frac{kg}{s}     (1 Kg/s = 15.85 gal/min)

We can say that

\dot{m}=196.31\ \frac{gal}{min}

We know that

\dot{m}=\rho\times volume\ flow\ rate

12.38=1000 x volume flow rate

volume\ flow\ rate\ = 12.38\times 10^{-3}\ \frac{m^3}{s}

So

volume flow rate = 12.38 L/s

So the option B is correct.

8 0
3 years ago
What invention would you argue most impacted mechanical engineering
Law Incorporation [45]

Answer:

The wheel

Explanation:

3 0
3 years ago
Other questions:
  • A shaft is made of an aluminum alloy having an allowable shear stress of τallow = 100 MPa. If the diameter of the shaft is 100 m
    13·2 answers
  • How high a building could fire hoses effectively spray from the ground? Fire hose pressures are around 1 MPa. (It is also said t
    14·1 answer
  • Air expands through an ideal turbine from 1 MPa, 900 K to 0.1 MPa, 500K. The inlet velocity is small compared to the exit veloci
    10·1 answer
  • Discuss the differences between conduction and convective heat transfer.
    12·1 answer
  • A cantilever beam of length L = 70 in is made from two side-by-side structural-steel channels of size 3 in weighing 5.0 lbf/ft.
    9·1 answer
  • Which statement describes the relay between minerals and rocks ?
    15·1 answer
  • The efficiency of a steam power plant can beincreased by bleeding off some of the steam thatwould normally enter the turbine and
    15·1 answer
  • What is the IMA of this pulley belt system if the diameter of the input
    14·1 answer
  • Key term of Bimetal strip
    12·1 answer
  • Technician A ay that acid rain doe the mot harm when it firt fall on a finih. Technician B ay that hard water potting i uually j
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!