This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Always close a file when you’re done: fclose(infile); fclose(outfile); 3 C ptS 121 L3-2 – 9/14/09 Pro f. C hris Hundha us e n Let’s 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
- Spring '09
- Orders of magnitude, Input/output, Kilometre, ris Hund