بتاريخ: 13 أبريل 201510 سنة comment_261681 السلام عليكم لو سمحتوا ممكن حد يساعدني فحل هذا البرنامج بلغة الجافا Write a program to compute and print a distribution of input grades by using an array of counters .The input is a sequence of grades ,terminated by a negative number ,which raises a Constraints _Error exception the grades are natural type (non-negative integers).There are 10 categories of grades (0-9,10 -19,….,90 -100). The grades themselves are used to compute indexes into an array of counters , one for each grade category. Invalid input grades are detected by trapping indexing errors in the counter array .A grade of 100 is special in the computation of the grade distribution because the categories all have 10 possible grade values ,except the highest ,which has 11(90,91,…..,100). (The fact that there are more possible A grade than Bs or Cs is conclusive evidence of the generosity of teachers ). The grade of 100 are also handled in the same exception handler that is used for invalid input data. شاكرين لكم حسن تعاونكم تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.