موقع طلبة جامعة البحرين

يمكنك تصفح الموقع كزائر ولكن ندعوك لتسجيل عضوية خاصة بك لتحصل على كافة الصلاحيات مثل تنزيل ملفات المكتبة وقراءة تعليقات هيئة التدريس وغيرها. يمكنك الحصول على عضوية مجانية بالضغط على زر تسجيل. إذا قمت بالتسجيل مسبقا فيمكنك الضغط على زر دخول.

تسجيل دخول
  • قسم المكتبة الجامعية مغلق مؤقتا بعد الاستهداف التي تعرضت له بعض خدمات أمازون في البحرين، جاري استرجاع الملفات ونقلها إلى سيرفرات جديدة وسيتم بعدها اعادة افتتاح المكتبة

ساعدوني ضروري

تاريخ التسجيل
5 نوفمبر 2008
المشاركات
10
المجموعة
أنثى
الكلية
كلية تقنية المعلومات
سلااام ياجماعة شخباركم؟ هذا السؤال مال ++c اني حاولت احلة بس جم شي اتطورت فية مثل max اذا تقدرون تحلونة ومشكورين :rolleyes2: ايي وبعد عندي سؤال يمكن غبي :bleh:بس مااعرف متى نكتب في بداية البرنامج <string>#include
السؤال هو :
write aprogram that reads student names(string) and markes(int( from a file "infile.txt" and store the names in a array of string named Names and the marks in an array of integers named markes .the maximum number of elements that stored in both arrayes is 100.the program should find and print the following:
the highest mark
the name of the student with highest mark
the average mark
all student with markes grater than the average mark

the program run should be :
infile.txt
fatema 95
mohd 86
amal 74
sami 65

output
the student fatema recieved the maximum mark 95
the average mark is : 80
the following student received scores above the average :
fatema 95
mohd 86

مشكوررررررين
 
عودة
أعلى أسفل