Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The code should be in java. please provide input for the user. 13:30 docs.google.com Your answer Problem A - [10 Marks] Problem A - [10

image text in transcribedThe code should be in java. please provide input for the user.

13:30 docs.google.com Your answer Problem A - [10 Marks] Problem A - [10 marks] Implement the following classes: Student Main id: int - name: String email: String + Search(students[l: Student, domain: String): String + main args[]: String): void + Student(id:int, name, email: String) + getido: int + getName(): String +getEmail:String + toString(): String Suppose, we have a text file (StudentDB.txt) that contains a list of students who voted for attending online classes. i Now, write a program to read the information of students from the text file and store all the information in a "Student" type object array [5 marks] ii. Ask user to enter domain name, invoke Search method which will return a String containing number of students of that domain who voted, percentage and a list of students as shown below. [5 marks] Demo File: StudentDB.txt StudentDB.txt 2020201223 Amit Chy ac@northsouth.edu 2020201449 Dipto Saha ds@aiub.edu 2020201314 Farhan Hasin fh@iub.edu 2020201995 Shimanto Islam si@northsouth.edu 2020201805 Kazi Fahim kf@northsouth.edu Sample I/O Input Sample Output Sample 3 students voted using this domain. 60.0% of total votes. Enter a university domain to search: @northsouth.edu Search Results: Amit Chy Shimanto Islam Kazi Fahim

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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 Databases questions

Question

Strong analytical, communication, and problem-solving skills

Answered: 1 week ago