This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Always close a file when youre done: fclose(infile); fclose(outfile); 3 C ptS 121 L3-2 9/14/09 Pro f. C hris Hundha us e n Lets Do Programming Project 6 to Practice File Input and Output Four track stars have entered the mile race at the Penn Relays. Write a program that reads in the race time in minutes and seconds for four runners and computes the speed in feet per second and meters per second, and outputs to a file each runners stats (race time, feet per second, and meters per second), one runner per line. Hints: There are 5,280 feet in one mile, and one kilometer equals 3,282 feet...
View Full Document
This note was uploaded on 01/25/2011 for the course CPTS 121 taught by Professor Hundhaus during the Spring '09 term at Washington State University .
- Spring '09