Question: CSC 250 Assignment #1 Due: Wednesday 1/29 7:00pm Submit: defined next week Overall expectations explained in class. Ask questions in class, not after. Here are

CSC 250 Assignment #1

Due: Wednesday 1/29 7:00pm

Submit: defined next week

Overall expectations explained in class. Ask questions in class, not after. Here are the essentials

File name provided on command line

Read input file

- less than 10000 lines; each line less than 1000 chars

- each line is just the text, anything we want

- do not store all the lines; that will be major deduction

Output file name will be inputFile.out

Where inputFile was the name of the input file

Print to file:

LineNo: (Len) First 20 chars of text

Print to screen:

How many lines

Longest line: in case of tie, first one

Line Number, starting from 1

Length

Full text

Additional rules & considerations:

- do not access outside of array indexes

- do not print \0 or characters after it

- do create good code without too much duct-tape

- do not attempt to pass file pointer to functions

in c programming language please.

like

Line no 1:

line no 2:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!