
09-10-2007, 12:44 PM
|
 |
عضو نشيط
|
|
تاريخ التسجيل: Jan 2006
مكان الإقامة: عمــــــــ الحبيبةــــــــــان
الجنس :
المشاركات: 140
الدولة :
|
|
مساعدة (c++)
السلام عليكم ورحمة الله وبركاته
أنا الحين ماخذه مادة
" how to program ++C" وعندي مسألة وأريد حلها فأريد مساعدة منكم ضروري
وهذا هو السؤال Write the grades program using the following specifications:-
Write the grades program, which is concerned with determining the end of year rating for each student, given the exam marks that each student achieves. Each student has eight exam marks in the range 0 to 100. A mark >= 40 is considered a pass. To pass the year of study a student must have at least six individual pass marks and in addition the overall total must be >= 320 and the average must also be a passing mark of at least 40%. If a student does not meet these criteria, the student is given a FAIL rating. If a student does pass the year, the student is given a rating dependent on the overall total as following:
Total >= 560 EXCELLENT
Total >= 480 VERY GOOD
Total >= 400 GOOD
Total >= 320 SATISFACTORY
Total < 320 FAIL
Your output should have proper titles for the marks, number of passes, total, and rating, as shown below:
Example 1: input/output
Enter eight exam marks separated by a space
= = = = = = = = = = = = = = = = = = = = = =
81 82 83 84 85 86 87 88
Results of the student
= = = = = = = = = = = =
Exam Marks: 81, 82, 83, 84, 85, 86, 87, 88
Number of Passes = 8
Total Mark = 676
Rating = EXCELLENT
Example 2 input/output
Enter eight exam marks separated by a space
= = = = = = = = = = = = = = = = = = = = = = =
21 22 23 24 25 26 27 28
Results of the student
= = = = = = = = = = = =
Exam Marks: 21, 22, 23, 24, 25, 26, 27, 28
Number of Passes = 0
Total Mark = 196
Rating = FAIL
__________________
عمان عمان عمان عمان عمان عمان
عمان عمان عمان عمان عمان عمان
عمان عمان عمان عمان عمان عمان
عمان عمان عمان عمان عمان عمان
عمان عمان عمان عمان عمان عمان
عمان عمان عمان عمان عمان عمان
|