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

1 次查看(过去 30 天)
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,

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 String Parsing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by