Problem

Data Filters. Programs called data filters are often used to read the information in a dat...

Data Filters. 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 other programs that read the 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. Generate data files to test all features of the programs.

Write a program that reads a file containing data values computed by an accounting software package. While the file contains only numerical information, the values may contain embedded commas and dollar signs, as in $3,200, and negative values are enclosed in parentheses, as in (200.56). Write a program to generate a new file that contains the values with the commas and dollar signs removed, and with a leading minus sign instead of the parentheses. Do not change the number of values per line in the file.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 5
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT