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

CS508 ASSIGNMENT 2 DISCUSSION

+ Click Here To Join also Our facebook study Group.

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


See Your Saved Posts Timeline

Views: 4283

.

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

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

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

Zahid posted a status
"copy quiz k liye koye or extension hai yeah mth pe work ni karti kya? http://bit.ly/31LSltr"
3 minutes ago
+! ! ! "Tooba" and AHMAD MURTAZA are now friends
6 minutes ago
Zahid commented on Shehroz Ahmed's blog post How to copy Quizzes Questions from VU LMS
7 minutes ago
+!!! mano stella+ updated their profile
22 minutes ago
Tahseen replied to Mani Siddiqui BS VII's discussion takabur
38 minutes ago
Smiley Girl updated their profile
1 hour ago
Priya updated their profile
1 hour ago
Lucky added a discussion to the group MGT602 Entrepreneurship
1 hour ago

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

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