Pages

Sunday, June 27, 2010

CS201 Assignment # 4 Solution

Problem Statement: Student class

You are required to write a class named “Student “. Student class has the following data members
·
Name
·
Roll Number
·
Semester
·
CGPA

Student class should have
Default and overloaded constructors
Getter and setter functions
A display function that will display the values of data members of an object
You are required to create two objects of student class. One object should be initialized with default constructor, and second object should be initialized with overloaded constructor.
Then you should display the values of both objects using display() function.

Solution:-


#include

using namespace std;
class Student{
private:
string name;
int rollNumber;
string semester;
double cgpa;

public:
Student(string n,int r,string s,double c )
{name=n;
rollNumber=r;
semester=s;
cgpa=c;
}
Student()
{name="";
rollNumber=0;
semester="Summer 2010";
cgpa=4.0;
}


string get_semester()
{return semester;
}
void set_semester(string n)
{semester=n;
}
void set_roll(int n)
{rollNumber=n;
}
int get_roll()
{return rollNumber;
}
void set_name(string n)
{name=n;
}
string get_name()
{return name;
}
void set_cgpa(double n)
{cgpa=n;
}

double get_cgpa()
{return cgpa;
}
void print()
{cout<<"Student Information\n"; cout<<"Name: "<
<<<<<<<<<="" <="" <="" <="" a.print();="" a;="" b("name",2345,"spring="" b.print();="" cgpa<<<<"current="" cout<<"roll="" cout<<"semester:="" gpa:="" int="" iostream="" main()="" name<<<<="" }=""><

Please do make changes in these assignment otherwise every one who copy this assignment as it is will awarded zero marks

CS605 Assignment 4 Solution

Software Engineering II CS605
Assignment 4 Solution
Question:
Suppose you are a project manager of a company xyz. You have been asked to compute the earned value analysis of a software project. The software project has 70 planned work tasks that are estimated to require 620 person-days to complete. At the time you have been asked to do the earned value analysis, 13 tasks have been completed. However, the project schedule indicates that 16 tasks should have been completed. The following scheduling data in person-days are available:

You are required to compute the SPI, schedule variance, percent scheduled for completion, percent complete, CPI, and cost variance for the project.

Solution:

Budgeted cost of work scheduled (BCWS)
11 + 8 + 5 + 13 + 11 + 15 + 8 + 7 + 10 + 12.5 + 6 + 3 + 10 + 5 + 6 = 130.5

Budgeted cost of work performed (BCWP):
11 + 8 + 5 + 13 + 11 + 15 + 8 + 7 + 10 + 12.5 + 6 + 3 = 109.5

Budgetat Completion
620

Schedule performance index, SPI = BCWP/BCWS = 109.5/130.5 = 0.83

Schedule variance, SV = BCWP – BCWS = 109.5 - 130.5 = -21

Percent scheduled for completion = BCWS/BAC = 130.5/620 = 0.21

Percent complete = BCWP/BAC = 109.5/620 = 0.17

Actual Cost of Work Performed
10 + 9 + 4 + 13.5 + 11 + 16 + 10 + 7 + 9 + 13 + 5 + 5 = 112.5

Cost performance index, CPI = BCWP/ACWP = 109.5/112.5 = 0.97

Cost variance, CV = BCWP – ACWP = 109.5 – 112.5 = -3


Please do make changes in these assignment otherwise every one who copy this assignment as it is will awarded zero marks

Is this blog is useful for you?

Powered by Blogger.