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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started