c++ question
hello edaboard users.pls help me out.i'm a new member.
i got this problem of writting a C++ program . help me out pls.
this are the question :
Title : Motor Accidents Statistics
The number of accidents occurred in a year has been recorded in a test file accident.dat in the format as follows :
CHCFTFTHMHMFOHOF........etc
Where C,T,M and O represents the type of vehicles viz.
C-car , T-taxi , M-motorcycle , O-others
And H and F represents the types of roads viz.
H-highway
F-federal road
In order to have a better understanding of the cause of accidents,you are required to write a program to analyze the data and produce two statistical reports ( by vehicle type and by road type) on the accidents. Your program should include the following functions :
- a function to initialize counters
- a function to read the accident data
- a function to analyze the accident data
- two functions to print respective reports
you are encourage to use local variables,input and output parameters for the functions.Use of global variables is not encouraged.
**
thats all..PLS help out..pls..
haha..thx!!