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,
1 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!