#include<iostream>
#include <string>
using namespace std;
int main()
{
int select,select1,installment;
int total,total1,
char*carModels[6]={"ford focus""honda civic""citroen couple""peugeot 208""mazda RX6""golf GTI"};
char*carEngines[6]={"17cc""19cc""16cc""14cc""18cc""16cc"};
int madeYear[6]={2006,2007,2007,2007,2005,2006};
long carPrices[6]={2500,34000,2700,2600,35000,32000};
cout<<" \nWELCOME TO CAR SELLING PROGRAM\n\n";
cout<<" ********************************\n\n";
cout<<"Choise Car model Car engine Made year Car price\n";
cout<<" --------------------------------------------------\n";
cout<<" 1-> Ford focus 17CC 2006 25000$ \n";
cout<<" 2-> Honda civic 19CC 2007 34000$ \n";
cout<<" 3-> citroen couple 16CC 2007 27000$ \n";
cout<<" 4-> peugeot 208 14CC 2007 26000$ \n";
cout<<" 5-> mazda RX6 18CC 2005 35000$ \n";
cout<<" 6-> Golf GTI 16CC 2006 32000$ \n";
cout<<" please select the car you want to buy [1-6]";
cin>>select;
cout<<"you have selected "<<carModels[select-1];
cout<<"how do you want to pay ";
cout<<"1-> instant pay";
cout<<"2->with installments";
cin>>select1;
if(select1==1)
{total=carPrices[select-1]-(carPrices[select-1]*5/100);
cout<<"the total money amount you need to pay to buy for" <<carModels[select-1]; "is:"<<total;}
else if (select1==2)
{cout<<"you can pay car model"<<carModels[select-1]<<"up to 60 months <5 years >period\n";
cout<<"consider that for every 6 months,there will be %2 incresemenet in the price \n";
cout<<"notice if you want to pay the car in 6 months you need to type 0.5 years\n";
cout<<"select the instellement period [0.5years - 5 years ]:";
cin>>installment;
total1=(installment*2/100*carPrices[select-1])+carPrices[select-1];
cout<<"the total money amount you need to pay to buy for "<<carModels[select-1];"is :"total1;
}