|
| Budget: |
$ 20-100 |
| Status: |
Closed
for Bidding (selected
user smd)
|
| Project
Creator: |
|
| |
        
3
reviews
|
| Required
Skills: |
,
|
| Attached
Files: |
Source Code.zip
|
 |
|
|
|
|
|
|
|
|
|
|
Description
A program consisting of four classes plus main() function (approx. 450 lines of code) has been provided.
The application models a simple system for recording travel for a number of vehicles. The provided main() function provides a menu system for the user to interact with the program. The four classes are as follows:
VehicleList - Represents a collection of Vehicle objects. Currently the vehicles are stored in a singly linked list, however for Question 2 you will need to modify this class to use a doubly linked list. The node structure already contains a prev pointer for this purpose. You will also need to modify this class for Question 3, where you must implement a recursive method for displaying the vehicle list in reverse.
Vehicle - Represents an individual vehicle with attributes for make, model, vehicle registration number, and a TravelHistory object used to record all travel for the vehicle. No modifications are needed (or permitted) for this class.
TravelHistory - A class that currently provides very little functionality. In particular, it contains a single reference to a TravelRecord object which is replaced whenever another is added. You will need to modify this class for Question 1 to store any number of TravelRecord objects using the STL multiset container.
TravelRecord - A class that stores the information for a single record of travel, with attributes for date (year, month, and day), and the number of kilometres. No modifications are needed (or permitted) for this classes.
---------------------------------------------------------------------------
Question 1 - Code Libraries and the STL
For this task you will be modifying the TravelHistory class. Currently, the TravelHistory class stores only one reference to a TravelRecord object. You are required to modify the class to instead use the STL multiset container, in which all TravelRecord objects relevant to the vehicle can be stored. You will need to make the modifications:
The m_Records attribute is currently a single RecordInfo structure. This must be changed to use the STL container. The destructor currently checks only whether a single RecordInfo is stored or not. With the change to the STL, you will need to update this function to delete all the RecordInfo structures and the TravelRecords if required. Note that the deleteAtEnd attribute in the RecordInfo structure is used to indicate whether or not the TravelRecord object (referred to by the variable 'data') needs to be deleted or not. The RecordTravel() function currently checks whether any RecordInfo/TravelRecord object is stored or not. If there is one stored, it deletes the object and creates a new one in its place. In the new version of this function, do not delete any existing objects, instead only add the new RecordInfo/TravelRecord object to the STL container. The Display() function currently only checks for a single reference to a RecordInfo/TravelRecord object. This must be updated to correctly process all objects stored in the STL container. For this question, you need to submit only these files:
TravelHistory.cpp TravelHistory.h No other files may be modified in completing this task.
-----------------------------------------------------------------------
Question 2 - Linked Lists This task consists of two sub-tasks that must be completed in order:
Currently, the VehicleList class implements a singly linked list for the list of vehicles recorded by the program. You are required to modify this class to use a doubly linked list instead. You are required to implement the DisplayVehiclesReversedLL() function. This function is to display the list of vehicles in the reverse order to the DisplayVehicles() function. To accomplish this, this function will only use iteration through the linked list, i.e., a single loop that process the elements in the list. Note that this function will look similar to the DisplayVehicles() function which performs the same task except it displays the vehicles forwards. For this question, you need to submit only one file:
VehicleList.cpp No other files may be modified in completing this task.
---------------------------------------------------------------------
Question 3 - Recursion
For this task you are required to implement the DisplayVechilesReversedRec() function in the VehicleList.cpp file. This function is required to display the list of vehicles in reverse order, the same as in Question 2(b) above). However unlike Question 2(b), this must be accomplished using (a) recursive function/s.
For this question, you need to submit only these files:
VehicleList.cpp VehicleList.h
Reminder
You may not start working in this and any project before
your bid is accepted. Any user who violates this policy
may have their account permanently suspended.
|
| Shortlist |
| Decline Bid |
|
|
Dhaka,
BD
location |
US$60
bid amount |

         
(132
reviews)
feedback |

1 day(s)
delivery time |

|
| |
Please check PM.
thanks
Bid Time: 04-18-2008 02:07
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Montevideo,
UY
location |
US$100
bid amount |

         
(88
reviews)
feedback |

1 day(s)
delivery time |

|
| |
Hi, please check pM
Bid Time: 04-17-2008 07:38
|
|
|
|
|
|
Dhaka,
BD
location |
US$50
bid amount |

         
(43
reviews)
feedback |

1 day(s)
delivery time |

|
| |
plz check pm for details...
Bid Time: 04-18-2008 00:29
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
dhaka,
BD
location |
US$40
bid amount |

         
(5
reviews)
feedback |

12 day(s)
delivery time |

|
| |
hi please chk pmb.
Bid Time: 04-17-2008 23:24
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Mumbai,
IN
location |
US$60
bid amount |

         
(3
reviews)
feedback |

3 day(s)
delivery time |

|
| |
Hello, I ama Software Developer (C/C++, Java) and can take care of these assignments very nicely. - Regards,
Bid Time: 04-18-2008 05:15
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Cluj Napoca,
RO
location |
US$50
bid amount |

         
(2
reviews)
feedback |

2 day(s)
delivery time |

|
| |
Hello!
Please check PM.
Regards,Dorra
Bid Time: 04-17-2008 07:32
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Ahedabad,
IN
location |
US$100
bid amount |

         
(1
reviews)
feedback |

35 day(s)
delivery time |

|
| |
Hi
Please check your PM
Best,
BFS
Bid Time: 04-17-2008 11:49
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Lebanon,
US
location |
US$75
bid amount |

         
(1
reviews)
feedback |

1 day(s)
delivery time |

|
| |
Hi, please check your private message.
Bid Time: 04-17-2008 14:41
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Minsk,
BY
location |
US$50
bid amount |

         
(1
reviews)
feedback |

2 day(s)
delivery time |

|
| |
Hi!
It's not a problem to implement this.
Bid Time: 04-17-2008 14:52
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Morris,
US
location |
US$50
bid amount |

         
(2
reviews)
feedback |

2 day(s)
delivery time |

|
| |
i can do this project just fine.
Bid Time: 04-17-2008 11:59
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
ahemdabad,
IN
location |
US$60
bid amount |

(No Feedback
Yet)
feedback |

3 day(s)
delivery time |

|
| |
i can complete it
Bid Time: 04-17-2008 08:50
|
|
|
|
| Shortlist |
| Decline Bid |
|
|
Cairo,
EG
location |
US$45
bid amount |

(No Feedback
Yet)
feedback |

2 day(s)
delivery time |

|
| |
I am a C++ developer and I can handle this task.
Bid Time: 04-17-2008 10:49
|
|
|
|
|