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]
3 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]3 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
Much of the workd went to bed hungry
Marysya12 [62]
The workers went to bed hungry probably because they are hard workers and so didn’t want to eat because they didn’t want to take break┌(; ̄◇ ̄)┘
7 0
2 years ago
⦁ An ideal Otto cycle has a compression ratio of 8. At the beginning of the compression process, air is at 95 kPa and 27°C, and
Anon25 [30]

Answer:

<u><em>note:</em></u>

<u><em>solution is attached in word form due to error in mathematical equation. furthermore i also attach Screenshot of solution in word due to different version of MS Office please find the attachment</em></u>

Download docx
8 0
3 years ago
The ________ is the part of the drill press that holds and rotates the cutting tool.
lana66690 [7]

Answer:

Spindle

Explanation:

Please mark me brainliest

8 0
3 years ago
Read 2 more answers
What components are included in a basic engine block?
atroni [7]
Houses the CYLINDERS, Water Jacket & Crankcase
8 0
2 years ago
A sample of municipal sewage is diluted to 1% by volume prior to running a BOD5 analysis. After 5 days the oxygen consumption is
liberstina [14]

Answer:

BOD5 = 200 mg/L

Explanation:

given data

diluted = 1% = 0.01

time = 5 day

oxygen consumption = 2.00 mg · L−1

solution

we get here BOD5  that is BOD after 5 day

and here total volume is 100% = 1

so dilution factor is \frac{100}{1}    =  100

so BOD5 is

BOD5 = oxygen consumption × dilution factor

BOD5 = 2 × 100

BOD5 = 200 mg/L

4 0
3 years ago
Other questions:
  • Millions of years ago, the Sierra Nevada region began to be uplifted along a crack in Earth's crust. The region on the other sid
    14·1 answer
  • When a person has the ability to move a vehicle, they have ____________________.
    15·1 answer
  • Compared to 15 mph on a dry road, about how much longer will it take for
    12·2 answers
  • 1. What are the usual symptoms of brake issues?​
    15·1 answer
  • List five things the welding symbol will tell the welder about the weld that is to be made.​
    13·1 answer
  • Cual es la definición de la distribución de las instalaciones?
    13·2 answers
  • How do you explain the application of regulations in locations containing baths, showers and electric floor heating, including t
    10·1 answer
  • Bob would like to run his house off the grid, therefore he needs to find out how many solar panels and batteries he needs to buy
    12·1 answer
  • 9. Imagine that you're performing measurements on a circuit with a multimeter. You measure a total circuit
    14·2 answers
  • He is going ___ in the hot air ballon​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!