We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Correct and Final Solution of Assignment No.3 Of CS201 Due Date 14 Jan 2013 Solved by Waqas Rasheed

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 4132

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

send me the solution of cs 201 assignment

wese run tu kiya 

thanks waqas bhai...plz upload the solutionfile 

aap khud likhey itni bari nahi hai k na likhe ja sakey.. likhey ge to khuch smaj b ae ga ap k..

check this error

#include <iostream>
#include <conio.h>
using namespace std;

class Vehicle{
      private:
              string company;
              string model;
              double year;
              double engineCapacity (string cmp)
              {
                     company = cmp;
                     }
                     string getCopany()
                     {
                            return company;
                            }
                            void setModel (string md)
                            {
                                 model = md;
                                 }
                                 string getmodel;
                                 }
                                        return model;
                                        
                                        }
                                        void setYear(double yr)
                                        {
                                             year = yr;
                                             }
                                             double getYear()
                                             {
                                                   return year;
                                                   }
                                                   void setEngineCap (double eCap)
                                                   {
                                                        engineCapacity = eCap;
                                                        }
                                                        double getEngineCap()
                                                        {
                                                          return enfineCapacity;
                                                          }
                                                          Vehicle *ptr;
                                                          int numVehicle;
                                                          void getInput()
                                                          {
                                                               cout"Enter number of vehicles: ";
                                                               cin>>numVehicle;
                                                               ptr = new vehicle(numVehicle);
                                                               for(int 1=0;<numVehicle;1++)
                                                               {
                                                                       string Cmp;
                                                                       cout "\n\nVehicle "1+1end1;
                                                                       cout"Enter the name of vehicle maker company : ";
                                                                       cin>>Cmp;
                                                                       ptr[i].setCompany(Cmp);
                                                                       string md;
                                                                       cout"Enter vehicle model : ";
                                                                       cin>>md;
                                                                       ptr[i].setModel(md);
                                                                       double rg;
                                                                       cout"Enter year of registration : ";
                                                                       cin>>rg;
                                                                       ptr[i].setYear(rg);
                                                                       double egC;
                                                                       cout"Enter engine capacity of thre vehicle : ";
                                                                       cin>>egC;
                                                                       ptr[i].setEngineCap(egC);
                                                                       }
                                                                       
                                                                       }
                                                                       void display()
                                                                       {
                                                                            for (int i=0;i<numVehicle;i++)
                                                                            {
                                                                                cout"\n\nVehicle "i+1end1;
                                                                                cout"Company : "ptr[i].getCompany()end1;
                                                                                cout"Model : "ptr[i].getModel()end1;
                                                                                cout"Year : "ptr[i].getYear()end1;
                                                                                cout"Engine Capacity in cc : "ptr[i].getEngineCap()end1;
                                                                                
                                                                                }
                                                                                Vehicle()
                                                                                {
                                                                                         company = "ABC";
                                                                                         model = "xyz";
                                                                                         year = 2009;
                                                                                         engineCapacity = 1000;
                                                                                         }
                                                                                         ~Vehicle()
                                                                                         {
                                                                                                   cout"\nobject deleted\n";
                                                                                                   }
                                                                                                   
                                                                                                   };
                                                                                                   int main()
                                                                                                   {
                                                                                                       vehicle obj;
                                                                                                       obj.getInput();
                                                                                                       obj.display();
                                                                                                       obj.display();
                                                                                                       deleted [] obj.ptr;
                                                                                                       getch();
                                                                                                       }
                                                                                                       
                                                                                         
                                                                            
                                                                                                                                              )
                                                               
                                                               
                                                              
                                  
              

get model ka function theek nahi likh.. us ke braces ulit band ke hoe hien..

woo theek karo..

ye soln thkk nai hy ap ka error dy raha..
return model;
ma kch keh ra.. :/

MADAM WO THEEK KER LIYA THA LEKIN END PE PRBLM DE RAHA HAI....SEE AGAIN

#include <iostream>
#include <string>
using namespace std;
class VEHICLE{
private:
char company[20];
char model[20];
int year;
int engin;
public:
VEHICLE();

void display();
void get_input();
void set_vehicle(char[],char[],int,int);
void get_comp_mod(char[],char[]);
int get_year(int);
int get_engin(int);

~VEHICLE()
{

cout"Object Deleted"endl;
}

};
VEHICLE::VEHICLE()
{
strcpy(company,"");
strcpy(model,"");
year = 0;
engin = 0;
}

void VEHICLE::set_vehicle(char comp[],char mod[],int y,int eng)
{
strcpy(company,comp);
strcpy(model,mod);
year = y;
engin = eng;

}
void VEHICLE::get_comp_mod(char comp[],char mod[])
{
strcpy(comp,company);
strcpy(mod,model);

}
int VEHICLE::get_year(int y)
{
return year;

}
int VEHICLE::get_engin(int eng)
{

return engin;
}
void VEHICLE::display()
{
char comp[20];
char mod[20];
int y = 0;
int eng = 0;
get_comp_mod(comp,mod);
cout"Company: "compendl;
coutendl;
cout"Model: "modendl;
coutendl;
cout"Year: "get_year(y)endl;
coutendl;
cout"Engin: "get_engin(eng)endl;
coutendl;

}
void VEHICLE::get_input()
{
char comp[20];
char mod[20];
int y = 0;
int eng = 0;
cout"Please Enter The Name Of Vehicle Maker Company: ";
cin>>comp;
coutendl;
cout"Please Enter the Model Of The Vehicle: ";
cin>>mod;
coutendl;
cout"Please Enter The Year Of Registration: ";
cin>>y;
coutendl;
cout"Please Enter The Engin Capacity: ";
cin>>eng;
coutendl;
set_vehicle(comp,mod,y,eng);


}

int main()
{
system("cls");
system("Color 1A");


cout"\t\t BSCS 2nd Semester \n\t\t 3rd Assignment Solution File\n";
cout"\tStudent Name:-Sunny Pome Student ID:- BC120200xxxx\n";
int vnum = 0;
VEHICLE* vehiptr;
cout"\nPlease enter the number of vehicle:\n ";
cin>>vnum;
coutendl;
vehiptr = new VEHICLE[vnum];

for(int a=0;a<vnum;a++)
{
cout"VEHICLE "a+1endl;
coutendl;
vehiptr[a].get_input();

}
for(int i =0;i<vnum;i++)
{
cout"VEHICLE ["i+1']'endl;
coutendl;
vehiptr[i].display();

}
delete [] vehiptr;
system("pause");

}

RSS

Latest Activity

+ ! ! dAd's anGeL ❤️ liked + ! ! dAd's anGeL ❤️'s discussion -_-
6 hours ago
+ ! ! ! ! ! ! maho+++ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
8 hours ago
+ ! ! ! ! ! ! maho+++ posted a discussion
8 hours ago
+ ! ! ! ! ! ! Sm!Le updated their profile
8 hours ago
+ Տɑíɾɑ Ƙհɑղ + replied to Asad's discussion ربا سچیا تُوں تے آکھیا سی
8 hours ago
+ ! ! ! ! ! ! maho+++ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
8 hours ago
+ IUUOƆƎUT + replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
8 hours ago
+ ! ! S░!░N҉░G҉░E҉░R​⭐️ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
8 hours ago
+ ! ! S░!░N҉░G҉░E҉░R​⭐️ liked + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
8 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
9 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
9 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
9 hours ago

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.