Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Java

17/12/2020 Client: ahmdfayzm2 Deadline: 12 Hours

Nowadays, road safety research provides an important support for the transport policy. This type of research is concerned with meeting road casualty reduction targets in a country. In order to meet this primary objective, research is commissioned to analyze and understand various vehicle accident types and the factors influencing it. The most common types of accidents are single vehicle collisions, rear-end collisions, head-on collisions, and side impact accidents. Therefore, there has been an increasing demand for more up to date information on reported traffic accidents to be made available to researchers. As a result, in many countries, a department for transport (DfT) is responsible for collecting and publishing traffic accidents data.


In this TMA you’re required to help researchers and implement a Vehicle Accident Application to keep track of accidents data. The requirements for this application are in the following phases:


Phase 1:


Create a separate class each in a .java file to represent vehicle accidents data occurred in a country, an accident, a vehicle and a driver.

The vehicle accidents class has attributes to store a country name and a list of published accidents data by the DfT in that country. The accident class keeps the details about collision road location (within urban area, highway), date/time, the vehicles associated and the number of casualties.

Note: Use the Date class available in java.util package to represent the accident data/time.


Each vehicle has a number and a driver. The driver class records the driver’s name, age, gender and his/her license issue date. The reported vehicle accidents are of the following types:


1. Single vehicle accident: This is a type of road traffic accident in which only one vehicle is involved. A majority of these types of crashes are collisions with fallen debris, a pole, a tree, a wall, and collisions with animals.


2. Rear-end accident: A traffic accident where a vehicle crashes into the vehicle in front of it. Sudden deceleration (slowing down or braking) is a common cause of such accidents.


3. Side-impact accident: These accidents, also known as broadside or T-bone collisions, are where the side of one or more vehicles is impacted. These crashes commonly occur at intersections and parking lots. The results from a side-impact collision can be severe but can vary depending on where the vehicle is struck.


4. Head-on accident: This type of accident is when the front ends of two vehicles hit each other in opposite directions. Being aware of traffic signs, street conditions, and staying in your lane play a critical role in avoiding these types of accidents.



Create a class for each vehicle accident type and define necessary attributes and methods.

Each class must store its state in private variables. It should use a static variable to maintain a count of all instances of the class. For All required access is done through public methods. The public methods which you must implement allow the user to do the following:


- Initiate, get and set the state of any created object.

- Create a new vehicle accidents data object for a given country.

- Add a reported accident type to the list of accidents if is not already in the accidents list.

- Find and display the most frequent accident type from the collected data.

- Display percentage of causalities in accidents involving drivers over age 65.

- Compare the number of accidents that occur within build-up areas to those accidents that occur on highways.

- Display the country name and accidents list which shows the accident details for the drivers involved in accidents having driver's license issued after 2015.

- Dump the vehicle accidents data structure into text.

- Save the information of the vehicle accidents data structure into a file.


If the user attempts do an operation that will violate the state of objects, you must check for it. In that case, the operation should be ignored and the application should give back an error message.


Phase 2:


The application should use a text file to capture the whole vehicle accidents data structure. To do this, add two methods to your center class:

1. A method to save the content of the created Java structure into a text file.

2. A method to restore the saved content back into an appropriate Java data structure for next run time.

Java provides a facility to create your own Exceptions which are basically derived classes of Exception. Write a class that defines a duplicate exception. The duplicate exception will be thrown if accidents are duplicated in the accidents list.


Design and implement a separate testing class to test the designed classes and check if classes meet the requirements.

Phase 3:


The application has to be a GUI (Graphical User Interface) application. Create a window that includes a window title: Title of your project. Design your window by using minimum four different user interface controls like labels, text field, buttons, text area, etc.


Question:


What is the best choice to reuse your written code, if the researchers want to study not only the impact of road location but also other road characteristics such as its surface (dry, wet, slippery…), sign posting, paving, …etc on the accident types? Justify your answer.


Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Homework Guru
Calculation Guru
Instant Assignments
Best Coursework Help
University Coursework Help
Helping Hand
Writer Writer Name Offer Chat
Homework Guru

ONLINE

Homework Guru

Hi dear, I am ready to do your homework in a reasonable price and in a timely manner.

$112 Chat With Writer
Calculation Guru

ONLINE

Calculation Guru

I see that your standard of work is to get content for articles. Well, you are in the right place because I am a professional content writer holding a PhD. in English, as well as having immense experience in writing articles for a vast variety of niches and category such as newest trends, health issues, entertainment, technology, etc and I will make sure your article has all the key pointers and relevant information, Pros, Cons and basically all the information that a perfect article needs with good research. Your article is guaranteed to be appealing, attractive, engaging, original and passed through Copyscape for the audience so once they start reading they keep asking for more and stay interested.

$105 Chat With Writer
Instant Assignments

ONLINE

Instant Assignments

Hey, I can write about your given topic according to the provided requirements. I have a few more questions to ask as if there is any specific instructions or deadline issue. I have already completed more than 250 academic papers, articles, and technical articles. I can provide you samples. I believe my capabilities would be perfect for your project. I can finish this job within the necessary interval. I have four years of experience in this field. If you want to give me the project I had be very happy to discuss this further and get started for you as soon as possible.

$105 Chat With Writer
Best Coursework Help

ONLINE

Best Coursework Help

I am an Academic writer with 10 years of experience. As an Academic writer, my aim is to generate unique content without Plagiarism as per the client’s requirements.

$110 Chat With Writer
University Coursework Help

ONLINE

University Coursework Help

Hi dear, I am ready to do your homework in a reasonable price.

$112 Chat With Writer
Helping Hand

ONLINE

Helping Hand

I am an Academic writer with 10 years of experience. As an Academic writer, my aim is to generate unique content without Plagiarism as per the client’s requirements.

$110 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

National safe schools framework - Atkins or fadkins part 3 answers - What are working credits - Indicate whether each statement is cierto or falso based on the en detalle reading. - Scotty doesn't know guitar tab - Physics, Le - Define nursing in your own words - Arc flash calculation software - 27 koongarra avenue magill sa - Epidemiology Discussion 1 - Strategic plan part 1 new product or service - Six facets of understanding rubric - Ar book finder quick search us - Gro birth certificate application form - Ol 421 final project - Cry - 929 - Gross profit periodic inventory system - Feast watson brown japan - The psych k experience twenty life affirming practical examples - Danny rivera shadow health cough questions - Example of anecdotal record of a child - There's been a death in the opposite house - Rough outline for research paper - Examples of bad hospitality in the odyssey - Adolescence: Contemporary Issues and Resources - Ethics crime and criminal justice williams & arrigo - Defence plaza sydney pass office - Chapter 11 introduction to genetics answers - Every little hurricane essay - Simplify the fraction 10 20 - There are only 2 ways to live your life - Estas faldas elegantes están de moda - Cleveland playhouse square lion king - Band saw safety test answers - Can you go to juvie for cyberbullying - Cochlear n7 indicator lights - AnyLogistix Assignment rev1 - RM D7 - Copy denture technique pdf - Adding ed and ing worksheets pdf - Analysis of covariance spss - Now, summarize that point as accurately as you can (about 50-75 words). Then, write a refutation or rebuttal to their point (about 100 words). - Returns to scale microeconomics - Bigger than enron video - Rsl lifecare visitor bookings - Word document edit - To prevent violations of the stark law quizlet - Capstone Research Companion - Pain neutralization technique dvds for sale - Gas evolution reaction - Discussion social influence - Status and role in sociology - Angular frequency rlc circuit - Nmc revalidation forms combined - Bottlebrush australian bush flower essence - The obligation to endure ethos pathos logos - What is the barometric pressure in phoenix - Read and respond-CH 13 - Explanatory passages present both sides are objective and ___________________ - Strategic group map supermarket industry - Reference letter - Required Practical Connection Assignment - Cutting to the core albert j dunlap - Steam jet refrigeration system diagram - Egg experiments with salt water and water - How to start page numbers on a specific page - Las pirámides de teotihuacán están lejos del valle de - Friction velocity eddy covariance - Facebook inc the initial public offering case study - 8-1 Discussion: Challenges to Communicating Your Findings - Case studies for social work students - Fisk corporation is trying to improve its inventory control system - The muffin house produces and sells a variety of muffins. the selling price per dozen is - How to create a project network diagram in excel - Research Paper - Week 2 Discussion - 2 Questions each one in separate document - Acu extension request form - FOR MUKOL PART 2 project - Impelling Nursing Preparing: Broad Assistance for Capella's FPX Activities - Chapter 13 case scanner project - Your career how to make it happen 8th edition - And the band played on questions answers - Salvation army outlook login australia - National geographic extreme explorer - Computation - What is prospective fault current - T test two sample assuming unequal variances interpretation - The one with unagi - Week 2 - What are the risk associated with visiting Deep and Dark web( Technicalities and Viruses) - Biology chapter 18 assessment answers page 465 - Instruments of the woodwind family - Why is it important that statistical research follow ethical guidelines - Nec sv8500 end of life - Basic types of Economies - Case study opening your new dunkin donuts locations - Lifeline sleep center warrendale pa - Big Sell