car licensing office

car licensing office

*A customer who wants to apply for getting a car license should provide information about the brand of the car.

*Then the customer receives a request ID from the office.

*The customer's request (represented by his/her ID) is sent to the specialized employee.

*Each employee in the oce is specialized in only one brand. Thus, according to the brand of the car, the request is sent to one of the employees.

*After receiving all the requests to be processed, the employee processes them and sorts them according to the request IDs, since the customer with smaller request ID will receive his license earlier than the one with higher request ID.

*When a customer arrives to receive his/her license, s/he is directed to the specialized employee(according to the brand of the car being licensed). S/he is also assigned a turn to receive his/her license according to the assigned request IDs. To simulate the described process, you are required to implement the following: Class LicensingOffice which keeps track of the employees in an array data structure. It is initialized by passing the number of employees working in the office. Provide the class with the following methods:

  • void addEmployee(String brand) that inserts a new employee into the array, after specifying the car brand that he serves as input to the method.

  • int LicenseApplication(String brand) that assigns the customer a request ID and passes his request to the correct employee to be processed (depending on the car brand). The method will return -1 in case that the brand is not served at the office or the employee serving the brand cannot accept more licenses for the day.

  • void processDayRequests()that orders the employees to start processing the requests they have.

  • int[]recieveLicense(String brand,int reqID)that returns an array of two items. The first item is the number of the employee who serves the brand (his index in the array of employees). The second one is the turn of the customer request at the employee. The method returns null if the customer request is not found as a processed request.

 Class Employee with attributes representing the car brand that this employee serves, the requests that s/he has received but has not been processed yet and the processed requests, sorted according to the request ID. Each employee has a maximum number of 50 requests that s/he can process per day. Provide the class with the following methods:

 void newRequest(int requestID) which takes as input the ID of a request and adds this ID to the unprocessed requests of the employee.

void processRequests() which handles all the unprocessed requests, by moving them to the data structure holding the processed requests.

 int getTurn(int requestID) which takes as input the request ID and returns the turn of the customer with this ID, given the fact that those with smaller request IDs are served first

 Class Customer with attributes representing the car brand, request ID, the ID of the employee who will serve him and his turn to be served by this employee. Note that not all the attributes are known by the customer. Some of them will be assigned by the licensing office whenever s/he applies for the license. Provide the class with the following methods:

 void applyForLicense() that simulates the user application for a license. This method should set the value of the attribute representing the request ID.

 void recievalTiming() that simulates the receiving process by setting the values of the attributes representing the ID of the employee who will serve the customer and the customer's turn. Note that all customers will head to the same licensing office.

 A main method to test the class by simulating a minioofice with 3 employees and 7 customers. The three employees serves the brands Mercedes,Opel and Volks Wagen. The seven customers submits their application in the following order Mercedes owner, Volks Wagen owner, Mercedes owner, Opel owner, Volks Wagen owner, Opel owner, Mercedes owner. Your main method should print the attributes of each customer after the receiving his/her license. You are only allowed to use arrays in the class Office.

View Answers









Related Tutorials/Questions & Answers:
car licensing office
car licensing office  *A customer who wants to apply for getting... by the licensing office whenever s/he applies for the license. Provide the class... customers will head to the same licensing office.  A main method to test the class
car licensing office
car licensing office  *A customer who wants to apply for getting... by the licensing office whenever s/he applies for the license. Provide the class... customers will head to the same licensing office.  A main method to test the class
Advertisements
car licensing office
car licensing office  *A customer who wants to apply for getting... by the licensing office whenever s/he applies for the license. Provide the class... customers will head to the same licensing office.  A main method to test the class
ModuleNotFoundError: No module named 'licensing'
ModuleNotFoundError: No module named 'licensing'  Hi, My Python... 'licensing' How to remove the ModuleNotFoundError: No module named 'licensing' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'django-licensing'
ModuleNotFoundError: No module named 'django-licensing'  Hi, My... named 'django-licensing' How to remove the ModuleNotFoundError: No module named 'django-licensing' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'car'
ModuleNotFoundError: No module named 'car'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'car' How to remove the ModuleNotFoundError: No module named 'car' error
ModuleNotFoundError: No module named 'car'
ModuleNotFoundError: No module named 'car'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'car' How to remove the ModuleNotFoundError: No module named 'car' error
Version of com.mtnfog>edd-licensing-java-client dependency
List of Version of com.mtnfog>edd-licensing-java-client dependency
Delhi to Udaipur by car
Delhi to Udaipur by car  Hi, I'll drive my car from Delhi to Udaipur. So, please suggest me the shortest way... thanks
car rent system project
car rent system project  pl, may I get a source code in java with user inter face about car rent system. if it is possible pl help me.   import java.util.*; class Car { private String make; private String model
Rental Car Application
Rental Car Application   Hi every java master i'm new java beginner and i have to try test one Rental car Application but i can't run it in below...*; class Car { private String make; private String model
Rental Car Application
Rental Car Application   Hi every java master i'm new java beginner and i have to try test one Rental car Application but i can't run it in below... import java.util.*; class Car { private String make; private
How to insert a car in the picture, insert a car in the picture, insert a car
How to insert a car in the picture   ... and a car to insert.ADS_TO_REPLACE_1   ADS_TO_REPLACE_2 Paste: Copy the car picture and paste on the road picture as here. Decrease size: Press Ctrl
ModuleNotFoundError: No module named 'my-car'
ModuleNotFoundError: No module named 'my-car'  Hi, My Python...-car' How to remove the ModuleNotFoundError: No module named 'my-car'... to install padas library. You can install my-car python with following command
ModuleNotFoundError: No module named 'car_package'
ModuleNotFoundError: No module named 'car_package'  Hi, My Python... 'car_package' How to remove the ModuleNotFoundError: No module named 'car_package' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'ddc-car'
ModuleNotFoundError: No module named 'ddc-car'  Hi, My Python...-car' How to remove the ModuleNotFoundError: No module named 'ddc-car... to install padas library. You can install ddc-car python with following command
ModuleNotFoundError: No module named 'my-car'
ModuleNotFoundError: No module named 'my-car'  Hi, My Python...-car' How to remove the ModuleNotFoundError: No module named 'my-car'... to install padas library. You can install my-car python with following command
ModuleNotFoundError: No module named 'demo-car'
ModuleNotFoundError: No module named 'demo-car'  Hi, My Python... 'demo-car' How to remove the ModuleNotFoundError: No module named 'demo-car... to install padas library. You can install demo-car python with following
Agra same day car rental
Agra same day car rental  Hi, I want to see the Taj Mahal but just wondering where to book car on rental for the same day trip to Taj Mahal? Thanks
Office
Maven Dependency edd-licensing-java-client >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.mtnfog >> edd-licensing-java-client version1.0.0 in your project
Photoshop Tutorial : Cartoon Car
How to design a cartoon car.       The designing of a cartoon car is not difficult at all. This article will teach you to design a cartoon car. I have tried to make this a simple
Car Rentals in Delhi
Car/ Coach Rentals in Delhi Want to visit the city of Delhi in a private car so that you can stop and go at your will? You must be looking for a car rental in Delhi. There are a host of car rentals in Delhi that can offer you best
GPS Car
GPS Car       GPS Car Navigation System Have you ever settled behind the wheel of your car... (Global Positioning System) car navigation systems can show and even tell you
Maven Repository/Dependency: com.mtnfog | edd-licensing-java-client
Maven Repository/Dependency of Group ID com.mtnfog and Artifact ID edd-licensing-java-client. Latest version of com.mtnfog:edd-licensing-java-client dependencies. # Version Release Date
ModuleNotFoundError: No module named 'office'
ModuleNotFoundError: No module named 'office'  Hi, My Python... 'office' How to remove the ModuleNotFoundError: No module named 'office'... to install padas library. You can install office python with following command
implement microsoft office
implement microsoft office   how implement microsoft office in my java swing project ,or when microsoft office is not install then file open in defualt text editar.please send me source code
How to Create Car Rental Application in Java ?
How to Create Car Rental Application in Java ?  Hi, How to Create a Car Renal Application using Java to Check the Car renting, booking... the car rental apps in Java
ModuleNotFoundError: No module named 'dk-car-scraper'
ModuleNotFoundError: No module named 'dk-car-scraper'  Hi, My... named 'dk-car-scraper' How to remove the ModuleNotFoundError: No module named 'dk-car-scraper' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'trec-car-tools'
ModuleNotFoundError: No module named 'trec-car-tools'  Hi, My... named 'trec-car-tools' How to remove the ModuleNotFoundError: No module named 'trec-car-tools' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'ybc-car-recognition'
ModuleNotFoundError: No module named 'ybc-car-recognition'  Hi, My... named 'ybc-car-recognition' How to remove the ModuleNotFoundError: No module named 'ybc-car-recognition' error? Thanks   Hi
ModuleNotFoundError: No module named 'car_wash_queueing'
ModuleNotFoundError: No module named 'car_wash_queueing'  Hi, My... named 'car_wash_queueing' How to remove the ModuleNotFoundError: No module named 'car_wash_queueing' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'Coversation-With-Your-Car'
ModuleNotFoundError: No module named 'Coversation-With-Your-Car'  Hi...: No module named 'Coversation-With-Your-Car' How to remove the ModuleNotFoundError: No module named 'Coversation-With-Your-Car' error? Thanks  
ModuleNotFoundError: No module named 'dk-car-scraper'
ModuleNotFoundError: No module named 'dk-car-scraper'  Hi, My... named 'dk-car-scraper' How to remove the ModuleNotFoundError: No module named 'dk-car-scraper' error? Thanks   Hi, In your python
Delhi to Agra Tour by Car
Delhi to Agra Tour by Car Most of the tourists who visit Delhi also want... prefer a package from Delhi to Agra Tour by car as it offers them freedom... cities is about 200 km hence a car trip could be a better option to explore
Car Rentals in Jaipur
Car Rentals in Jaipur The regal city of Jaipur catches the fascination.... These tourists look for a car rental in Jaipur so that they can understand the city... a car rental facilitates them to get access of different tourist attractions
Car Rental Application in Java
Car Rental Application in Java In this section, we are going to create a Java application regarding car renting, booking and checking the availability... the details. Here is the code: import java.util.*; class Car { private
ModuleNotFoundError: No module named 'office_list'
ModuleNotFoundError: No module named 'office_list'  Hi, My Python... 'office_list' How to remove the ModuleNotFoundError: No module named 'office_list' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'web-office'
ModuleNotFoundError: No module named 'web-office'  Hi, My Python... 'web-office' How to remove the ModuleNotFoundError: No module named 'web-office' error? Thanks   Hi, In your python environment you
Agra Car Hire
Agra Car Hire While going for a trip to Agra most of the tourists and vacationers go for a car hire for Agra, as it offers freedom to travel... to the tourists, a car trip to Agra is most sought after way to visit the city
car - Framework
Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr Dependency for edd-licensing-java-client version 1.0.0
-licensing-java-client version 1.0.0. You can add these depency in your project to get com.mtnfog:edd-licensing-java-client:1.0.0 Java library in your project.. Maven...-licensing-java-client version 1.0.0 In this section have given the dependency code
How to draw a bullet spot on the car, draw a bullet spot on the car, draw a bullet spot
How to draw a bullet spot on the car       This example has a technique to draw a bullet spot... a car picture.ADS_TO_REPLACE_1 Circle: Draw a circle with "5d6780"
Same Day Agra Trip by Car
Same Day Agra Trip by Car Want to explore the city of Agra from Delhi... to explore this destination but hiring a car gives you much freedom... at your will. Same day Agra trip by car has various advantages of its own
Car Music Streaming via iPhone Bluetooth, iphone Bluetooth Audio Streaming
Stream iPhone Music in Car Using Bluetooth One of the nicest features... the iPhone to the Car audio using Bluetooth. If your car has a supported Bluetooth... unobtrusively. Now the only problem that remains?finding a car device that supports
Version of cn.featherfly>featherfly-data-office dependency
List of Version of cn.featherfly>featherfly-data-office dependency
ModuleNotFoundError: No module named 'django-post-office'
ModuleNotFoundError: No module named 'django-post-office'  Hi, My... named 'django-post-office' How to remove the ModuleNotFoundError: No module named 'django-post-office' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'django-mass-post-office'
ModuleNotFoundError: No module named 'django-mass-post-office'  Hi...: No module named 'django-mass-post-office' How to remove the ModuleNotFoundError: No module named 'django-mass-post-office' error? Thanks   
ModuleNotFoundError: No module named 'middleware-office-vibe'
ModuleNotFoundError: No module named 'middleware-office-vibe'  Hi...: No module named 'middleware-office-vibe' How to remove the ModuleNotFoundError: No module named 'middleware-office-vibe' error? Thanks   Hi
ModuleNotFoundError: No module named 'nimbus-post-office'
ModuleNotFoundError: No module named 'nimbus-post-office'  Hi, My... named 'nimbus-post-office' How to remove the ModuleNotFoundError: No module named 'nimbus-post-office' error? Thanks   Hi, In your

Ads