Question: Write a program that prompts the user for a source file, a character to be deleted, a second character to be replaced by, a third

 Write a program that prompts the user for a source file,

Write a program that prompts the user for a source file, a character to be deleted, a second character to be replaced by, a third character to be replaced to, and a fourth character which will be replacing the character at every 5th position (5,10,15,20... until the end of file) in the file. For example, if the user enters old.dat % & * Then, all copies of % must be removed from the file old.dat, and all instances of & must be replaced by * in the revised file old.dat, and then every 5th position in the revised old.dat will be aNote that the last action will be to replace the character at every 5th position with a+ after the other actions are done. Please check to see if there are any instances of%-if none, nothing to delete. Please check if there are any instances of &-if none, nothing to replace. Note, you do not create a new file, ever. The change must be in the old file Hint: You may use the command fseek eto You will not be given points for documenting your code, but points will be docked if you do not, with a maximum penalty of -20 points. Again, you must document what each function does and what the different parameters are for, and critical sections of the code, including how you convert decimal to binary for both decimal integers and floating point numbers You may develop your program in Visual Studio or any other IDE of your choice but you must use standard

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!