Write some software

Lezárva Kiadva: 7 évvel ezelőtt Kiszállításkor fizetve
Lezárva Kiszállításkor fizetve

I need you to develop some software for me. I would like this software to be developed for Windows using C or C++.

For Programming Assignment 3 you will be creating a program to manage a car dealership. This will again be a menu driven system. The following is your menu:

Display Inventory

Add a vehicle

Update a vehicle

Delete a vehicle

Sort inventory by VIN

Search inventory by Make

Read inventory from file

Write inventory to file and exit

Notes:

When reading inventory from a file, the dealer number must be placed in a pointer to a [login to view URL] writing inventory to a file, you MUST use the >> operator.

Your program will be class based with the following UML representing the classes

Dealer

- dealerNum: int

+Dealer( )

+getDealerNum( ):int

+setDealerNum(iDealerNum:int):void

Vehicle

- VIN:string

- make:string

- model:string

- year:int

- price:double

-dealer: dealerType * (pointer to a dealerType)

 

+ Vehicle(iVIN:string, iMake:string, iModel:string, iYear:int, iPrice:double)

+ Vehicle( )

+ getVIN( ):string

+ getMake( ):string

+ getModel( ):string

+ getYear( ):int

+ getPrice( ):double

+setVIN(iVin:string):void

+ setMake(iMake:string):void

+ setModel(iModel:string):void

+ setYear(iYear:int):void

+ setPrice(iPrice:double):void

+ friend operator << (ostream&:out, const Vehicle &:vehic):ostream&

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 (display, addVehicle, deleteVehicle, updateVehicle, operator << etc).vehicle.h: this will contain both class declarations and the operator << [login to view URL]: this will contain both class implementations.

You will be storing your vehicle objects in avector. 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: VVVV

Make: MMMM

Model: MMMM

Year: YYYY

Price: $[login to view URL]

Dealer: #

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.

You will ask the user for all of the information to add the vehicle and then you will add it to the [login to view URL] 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 [login to view URL] 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 [login to view URL] will sort the vector by VIN number (when sort is done, the vector in main will be sorted by VIN number).You will ask the user for a make, then search the vector for that vehicle. You will return the first matching entry’s index number or an appropriate message if not [login to view URL] 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 it is newline delimited. (but has only the Vin, make, model etc. on separate lines, not the words VIN:, Make: etc.)You will write the entire inventory out to a file called [login to view URL] (in the same format as [login to view URL], not the same format as the display to the screen) and then exit the program.

is a change to the requirements for PA3:

 

First, Rename Dealer *dealerType to Dealer * dealerPtr

- This will help understanding when you are working with objects that have values or pointers (memory addresses to objects)

 

Next, Inside your Vehicle class

- Place Dealer *dealerPtr under the public: area

- This will allow you to say dealerPtr->dealerNum directly...which is a lot cleaner (and easier) than using get and set variables.  This means you do NOT have to write a getdealerPtr( ) member function.  You WILL need to write  getdealerNum and setDealerNum functions inside the dealer class becuase dealerNum will still be private.

C++ Programozás PHP

Projektazonosító: #12090136

A projektről

7 ajánlat Távolról teljesíthető projekt Utoljára aktív: 7 évvel ezelőtt

7 szabadúszó tett átlagosan 58$ összegű árajánlatot erre a munkára

it2051229

Hi there, I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.

$30 USD 1 napon belül
(739 vélemény)
7.3
hbxfnzwpf

Ahoy! 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 e Továbbiak

$100 USD 2 napon belül
(101 vélemény)
6.7
kpol4k

Hi, I'm experienced C/C++ developer working curently as Senior Software Developer in Auro Technologies. I can implement such application for you. Code will be well commented and implemented in easy to read way. I can Továbbiak

$111 USD 1 napon belül
(16 vélemény)
3.9
moeenahmed21

I am an experienced C & C++ programmer with more than 3 years experience. I will your tasks as per your requirements. Feel free to contact me for further discussion. Regards, Moeen Ahmed

$15 USD 1 napon belül
(6 vélemény)
2.8