Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Data Structures Project Application using Different Data Structures and Techniques First Semester 2022/2023 Problem Statement Suppose that a text file has records about Jordanian

1 Data Structures Project Application using Different Data Structures and Techniques First Semester 2022/2023 Problem Statement Suppose that a text file has records about Jordanian citizens, who applied an application to Orange Telecommunication Company to get a Fiber subscription. Each record in the text file contains the following fields, separated by space: First name sure name Id number tel. number city date of birth served flag = false for all customers. This file is given to you to tokenize each record of the file and using these tokens you must construct an object for each citizen (customer class), then store these objects in a list (main list that consist of all objects). The company asked you to scan the list above and separate the citizens in different lists according to the city where they are live (list for citizens lived in Amman, another for Zarqa city and so on...) Note: before you scan the list of all citizens, you must sort the objects stored in the list according to the city of customers. To do that, you need to add a sorting operation to the list interface and to the implementation class. 2 Now the company wants to start execution of the applications in a specific order, such that each customer will be enqueued in a queue according to his city (you have number of queues equal to the number of cities) The customers will be enqueued in their city queues according to their date of birth, where the customer with lowest Date of Birth will be served first, but customers with year of birth date greater than or equal to 2005 will not be served now and their objects will be stacked in a stack. For each customer served (dequeued from queue), his information in the main list and the city lists must be updated by changing the served flag into True showing that he got Fiber subscription The stacked customers from all cites will be stored in one list for unserved customers Suppose the cost of providing Fiber to each customer = 70 JD At the end, your program prints the total money the company earned from customers and the information about all customers that already got the Fiber subscription (use recursion technique), in addition to number of customers not yet got the subscription. Note: you have flexibility to customize the interface and implementation code of used data structures (add new operations) 3 Format of project submission (word document) - with java

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_2

Step: 3

blur-text-image_3

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

a sin(2x) x Let f(x)=2x+1 In(be)

Answered: 1 week ago

Question

4. Choose appropriate and powerful language

Answered: 1 week ago

Question

2. Choose an appropriate organizational pattern for your speech

Answered: 1 week ago