Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your course instructor tircd to sort the students in the class in regular alphabetical order, since this mcans that certain students (first name, last

 

Your course instructor tircd to sort the students in the class in regular alphabetical order, since this mcans that certain students (first name, last name, id, date of birth, grade,email) always go first for presentations. He/She has an idea to mix up the order of the students by sorting them in a different manner. In particular, he/she doesn't care about the order of the letters in the last name of a student. Instcad, he/she will put the student who has the highest number of A's in his or her last name first. If there is a tic between two students based on this value, she'll compare the number of B's in their last names. If this is tied also, she will go on to C's, then D's, ctc. The second student will be found using the same method, and so on until all of the students have presented. Your job is to sort a list of student names based on this criterion. It is guaranteed that no class has two students who have names that are anagrams of one another; thus, there will not be any ties between two students (an anagram is a different arrangement of the same exact letters).For example, "abcd" and "dabc" are an anagram of each other. Write a method to generate an email automatically for student by take the first letter for his/her name followed by last name followed by @ special character and then ritaj server name with extension "birzeit.edu", i.e nkhader@ritaj.birzeit.edu The first line of the input consists of a single positive integer, n, representing the number of classes. Each class contains a single positive integer, m (1 < Each of the following m lines will contain (first name, last name id and date of birth). (you have to take care about cases of letters )Then, for ordered list name according to this scheme, instructor can record the grade of presentation for each student. < 100), which represents the number of students in that class. Use proper constructor (s), setter(s) and getter(s) for defined student class. WEite a test driver that contains: 1. a method to calculate the average for each class. 2. a print method to will display the list of student and average at screen, ie ( student name email, grade, and AVG of class) 3. The sort method mentioned above. Be aware of all concepts of object ociented you have been leamed in these chapters.

Step by Step Solution

3.34 Rating (160 Votes )

There are 3 Steps involved in it

Step: 1

Note Creating all classes in package name called ques Create file Studentjava to represent Student entity as follows package ques student class that represent Student entity public class Student priva... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Computer Engineering questions