I have a project from school, and I have to create a c++ program where I gotta make this car dealership program with arrays and I'm seriously not that great with it so can someone help me out by making a program ...pleaseee
Thanks anyway for looking into this and your help would be greatly appreciated
I have to start but I have information about all the cars that I am gonna put in the dealership, so what I'm planning to do is ask the user to select what type of car he needs (SUV, sedan, etc)
and once he selects ill show the different companies from which he can select a model and ill show the rest of the details .....that's what I'm planning but I've got no idea how to do it if I get this program right it would help a lot in getting good grades..plz do help me and if anything else is needed I can tell you ...(btw my teacher hasn't taught us about 'class' he's taught us only about strings so I cant use class ) plz do help me
You would need a class for this, only if the homework instruction requires to create a class explicitly. But it is useful to do so. You could create a struct, which is just another name for a class.
1 2 3 4 5 6 7 8 9 10
/// Stores car data
struct car
{
int dealercode;
int model;
int year;
int price;
/// ...
};
Thanx for that it really helped a lot but the program that I want to make I wish it was a little bit more complex so I've got engine type, transmission type and things about the car where do I stuff all this?im selling the car so you know all the details for it ....