Find Jobs
Hire Freelancers

Write a program

$10-30 USD

Completed
Posted over 7 years ago

$10-30 USD

Paid on delivery
Your program will be class based with the following UML representing the classes: Dealer - DealerName: string - DealerAddress: string + setName( input:string): void + setAddress(input:string ): void + getName( ): string + getAddress( ): string + Dealer ( ); + Dealer ( iName:string) ; Vehicle - VIN:string - make:string - model:string - year:int - price:double + DealerPtr: Dealer * //Note this should be in the public area + Vehicle(iVIN:string, iMake:string, iModel:string, iYear:int, iPrice:double) + Vehicle( ) + getVIN( ):string + getMake( ):string + getModel( ):string + getYear( ):int + getPrice( ):double + setVIN(input:string):void + setMake(input:string):void + setModel(input:string):void + setYear(input:int):void + setPrice(input:double):void + friend operator << (out: ostream &, Vehicle: car 1):ostream & Note: Don't forget to create a new Dealer if either the Vehicle constructor or default constructor is called. You will have four files for your program (Use these file names!): [login to view URL], functions.h, vehicle.h, vehicle.cpp. [login to view URL]: this will be your driver file. functions.h: this will contain your global functions for each of the menu items vehicle.h: this will contain the class declarations for vehicle and dealer. [login to view URL]: this will contain the class implementations for vehicle and dealer. You will be storing your vehicle objects in a vector. In the main function, you will create a vector of vehicles with an initial size of zero (0). When the menu options display, delete, edit, sort, or search are called, you will have to check your vector and ensure that it has a vehicle in it before the function continues (error checking). You will not have any global variables. Each menu item will have a corresponding function, and the definition of the function will be found in the file functions.h. Each function will only have one parameter, the vector. All I/O will be done in the functions and not in main (expect asking for what menu option the user wants). The following are the details for each of your menu options: You will display each vehicle, using the following format: Vehicle: VIN: Make: Model: Year: Price: Dealer Name: Dealer City: The bold face letters represent the values for the individual vehicle, and it doesn’t have to be bolded. Notice the tab stop between the label and the value. Also notice that there is a dollar sign and decimal for the price. Lastly, for Vehicle: #, the pound sign represents the vehicle position number in the vector (starting at 1 not 0), which will be 1, 2, 3 … and so on. 2. You will ask the user for all of the information to add the vehicle and then you will add it to the vector. 3. You will display the vehicles and then ask the user which vehicle to edit; they will give you the index number (starting at 1). Check to ensure they gave you a valid entry, then prompt for which item they want to edit (year, make, model, price, or VIN). Once they make their selection prompt for the new information, then return to the main menu. 4. You will display the vehicles and then ask the user which vehicle to delete: they will give you the index number (starting at 1). You will then check to ensure they gave you a valid entry and then remove that vehicle from the vector. 5. You will sort the vector by VIN number (when sort is done, the vector in main will be sorted by VIN number). 6. You will ask the user for a model, then search the vector for that vehicle. You will return the first matching entry’s index number or an appropriate message if not found. 7. You will read the inventory from a file called [login to view URL], which is NOT provided for you (you will need to make your own to start with). The data is stored in the same order as listed above and is newline delimited (like the example below). 34ABC321B BMW 328xi 2016 41315.00 Schomp BMW New York, NY 8. You will write the entire inventory out to a file called [login to view URL] (using the << operator) and then exit the program.
Project ID: 12185592

About the project

9 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello, I am expert in java/c/c++ and i can deliver your task in the least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first check your work then release the payments. Pm me for further details. Thank You!
$40 USD in 1 day
5.0 (103 reviews)
5.6
5.6
9 freelancers are bidding on average $65 USD for this job
User Avatar
I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on server side, using c++ under linux environment. I used c++ to make many great projects, for example, I made the tools which can convert java files into c++ scripts, of course garbage collection included, this job is very similar to a compiler, and is very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$100 USD in 1 day
4.8 (96 reviews)
6.6
6.6
User Avatar
Hi... i read the descriptions and understand i will provide quality work according to your requirement in given time period i will work on our project until you satisfy i am professionally software engineer(Present) having 2 year experience in this field you can check my portfolio. i will feel confidence to work with you....! Thanks
$50 USD in 2 days
3.7 (6 reviews)
3.6
3.6
User Avatar
I work on C++ daily at my work place. I can do this and deliver you soon. Please ping me, Thanks in advance.
$25 USD in 1 day
4.6 (2 reviews)
1.5
1.5
User Avatar
Hello, I believe I'm suitable for the job after reading your job request. I had a lot of experience on C++ as it's my game. I am looking forward to hear from you. Yours, Tamer MSc of Information Technology
$50 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Talk to me for your problem, i'll deliver to you within a week and don't worry the project will be same as given requirements
$222 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Experienced in C++ coding and this particular project seems to be very familiar with one of my previous works. Almost all projects that i indulge in I would try to implement it with classes. Also have pioneered in file I/O operations. Hence i would make an ideal candidate for your project to flawlayessly deliver results within one day.
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
When is the deadline ?
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Englewood, United States
5.0
1
Payment method verified
Member since Nov 25, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.