There are 2 students who are studying at level 3 starting from
Level 1 each level have 4
courses and currently all the students who are at level 3 have
result of all the previous
courses . Write a main class with a constructor which set the
default values for each student
against each module from Level 1 to 3, an inputData() method which
will input results of
each student for each level modules, and a method compurAverage()
to compute level wise
average score of each level.
Sample output will be as following:
---------- Level #1 ----------
Enter score of Student #1
Module #1: 80
Module #2: 40
Module #3: 70
Module #4: 60
Enter score of Student #2
Module #1: 50
Module #2: 90
Module #3: 30
Module #4: 60
---------- Year #2 ----------
Enter score of Student #1
Module #1: 80
Module #2: 90
UFCFC3-30-1 Introduction to OO Systems Development
Module #3: 70
Module #4: 60
Enter score of Student #2
Module #1: 40
Module #2: 60
Module #3: 70
Module #4: 60
---------- OUTPUT ----------
---------- Average Score of Year #1 ----------
----- Student #1 -----
Average score of Student #1 is 62.5
----- Student #2 -----
Average score of Student #2 is 60.0
---------- Average Score of Year #2 ----------
----- Student #1 -----
متوسط درجات الطالب # 1 هو 75.0
----- الطالب # 2 -----
متوسط درجة الطالب # 1 هو 57.5
يجب عليك أولاً استخدام استراتيجية التصميم من أعلى إلى أسفل لإنتاج
تصميم في رمز زائف
قبل البدء في الكتابة ، تشغيل واختبار البرنامج الخاص بك.
يرجى إضافة الكود الزائف الخاص بك كتعليقات إلى بداية ملف كود المصدر
الخاص بك.
على سبيل المثال
/ * الكود الزائف الخاص بك
There are 2 students who are studying at level 3 starting from Level 1 each level have 4 courses and currently all the s
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am