Ethan H.

asked • 04/09/21

Inputing file question

use the file "File_Lab1.txt" as input to your program.

Write a program to print out the line number, the number of values in each line and total value of each line of the file.

please include the file header in your program.

 

input file Example:

10 20 30

20

20 5076

 

output example:

Line 1 has 3 values and total is 60

Line 2 has 1 values and total is 20

Line 3 has 2 values and the total is 5096


1 Expert Answer

By:

Patrick B. answered • 04/10/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.