We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

here you go!! cs201 Assignment 4 edited by Me!! if there is an error do inform me!!


+ 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)


Views: 2546

Attachments:

Replies to This Discussion

Thanks brother for helping Assignment.

yea complete solution nai is ki output wase tpu nai show ho rai jaise assignment main kaha hy :( :(

it's just not having setter and getter !! only.. 

and it's as the given assignment

#include <iostream>
using namespace std;
class StaffRegistration
{
private:
char cnic[16];
char name[20];
char fname[20];
char dob[11];
char degree[10];
char desig[15];
int sal;
char joinDate[11];
char cell[13];
char address[40];
public:
void InputStaffData()
{
//enter your full name//
cout"Program developed By:  "endl;
//enter your vu id
cout"My VU ID : BC"endl;
cout"\nPlease enter National Identity Card Number(CNIC)"endl;
cin>>cnic;
cout"Please enter name"endl;
cin >> name;
cout"Please enter father name"endl;
cin >> fname;
cout"Please enter date of birth (dd/mm/yyyy)"endl;
cin>>dob;
cout"Please enter qualification"endl;
cin>>degree;
cout"Please enter salary"endl;
cin>>sal;
cout"Please enter joining date (dd/mm/yyyy)"endl;
cin>>joinDate;
cout"Please enter contact number"endl;
cin>>cell;
cout"Please enter address information"endl;
cin>>address;
cout"Record added successfully !!!"endl;
}
void DisplayStaffData()
{
cout"CNIC: \t\t\t"cnicendl;
cout"Name: \t\t\t"nameendl;
cout"Father Name: \t\t"fnameendl;
cout"DoB: \t\t\t"dob endl;
cout"Qualification: \t\t"degreeendl;
cout"Salary: \t\t"salendl;
cout"Joining Date: \t\t"joinDateendl;
cout"Contact Number: \t"cellendl;
cout"Address: \t\t"addressendl;
}
};
main()
{
system("cls");
StaffRegistration emp;
emp.InputStaffData();
cout"---------------------------------------------------------------------------"endl;
cout"\t\t\t\ DISPALAY STAFF INFORMATION"endl;
cout"---------------------------------------------------------------------------"endl;
emp.DisplayStaffData();
cout"---------------------------------------------------------------------------"endl;
system("pause");
}

Thanks for sharing nazish

nazish is program me kaha ha getter setter???

AKB thankw

RSS

Looking For Something? Search Here

Latest Activity

Profile IconNeha Naeem, jimmy01210, Mohammad Abdullah and 2 more joined Virtual University of Pakistan
10 minutes ago
waheed liked Zoey D's profile
1 hour ago
+ ! ! ! ! devdäš liked ARhum's discussion Poetry...!!!
1 hour ago
+ ! ! ! ! devdäš liked ARhum's discussion ****...Suno...****
1 hour ago
gh bhatti liked +M.Tariq Malik's group MTH405 Elementary Topics in Pure Mathematics
1 hour ago
BS MATH updated their profile
2 hours ago
Rao Khan! liked +M.Tariq Malik's discussion FPSC CSS Updated Syllabus - Latest CSS Syllabus Download Free In PDF
3 hours ago
Rao Khan! liked Angel's discussion MTH303. Current Past Paper
3 hours ago

Today Top Members 

HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!

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

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

.