الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

[مخالف - طلب حل : ]ارجوا المساعده

مغلق
بدأه محمدمعيض في 21 نوفمبر 2008 · 3 رد · 951 مشاهدة · في C++.Net
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

ارجو المساعده في برمجة هذين السؤالين

The file, scores.txt, contains an unknown number of data records for students in a certain section. Each data record consists of two values, ID# and scores of a student. Write a program that reads the data from this file and assigns a letter grade to each student based on the following grading policy. Your result should be stored in a file, grades.txt, which should have three columns, ID#, Score and Letter Grade. Display score with two digits after decimal point.

Score Grade

score>= 90 A

80<= score <90 B

65<=score<80 C

50<=score<65 D

score<50 F

السؤال الثاني

Using the same, scores.txt of task 2, Write a program that first scan through the file to compute the average score of the students, then scan through the file the second time to distribute the students into two files, good.txt containing those students whose score is greater or equal to the average, and poor.txt, containing those students who scored less than the average.

Hint: call rewind (fileAddress) function before you start scanning the second time from scores.txt file.

#2

بلغة سي

#3

محمد حياك الله.

يجب ان يكون السؤال بالعربي + يجب ان يكون هناك محاولة جادة للحل.

tvquran_6.gif

#4

الأخ الكريم/الأخت الكريمة

السلام عليكم ورحمة الله وبركاته.

مرحباً بكم في منتدى الفريق العربي للبرمجة

تأسف إدارة المنتدى لغلق الموضوع وذلك لمخالفته قوانين المشاركات، فقرة طلب حل الواجبات والتمارين وأعمال السنة.

قواعد طرح المشاركات

/index.php?showtopic=29343

شاكرين لكم حُسن تعاونكم

tvquran_6.gif

هذا الموضوع مغلق.

مواضيع مشابهة