How can i calculate some numbers and extract output by using 'w', 'r' fopen ?

1 visualizzazione (ultimi 30 giorni)
There are two types of input text files. In the first type of text file there are five columns where first and second columns have the names and surnames, respectively. Third column contains the midterm exam points, fourth column contains the project points and fifth column contains the final exam points. This file is named as ‘points1.txt’. In the second type of text file, some students have two names (see ‘points2.txt’). Therefore, the structure of the file is not regular, i.e some rows have six columns. When the program starts, the user is asked to enter the filename to be read and weights of midterm exam, project and final exam. Then, program reads the input file (‘points1.txt’ or ‘points2.txt’) and calculates the weighted average of each student and corresponding letter grade. Lastly, names, surnames, weighted average and letter grades are written to the ‘grades.txt’ file.
Thank You,

Risposte (0)

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by