Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- class BasicInformation{
- private:
- string Brand;
- string Model;
- string Generation;
- string Modification;
- string PowerUnitArchitecture;
- string BodyType;
- int NumberOfDoors;
- int NumberOfPlaces;
- int YearOfProduction;
- public:
- void Information(){
- cout << "Brand is: " << Brand << endl;
- cout << "Model is: " << Model << endl;
- cout << "Generation is: " << Generation << endl;
- cout << "Modification is: " << Modification << endl;
- cout << "YearOfProduction is: " << YearOfProduction << " Year" << endl;
- cout << "PowerUnitArchitecture is: " << PowerUnitArchitecture << endl;
- cout << "BodyType is: " << BodyType << endl;
- cout << "NumberOfPlaces is: " << NumberOfPlaces << endl;
- cout << "NumberOfDoors is: " << NumberOfDoors << endl;
- }
- BasicInformation(string brand, string model, string generation, string modification, string PUT, string BT, int ND, int NP, int YP){
- Brand=brand;
- Model=model;
- Generation=generation;
- Modification=modification;
- PowerUnitArchitecture=PUT;
- BodyType=BT;
- NumberOfDoors=ND;
- NumberOfPlaces=NP;
- YearOfProduction=YP;
- }
- };
- class PerformanceIndicators{
- private:
- string FuelCity;
- string FuelSuburban;
- string Fuel;
- string FuelType;
- int SelerationZeroToHundred;
- int SelerationZeroToSexty;
- string TopSpeed;
- string EnvironmentalStandard;
- public:
- void Indicators(){
- cout << "Fuel in City is: " << FuelCity << endl;
- cout << "Fuel outside the city is: " << FuelSuburban << endl;
- cout << "Combined fuel is: " << Fuel << endl;
- cout << "Type of fuel is: " << FuelType << endl;
- cout << "Аcceleration from 0 to 100 is: "<<SelerationZeroToHundred << endl;
- cout << "Acceleration from 0 to 60 is: " << SelerationZeroToSexty << endl;
- cout << "Max speed is: " << TopSpeed << endl;
- cout << "The environmental standard is: " << EnvironmentalStandard << endl;
- }
- PerformanceIndicators(string FC, string FS, string fuel, string FT, string ES, int ZTOH, int ZTOS, string TS){
- FuelCity=FC;
- FuelSuburban=FS;
- Fuel=fuel;
- FuelType=FT;
- EnvironmentalStandard=ES;
- SelerationZeroToHundred=ZTOH;
- SelerationZeroToSexty=ZTOS;
- TopSpeed=TS;
- }
- };
- class VolumesAndWeights{
- private:
- string OwnMass;
- string AllowableMass;
- string MaximumLoadCapacity;
- string MinimumBootVolume;
- string MaximumBootVolume;
- string TankCapacity;
- public:
- void volumeWeights(){
- cout << "Own mass is: " << OwnMass << endl;
- cout << "Allowable mass is: " << AllowableMass << endl;
- cout << "Maximum load capasity is: " << MaximumLoadCapacity << endl;
- cout << "Minimum boot volume is: " << MinimumBootVolume << endl;
- cout << "Maximum boot volume is: " << MaximumBootVolume << endl;
- cout << "Capacity of tank is: " << TankCapacity << endl;
- }
- VolumesAndWeights(string OM, string AM, string MLC, string MINBV, string MAXBV, string TC){
- OwnMass=OM;
- AllowableMass=AM;
- MaximumLoadCapacity=MLC;
- MinimumBootVolume=MINBV;
- MaximumBootVolume=MAXBV;
- TankCapacity=TC;
- }
- };
- class Dimensions{
- int Length;
- int Width;
- int Height;
- int Wheelbase;
- int FrontTrack;
- int RearTrack;
- int MinimumTurningDiameter;
- int TyreDimensions;
- int WheelDimensions;
- };
- class Drive{
- private:
- string DriveArchitecture;
- string Propulsion;
- int NumberOfGears;
- public:
- void drive(){
- cout << "Drive archtecture is: " << DriveArchitecture << endl;
- cout << "Drive is: " << Propulsion << endl;
- cout << "Number of gears are: " << NumberOfGears << endl;
- }
- Drive(string DA, string propulsion, int NOFG){
- DriveArchitecture=DA;
- Propulsion=propulsion;
- NumberOfGears=NOFG;
- }
- };
- class Brakes{
- private:
- string FrontBrakes;
- string RearBrakes;
- string AuxiliarySystems;
- public:
- void brakes(){
- cout << "Front brakes is: " << FrontBrakes << endl;
- cout << "Rear brakes is: " << RearBrakes << endl;
- cout << "Auxiliary systems are: " << AuxiliarySystems << endl;
- }
- Brakes(string FB, string RB, string AS){
- FrontBrakes=FB;
- RearBrakes=RB;
- AuxiliarySystems=AS;
- }
- };
- class Suspension{
- private:
- string FrontSuspension;
- string RearSuspension;
- public:
- void suspension(){
- cout << "Front suspension is: " << FrontSuspension << endl;
- cout << "Rear suspension is: " << RearSuspension << endl;
- }
- Suspension(string FS, string RS){
- FrontSuspension=FS;
- RearSuspension=RS;
- }
- };
- int main() {
- BasicInformation information=BasicInformation("Volkswagen", "Golf", "Golf IV", "1.9 TDI", "Internal combustion engine", "Hatchback", 5, 5, 2001);
- information.Information();
- cout<<endl;
- PerformanceIndicators indicators=PerformanceIndicators("6.5/100km", "4/100km", "4.9/100km", "Diesel", "Euro 3", 10, 9, "193km/h");
- indicators.Indicators();
- cout << endl;
- VolumesAndWeights volumesWeights=VolumesAndWeights("1215 kg", "1750 kg", "535 kg", "330 l", "1185 l", "55 l");
- volumesWeights.volumeWeights();
- cout << endl;
- Drive drive1=Drive("An internal combustion engine (ICE) drives the front wheels", "Front drive", 5);
- drive1.drive();
- cout << endl;
- Brakes brakes1=Brakes("Disc ventilated", "Disc", "Anti-lock braking system-ABS");
- brakes1.brakes();
- cout << endl;
- Suspension suspension1=Suspension("McPherson", "Coil spring");
- suspension1.suspension();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement