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

1 回表示 (過去 30 日間)
ahmet ozdemir
ahmet ozdemir 2016 年 5 月 11 日
コメント済み: Walter Roberson 2016 年 5 月 12 日
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 件のコメント
Walter Roberson
Walter Roberson 2016 年 5 月 12 日
This looks like homework.
We can't do much without the sample files

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by