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


CS508 ASSIGNMENT 2 DISCUSSION


+ 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: 4407

Attachments:

Replies to This Discussion

same errors aa rahe hen mere pas. koi to correct code share kr day plz

Attachments:

cs508 assgmnt solution

Attachments:

bro error aa rahe hen is men bhe. 19 errors

bro error sir k given link pr execute kya hai error dy rha hai

public class employee {
private int EmployeeId;
private int CNIC;
private String name;
private int Grade;
private float Salary;
private String Category;
//Parameterized constructor
public employee(int EmployeeId,string CNIC, String name, int Grade, float Salary, String Category){
this.EmployeeId=EmployeeId;
this.CNIC=CNIC;
this.name=name;
this.Grade=Grade;
this.Salary=Salary;
this.Category=Category;
}
public employee(){
this(1,"0000-00000000-0","Waleed",16,20000,"I");
}
//setters
public void setId (int EmployeeId) {
this.EmployeeId = EmployeeId;
}
public void setName (String name) {
this.name = name;
}
public void setCNIC (string CNIC) {
this.CNIC = CNIC;
}
public void setGrade (int Grade) {
this.Grade = Grade;
}
public void setSalary (int Salary) {
this.Salary = Salary;
}
//Getters
public int getid (){
return Employeeid;
}
public string getName (){
return name;
}
public string getCNIC (){
return CNIC;
}
public int getGrade (){
return Grade;
}
public float getSalary (){
return Salary;
}
public string getCategory (){
return Category;
}
void display(){
System.out.println("Employee ID: "+ Employeeid + "\n name:"+name);
System.out.println("Employee CNIC: "+ CNIC);
System.out.println("Grade: "+ grade);
System.out.println("Salary: "+ salary);
System.out.println("Category: "+ category);
}
}
//Contract Employee Class code
public class CEmployee extends employee{
private int bonus;
private int rollNo;
private int sum;
public CEmployee (){

//parameterized constructor
public CEmployee(int i, String cn, String n,int g, float s,String c,int b,int[]rol,int sm){
super(i,cn,n,g,s,c);
bonus = b;
rollNo = rol;
sum = sm;
}
//setter
public void setBonus (int bonus){
this.rollNo[]={0,0,0,0,0,0,0}
this.sum=sum+rollNo[0]+
rollNo[1]+
rollNo[2]+
rollNo[3]+
rollNo[4]+
rollNo[5]+
rollNo[6]+
rollNo[7];

this.bonus=sum*1000/2;
}
//getter
public int getSum(){
return sum;
}
public int getrol(){
return rollNo[0];
}
public void display(){
super.display();

system.out.printIn("CEmployee Bonus:" + sum*1000/2);
}
}
//Permanent Employee Class Code
public class PEmployee extends employee{
private int Gratuity;
private int Pension;
public PEmployee (){
}
public PEmployee(int i, String cn,String n,int g,float s,String c,int gr,int p){
super(i,cn,n,g,s,c);
Gratuity = gr
Pension = p;
}
public void setGratuity (int Gratuity){
this.Gratuity=9;}
public void setPension (int Pension){
this.pension=Gratuidy*3000;}

public int getPension(){
return Pension;

public int getGratuity(){return Gratuity;}
public void display(){
super.display();/
system.out.printIn("PEmployee Pension:"+Pesion);
system.out.printIn("PEmployee Gratuity:"+Gratuity);
}
}
//Main test class code
class mtest{
public static void main (String args[]){
System.out.printIn("making object of employee");
System.out.printIn("making object of contracted employee");
CEmpolyee cc = new CEmployee();
PEmpolyee pp = new PEmployee();
cc.display();
System.out.PrintIn("\n\n");
pp.display();
}
}

errors hain is ma sir

Pleas less time hi sol post kar den 

waiting 4 correct solution. only 2 hours left 

mera khayal hai hum error wali e submit kr dty ahhaha 

faida kia? screen shot bhe chahiay. main ne visual studio men bhe compile kia hy yh code. errors aa rahe hen 

kise ky pas hai tu send kr do yar

screenshotkhud edit kr lo paint me ja k 

RSS

Latest Activity

shifa arshad added a discussion to the group CS605 Software Engineering-II
2 minutes ago
shifa arshad joined +M.Tariq Malik's group
6 minutes ago
Profile Iconиαвєєℓ αнмє∂ and Ali Fahad joined +M.Tariq Malik's group
1 hour ago
shifa arshad replied to +M.Tariq Malik's discussion MGT502 Organizational Behavior GDB No 01 Fall 2020 Solution / Discussion in the group MGT502 Organizational Behavior
2 hours ago
shifa arshad joined +M.Tariq Malik's group
2 hours ago
+ !! SARAH replied to Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
3 hours ago
+ ᴄᴏғғᴇᴇ updated their profile
3 hours ago
Rizwan Mushtaq joined +M.Tariq Malik's group
3 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** My Drawing ***
4 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
4 hours ago
Arooj Shahid liked Miss. Churhail's discussion LOVE YOUR LIFE!!!!!
4 hours ago
Arooj Shahid liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
4 hours ago
Arooj Shahid liked Omar's discussion Dua
4 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
4 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
4 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT201 Financial Management GDB No 01 Fall 2020 Solution / Discussion in the group MGT201 Financial Management
4 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT201 Financial Management GDB No 01 Fall 2020 Solution / Discussion in the group MGT201 Financial Management
5 hours ago
Profile IconSaba Shahzadi, waqar, Hammad Syed and 12 more joined Virtual University of Pakistan
5 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion ENG001 Elementary English GDB No 01 Fall 2020 Solution / Discussion Last Date: 04-12-2020 in the group ENG001 Elementary English
5 hours ago
Miss. Churhail liked Omar's discussion Dua
5 hours ago

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

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

.