Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming using Java Exercise 2 TeleDir.txt file contains information about CSE faculty and staff Title Firstname Lastname Email Extension Location Write a java program to

Programming using Java

Exercise 2

TeleDir.txt file contains information about CSE faculty and staff

Title Firstname Lastname Email Extension Location

Write a java program to perform the following tasks

To list info all the faculty (title Dr.) and first name starts with R

To list all persons (faculty or staff) whose first name contains substring ra

To read a persons (faculty or staff) first name from the user and print his/her extension

To read a persons (faculty or staff) first name from the user and print his/her email

Sample input/Output:

List of persons that are doctors and first name start with R

Dr. Raafat Aburukba raburukba@aub.edu 2956 EB1-202

Dr. Rana Ahmad rahmed@aub.edu 2947 EB1-249

List of persons whose first name contains substring "ra"

Dr. Abdulrahman Al-Ali aali@aub.edu 2939 EB1-254

Dr. Gerassimos Barlas gbarlas@aub.edu 2558 EB2-210

Dr. Imran Zualkernan izualkernan@aub.edu 2953 EB1-260

Ms. Praveena Kolli pkolli@aub.edu 2352 EB2-126

Read first name and print his/her extension

Enter name:wissam

2966

Read first name and print his/her email

Enter name:praveena

pkolli@aub.edu

The given file (TeleDir.txt )

Dr. Fadi Aloul faloul@aub.edu 2784 EB1-255 Dr. Abdulrahman Al-Ali aali@aub.edu 2939 EB1-254 Dr. Assim Sagahyroon asagahyroon@aub.edu 2952 EB1-252 Dr. Gerassimos Barlas gbarlas@aub.edu 2558 EB2-210 Dr. Ghassan Qadah gqadah@aub.edu 2913 EB1-251 Dr. Imran Zualkernan izualkernan@aub.edu 2953 EB1-260 Dr. Khaled El Fakih kelfakih@aub.edu 2492 EB1-201 Dr. Michel Pasquier mpasquier@aub.edu 2883 EB2-213 Dr. Raafat Aburukba raburukba@aub.edu 2956 EB1-202 Dr. Rana Ahmad rahmed@aub.edu 2947 EB1-249 Dr. Salam Dhou sdhou@aub.edu 2943 M-329 Dr. Taha Landolsi tlandolsi@aub.edu 2473 EB1-258 Dr. Tamer Shanableh tshanableh@aub.edu 2506 EB2-206 Dr. Tarik Ozkul tozkul@aub.edu 2455 EB2-212 Mr. Ahmad Al Nabulsi aalnabulsi@aub.edu 2620 EB1-006 Mr. Hammam Orabi horabi@aub.edu 2975 EB2-003 Mr. Sameer Alawnah salawnah@aub.edu 4940 EB2-101 Mr. Suresh Raddar sradder@aub.edu 2924 EB2-126A Mr. Wissam Khreibe waboukhreibe@aub.edu 2966 EB2-118 Ms. Praveena Kolli pkolli@aub.edu 2352 EB2-126 Ms. Diane Gregorio dgregorio@aub.edu 2969 EB1-256 

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions