Question: using visual labs Programs called data filters are often used to read the information in a data file and then analyze the contents. In many
Programs called data filters are often used to read the information in a data file and then analyze the contents. In many cases, this data filter program is designed to remove any data errors that would cause problems with pother programs that read information from the data file. The next set of programs is designed to perform error checking and data analysis on information in a data file 1. Write a program that reads a data file that should contain only integer values and thus should contain only digits, plus or minus sign and whitespaces. The program should print any invalid characters located in the file and at the end it should print a count of invalid characters located. 2. Write a program that analyzes a data file that has been determined to contain only integer values and whitespaces. The program should print the number of lines in the file and the number of integer values (not the integer digit) 3. Write a program that reads a file that contains only integers but some of the integers have embedded commas as in 145,020 . The program should copy the information to a new file, removing any commas from the information. Do not change the number of values per line in the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
