Answered step by step
Verified Expert Solution
Question
1 Approved Answer
IN JAVA: CentralLink | Central MicE Assignments-CFS 100 / DHWAssgnment 4-Accid 452/630 1/courses/CPS180-18500-22342/41/Hw%20Assignment%204-Accidents.pdf . . C| p Secure I https://blackboardcm.ch.edu/bbcswebdav/pid-55858/2-d Home| Central Michi Zy Central
IN JAVA:
CentralLink | Central MicE Assignments-CFS 100 / DHWAssgnment 4-Accid 452/630 1/courses/CPS180-18500-22342/41/Hw%20Assignment%204-Accidents.pdf . . C| p Secure I https://blackboardcm.ch.edu/bbcswebdav/pid-55858/2-d Home| Central Michi Zy Central Michigan Ui Y Fantasy Reatll 21 C Home | Chogg.com HW Assignment 4-Accidents.pdf 112 Due: Mar 18th, 2018 Submission: Submit Accidents.java on Blackboard The attached file is the data of fatal traffic accidents. Each fatal accident is recorded as one row. The first column is the time (hour, in 24-hour format) the accident happened, the second column is the number of vehicles involved in that accident, and the last column is the number of fatality (i.e., the number of people who died in that accident) in that accident. HOUR VEHICLES FATALS An accident happened at 15 o'clock (ignoring minutes). 2 vehicles were involved in this accident and 1 person died. 13 3 2 19 2 1 15 21 16 2 1 Write a program to analyze the data and show the number of accidents, number of vehicles involved, number of fatals, and vehicle to accidents ratio in the following three time spans Morning: hours from 6 to 12, inclusively . Afternoon: hours from 13 to 19, inclusivey . Night: hours from 0 to 5, and 20 to 23, indlusively Also determine which time span has the highest vehicle to accidents ratio. Simulate the following output: Tine Span Accidents Vehicles Fatals Veh.Acc. Afternoon Night 13028 15350 1-6769 1-6410 1.3799 21379 14380 16955 O Type here to search 1058 AM 2/27/2018Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started