You have been hired as a Java programmer by ABC Transportation. Your first project is to develop a system to maintain th
Posted: Fri Jul 08, 2022 6:16 am
You have been hired as a Java programmer by ABC Transportation.Your first project is to develop a system to maintain theinformation about the vehicle installed in the transport companywith sufficient detail of vehicle’s owner, contact no. andinsurance detail and all the available transport services providedby the company.
Section A
Based on the scenario given, provide your answer belowquestions;
1. Design one object, its feature(s) and required behaviour(s)for the given system. You need to provide justification for yourdesign. (5 marks)
2. Describe the differences between Array and Arraylist and howyou can apply it to your system. You need to justify your answer.(5 marks)
3. Describe the differences between while loop and for loop andhow you can apply them in your code. You need to justify youranswer (5 marks)
Section B (Total 15 marks)
Develop an appropriate console program according to the projectscenario. This program must be able to perform the below task.
Users of the System
1. Admin
2. Manager of each branch
3. Normal visitors
Functional Requirements
1. Admin
Can create the manager for various branches and can alsomaintain the information of each manager such as date of joining,salary, personal detail, etc. after getting logged in.
Can install new truck with the required information.
Can search the truck whenever required and can view therecently installed truck.
Can change the status of a truck in some kind of emergencycondition.
Can view the detail of persons who have tried to contacthim.
2. Manager
Can view the recently installed trucks and can change thestatus of a truck in some kind of emergency condition.
Can determine how many trucks are related to his or herbranch.
Can compare his output to others branches output in serviceslink.
Can contact to the admin of a company when needed.
3. NormalVisitor
Can view the recently installed trucks
Can check out our services.
Can contact the admin in case of any query.
Section A
Based on the scenario given, provide your answer belowquestions;
1. Design one object, its feature(s) and required behaviour(s)for the given system. You need to provide justification for yourdesign. (5 marks)
2. Describe the differences between Array and Arraylist and howyou can apply it to your system. You need to justify your answer.(5 marks)
3. Describe the differences between while loop and for loop andhow you can apply them in your code. You need to justify youranswer (5 marks)
Section B (Total 15 marks)
Develop an appropriate console program according to the projectscenario. This program must be able to perform the below task.
Users of the System
1. Admin
2. Manager of each branch
3. Normal visitors
Functional Requirements
1. Admin
Can create the manager for various branches and can alsomaintain the information of each manager such as date of joining,salary, personal detail, etc. after getting logged in.
Can install new truck with the required information.
Can search the truck whenever required and can view therecently installed truck.
Can change the status of a truck in some kind of emergencycondition.
Can view the detail of persons who have tried to contacthim.
2. Manager
Can view the recently installed trucks and can change thestatus of a truck in some kind of emergency condition.
Can determine how many trucks are related to his or herbranch.
Can compare his output to others branches output in serviceslink.
Can contact to the admin of a company when needed.
3. NormalVisitor
Can view the recently installed trucks
Can check out our services.
Can contact the admin in case of any query.