Question
Write a C program that: contains three files. Two source files (main.c and myLib.c) and one header file (myLib.h). The main.c source file should be
Write a C program that:
contains three files. Two source files (main.c and myLib.c) and one header file (myLib.h). The main.c source file should be your driver file that calls functions in myLib.c and is responsible for interfacing with the user (program input/output). reads from a text file. The file name should be the first command line argument. o Since we havent covered reading text files yet in C, main.c contains code logic that reads from a text files one character at a time. See Main.c Template Below. keeps track of the 10 most frequently used characters prints the 10 most frequently used characters in order along with their frequency. Your program should also continue to work if there are less than 10 unique characters in the input file. By default, your program should case insensitive and should not count special characters unless specified otherwise based on the command line arguments below. Always ignoring counting spaces Main.c Template: main.c (click here) Example input file: input.txt (click here) Command Line Arguments: Filename: The filename is the first command line argument -caseSensitive o Overrides the default. Frequency should be case sensitive. -special o Overrides the default. Program should count the frequency of special characters such as {.,!,?,,etc). Still ignores counting spaces. For example, for the following input file and command line arguments, your program should output the following:
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