Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Milestone 1

#include<iostream>

using namespace std;

int total_rent(int days , int r);

int advance(int days , int r);

int main()

{ int select,days,r,t,a;

string c,c_fname,c_lname,c_num;

cout<<"\t\t\t\t\tWelcome to Pakistan Car Rental Services"<<endl;

cout<<"\n"<<endl;

string cars[7]={"Suzuki Alto","Suzuki WagonR","Suzuki Cultus","Honda City","Honda


Civic","Corolla","Fortuner"};

int rent[7]={2500,3000,3000,5000,10000,5000,15000};

cout<<"List of Available Cars \t\tPer day Rent"<<endl;

for(int i=0;i<7;i++)

cout<<i+1<<"-"<<cars[i]<<"\t\t\t"<<rent[i]<<endl;

cout<<"Enter car number you want to select=";

cin>>select;

select=select-1;

cout<<"\nYour Selected Car is:"<<cars[select]<<"\nRent per day="<<rent[select]<<endl;

c=cars[select];
r=rent[select];

cout<<"\nEnter For how many days you want to rent the car=";

cin>>days;

system("pause");

return 0;

You might also like