DA06A - a06result.txt (2) Write your name, seat number,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ENGINEERING H192 DAILY ASSIGNMENT A06 File I/O Write a complete C/C++ program to: (1) Write your name, seat number, assignment number, date, instructor’s initials, and section to the screen. (2) Open an existing data file, a06.dat, (3) Read each line (4) Write each line on the screen. (5) Determine the average of each column of data and write the result to the screen Begin by copying a06.dat from the common area, ~EngH192/Students /, to your directory. You may want to use: cp ~EngH192/Students/a06.dat a06.dat When your program is working correctly, modify it so that the program will also: (1) Create and open an output file named
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a06result.txt (2) Write your name, seat number, assignment number, date, instructor’s initials, and section to the output file. (3) Write each line from the input file to the output file, as well as to the screen. (4) Write the average of each column of data to the output file. Verify by inspection that the output file contents matches the input file contents. Print a copy of your source code file, a06.cpp, and a copy of your a06result.txt file and submit them with this sheet. Name__________________________Instr._________Room_______Seat______Hour______ WI 08...
View Full Document

This note was uploaded on 08/05/2011 for the course H 192 taught by Professor Glimcher during the Winter '08 term at Ohio State.

Ask a homework question - tutors are online