COP 3014 Recitation - Week 11

More File I/O

  1. Copy this and this to your working directory. Name the file "data.txt" and "grades.txt", respectively
  2. Complete this file. It should read a file and show the contents of the file on the screen.
  3. Complete this file. It should calculate average grades and display them
  4. What is wrong with this file
  5. What is wrong with this file
  6. What is wrong with this file
  7. What is wrong with this file
  8. Modify your code that calculated grades to use arrays instead. So instead of calculating and displaying the grades inside of the while loop, store the names and grades in arrays, then print the grades for each student after the while loop, using your arrays


Program examples