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
Base course aggregate has a target density of 121.8 lb/ft3 in place It will be laid down and compacted in a rectangular street r
irakobra [83]

Answer:

total weight of the aggregate = 3594878.28 lbs

Explanation:

given data

density = 121.8 lb/ft³

area =  1000 ft x 60 ft x 6 in = 1000 ft x 60 ft x 0.5 ft

moisture = 3.5 %

compaction = 95%

solution

we get here first volume of the space that is filled with the aggregate that is

volume = 1000 ft x 60 ft x 0.5 ft  = 30,000 cu ft

now we get fill space with aggregate that compact to 95% of dry density.

so we fill space with aggregate of density that is = 95% of 121.8

= 115.71 lb/ cu ft

so now dry weight of aggregate is

dry weight of aggregate = 30,000  × 115.71 = 3471300 lb

when we assume that moisture percentage is by weight

then weight of the moisture in aggregate will be

weight of the moisture in aggregate = 3.56 % of 3471300 lb  

weight of the moisture in aggregate = 123578.28 lbs

and

we get total weight of the aggregate to fill space that is

total weight of the aggregate = 3471300 lb +123578.28 lb

total weight of the aggregate = 3594878.28 lbs

4 0
3 years ago
Some aircraft component is fabricated from an aluminum alloy that has a plane strain fracture toughness of 35 MPa m . It has bee
GaryK [48]

Answer:  Fracture will not occur since Kc (32.2 MPa√m) ∠ KIc (35  MPa√m).

Explanation:

in this question we are asked to determine if an aircraft will fracture for a given fracture toughness.

let us begin,

from the question we have that;

stress = 325 MPa

fracture toughness (KIc) = 35  MPa√m

the max internal crack length = 1.0 m

using the formula;

Y = KIc/σ√(πα)    ---------------(1)

solving for Y we have;

Y =  35 (MPa√m) / 250 (MPa) √(π × 2×10⁻3/2m)

Y = 2.50

so to calculate the fracture roughness;

Kc = Y × σ√(πα)   = 2.5 × 3.25√(π × 1×10⁻³/2) = 32.2 MPa√m

Kc = 32.2 MPa√m

From our results we can say that fracture will not occur since Kc (32.2 MPa√m) is less than KIc (35  MPa√m) of the material.

cheers i hope this helps!!!!

8 0
3 years ago
Hi all, could you solve this please?<br> What is the value of the resistance R
Kazeer [188]

Answer:

try to 36v power and take 1a and intersect to 3

5 0
3 years ago
In your opinion, what is the most challenging part of the process? If you had the opportunity, would you build your own house? W
Viefleur [7K]

Answer: i would b/c i can build what i want to be in my house and how i want my house to be built

Explanation:

4 0
4 years ago
When current flows through an electrical component due to a potential difference,
ira [324]

Answer:

Ohm, a german physicist, found experimentally that the current in a metal conductor is directly proportional to the potential difference across its ends

Explanation:

8 0
3 years ago
Other questions:
  • A piston moves a 25kg hammerhead vertically down 1m from rest to a
    10·2 answers
  • Write a Python program that does the following. Create a string that is a long series of words separated by spaces. The string i
    14·1 answer
  • A commercial refrigerator with refrigerant-134a as the working fluid is used to keep the refrigerated space at -30C by rejecting
    13·1 answer
  • Communication "works" to the degree that a wide variety of information is completely and thoroughly shared among the parties, an
    13·1 answer
  • 1 gallon of benzene having a density of 0.88 g/mL is spilled in 200 feet by 150 foot lake having an average depth of 6 feet. Wha
    15·1 answer
  • Been struggling with this for last 2 hours. Need help, please.
    12·1 answer
  • High strength steels are being used to reduce weight on cars. Explain why using a high strength steel would allow you to reduce
    6·1 answer
  • two students were talking student a was examining the lettuce leaves in a salad he was eating . he said, did you know im eating
    12·1 answer
  • Ur are mean bryce lolololololololollolollolololol
    12·2 answers
  • What do we need to travel farther distances in space
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!