السلام عليكم ورحمة الله وبركاته
عندي بروجكت لازم اسلمه وما عندي خبره بالجافا ماني عارف اسوي البرنامج بنسخ لكم المطلوب والي يقدر يساعدني يسويه اكون له من الشاكرين.
Create a Student class having the following:
Fields:
sid to represent student id in the following format S0000xxx where xxx will be a unique number. Note, sid must be 8 characters long.
Valid sid's:
S0000001,S0000123 ,S0000999
Invalid sid's:
S00001, S000022, S000012345
gpa to represent the students gpa and valid range is 0.0 – 4.0
Constructors
Student( ) that initializes sid & gpa to default values
Student with 2 parameters for sid & gpa
Student with one parameter for sid
Setters & getters for each field
Create another class called AUK that will create 1000 students, each having a unique sid, and assigns each student a random gpa score between 0.0 – 4.0.
Print out the Deans List in ascending order by gpa having the student’s id and their gpa. Deans List is any student with a gpa of 3.75 or higher.
Note,the gpa must be displayed as x.yy where x is a digit between 0-4 and yy is any 2 digits. This applied to any gpa output to the screen.
Print out the list of students on Probation in ascending order by gpa, those student with a gpa below 2.0. Print their student id and their gpa
Print out the average gpa of students in the Deans List and the average gpa of those students on probation.
Print out the average gpa of students not on the Dean List and not on the Probation list.
For generating random number you will need:
double r= (Math.random() * 4.0);
The above statement will generate a random number between 0.0 and 4.0
