Question: In this assignment you will write a C filter program that formats a jumbled stream of input numbers into nicely organized columns. To determine the


In this assignment you will write a C filter program that formats a jumbled stream of input numbers into nicely organized columns. To determine the parameters for the output formatting your program will make use of command-line arguments, environment variables, and a configuration file. To test your program you will need to use the Windows command-line. First, get your filter to print all of the input numbers in a single column with their decimal points lined up (and all 13 digits of precision). . Second, create three columns of output (with the decimal points lined up). Be sure to take into consideration that the last row need not have three columns. Third, have a command line argument determine the number of columns. Fourth, have the environment variable determine the number of columns. Fifth, let a command line argument or an environment variable determine the precision of the output numbers. Last, check for the configuration file (before checking for the environment variables and the command-line arguments) and, if it exits, have its values override the default values. In this assignment you will write a C filter program that formats a jumbled stream of input numbers into nicely organized columns. To determine the parameters for the output formatting your program will make use of command-line arguments, environment variables, and a configuration file. To test your program you will need to use the Windows command-line. First, get your filter to print all of the input numbers in a single column with their decimal points lined up (and all 13 digits of precision). . Second, create three columns of output (with the decimal points lined up). Be sure to take into consideration that the last row need not have three columns. Third, have a command line argument determine the number of columns. Fourth, have the environment variable determine the number of columns. Fifth, let a command line argument or an environment variable determine the precision of the output numbers. Last, check for the configuration file (before checking for the environment variables and the command-line arguments) and, if it exits, have its values override the default values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
