Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C language program that read the file: for example, create a file name data.dat in that file will include a bunch of line

Write a C language program that read the file:

for example, create a file name "data.dat"

in that file will include a bunch of line of data for example:

werkmdfgs;

ijkat12fA&?41a

123!#A?123

Then the program will read that file

What file: word.dat ( user input name of the file)

the program will print this:

Lines: 3 (number of lines in the file)

Longest: line: 2 (print longest line number)

size: 14 (length of the longest line text)

Text: ijkat12fA&?41a ( print what is on the longest line)

A: 4 ( number of lowercase and uppercase ("a" and "A") in the file)

Digits: 10 (how many numeric digits in the file)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago