Your course instructor tircd to sort the students in the class in regular alphabetical order, since...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
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... View the full answer
Posted Date:
Students also viewed these computer engineering questions
-
Write a code that includes CSS and html to create a web page, provided that the page has two interfaces.
-
9. Suppose we are solving for Arb with A E Rmxn being rank deficient (minimum norm solution) (a) For b(A) why wouldn't the solution (ATA)-Ab work? (b) Suppose beR(A). Show that the error vector is...
-
For blood circulation in a specific human body artery, the following data is given, Average inner diameter of the artery = 6.8 mm Average pressure gradient per meter of length = 75 pa 1- Find the...
-
Data on the length, in seconds, of a sample of 50 songs by The Beatles are presented in the accompanying data table. Complete parts (a) through (d) below. Click the icon to view the table of song...
-
In the Balance Sheet columns of the end-of-period spreadsheet (work sheet) for Lancaster Consulting Co. for the current year, the Debit column total is $375,000 and the Credit column total is...
-
EZ-Windows, Inc., manufactures replacement windows for the home remodeling business. In January, the company produced 15,000 windows and ended the month with 9000 windows in inventory. EZ-Windows...
-
The dimensions of the rectangular loop of wire in Figure P29.35 are \(\ell=400 \mathrm{~mm}\) and \(w=120 \mathrm{~mm}\). The mass of the loop is \(10 \mathrm{~g}\), its resistance is \(5.0...
-
Cook, CPA, has been engaged to audit the financial statements of General Department Stores, Inc., a continuing audit entity, which is a chain of medium- sized retail stores. Generals fiscal year will...
-
We have defined a PyTorch network class DAN for you. You need to implement the forward pass for your deep averaging network. To start, first implement average that averages the words in a review and...
-
Carrie DLake, Reed A. Green, and Doug A. Divot share a passion for golf and decide to go into the golf club manufacturing business together. On January 2, 2020, DLake, Green, and Divot form the...
-
Please read both articles below. The first article provides guidance to taxpayers who were borrowers under the Paycheck Protection Program (PPP) loans offered by the CARES Act. Review the contents of...
-
What do you mean by renewable and nonrenewable sources of energy?
-
Write a short note on Separating calorimeter with its limitations.
-
Write a short note on solar energy?
-
Discuss the merits and demerits of renewable and non-renewable sources of energy with suitable examples.
-
State the function of following: (i) Fusible plug (ii) Safety valve (iii) Economizer
-
1. A laser produces light with a wavelength of 627 nm in vacuum. It takes 2.30 ns for the light to pass through 43 cm of an unknown transparent material. A. What is the frequency of the light in a...
-
You work as an operations consultant for a textile company. Your client has a well-established distribution system in the US market. The company has hundreds of stores and four distribution centers....
-
An object traveling at a constant velocity vo experiences a constant acceleration in the same direction for a period of time t. Then an acceleration of equal magnitude is experienced in the opposite...
-
You are told that a person has walked 750 m. What can you safely say about the persons final position relative to the starting point?
-
If the displacement of an object is 300 m north, what can you say about the distance traveled by the object?
Study smarter with the SolutionInn App