File I/O

Assume a person's information is stored in a datafile, write a program that will read this information and print a formatted copy to the screen and to a file. You should prompt for the input and output file names.

The file format is :

name name birth day occupation height weight

Example Input:

Smith John 10/10/80 Student 5'10 180

Sample Output:

John Smith,
     Born: 10/10/80
     Occupation: Student
     Height:   5'10, Weight 180

Program Design

Two more programming problems for the day: Both are from Essential C++ for Engineers and Scientists from Jeri R Hanly.