Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

On java The UAE University would like to organize an event. The college of IT would like to select some students to represents the college

On java image text in transcribed
The UAE University would like to organize an event. The college of IT would like to select some students to represents the college during the event. So they would like to prepare a list for these students, and the list has to have: Valid Student Name: no special characters or numbers. .Valid ID: length is 8, no special characters or letters. Valid Email: has 'G' character followed by ., character. Valid Phone: length is 10, no special characters or letters, starts with 050, 055, 056 or 052. GPA above 3.0 Credit hours finished more than 60 hours. Write a program that have the following classes. Each a string method that return a string indicating the type of exception 1. Class InvalidNameException that extends class Exception 2. Class InvalidDException that extends class Exception 3. Class InvalidEmail Exception that extends class Exception 4. Class InvalidPhone Exception that extends class Exception 5. Class GPABelow3Exception that extends class Exception 6. Class CrHrsBelow60Exception that extends class Exception Your program must have a class EventStudent. The class has the following attributes: name, id email, phone, gpa, and crHrs. Also the class has the following methods: 1. Default constructor 2. Getter methods for all attributes. 3. Setter methods for all attributes: attributes set the value passed only if it meets the criteria specified above. Otherwise, the attribute will have the default value and the c thrown. g exception will be Your main class must have 1. GenerateStudents Report method a. Pass array or array list of EventStudent as a parameter b. Reads the students' details from file. Use the Setter Methods. c. Writes the students' details to file. Use the getter Methods and Exception Handling. d. Save the details to the Event Student array or array list 2. Main method: a. b. Has Array or array list of EventStudent objects. Call GenerateStudentsReport method

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

What is main driver for service customization.

Answered: 1 week ago

Question

1.who the father of Ayurveda? 2. Who the father of taxonomy?

Answered: 1 week ago

Question

Commen Name with scientific name Tiger - Wolf- Lion- Cat- Dog-

Answered: 1 week ago