Now that our programs are starting to get more complex (and the first longer assignment is coming up), it’s time to think more carefully about how to organize your mind and your program to accomplish more complicated tasks.
Quick review: On your hard drive you have a file named "my_grades.txt", in which you store all of your course grades (as floats) for the purpose of calculating your GPA. You have already declared a variable ifile via
As in the previous question, you have a file named "my_grades.txt" on your hard drive, in which you store all of your course grades (as floats) for the purpose of calculating your GPA. You have already declared a variable myfile of type FILE * and a variable num of type float via
You wish to add the new grade (stored in num) to the end of the file. Please select the appropriate commands from the list below and put them into the correct order: