|
fscanf |
| Modify the previous scanf project with the following, additional specifications. The customer's orders will be read as integers from a file named fscanf_input.txt. You can assume that this text file is in the same folder as the exe file. The data in that file will consist of separate integers on separate lines. Use the following data as input for fscanf_input.txt when you run the program for a runtime grade: The output must be written to another file namedf fscanf_output.txt. No output should be displayed on the monitor. The output should be in the format where the total price is rounded to the nearest penny. This program must compile and execute as a C program rathr than a C++ program. Specifically, the file extension of the source file must be .c instead of .cpp and it cannot make use of iostream, cin, cout, <<, >>, endl or any other non-C keywords or syntax. Preconditions:
You must hand in the following on separate pages stapled in this specified order:
|