Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


CS304 Object Oriented Programming

Information

CS304 Object Oriented Programming

CS304 Object Oriented Programming.Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more….

Members: 1923
Latest Activity: on Tuesday

Discussion Forum

CS304 ASSIGNMENT 3 SOLUTION FILE

Started by Zain Arshad on Tuesday. 0 Replies

Untitled

Started by Zain Arshad on Tuesday. 0 Replies

Untitled

Started by Zain Arshad on Tuesday. 0 Replies

CS304 ASSIGNMENT-03 Due Date Jul 26, 2021 TotalMarks 20

Started by иαвєєℓ αнмє∂. Last reply by Zain Arshad on Tuesday. 5 Replies

Practcal training on OOP is available Free

Started by SK(MS-SE). Last reply by Muhammad Sufyan Randhawa Jun 6. 1 Reply

CS304 Assignment 01 Spring 2021 Solution / Discussion

Started by + M.Tariq Malik. Last reply by + M.Tariq Malik May 10. 16 Replies

CS304 Assignment 01 Fall 2020 Solution / Discussion

Started by + M.Tariq Malik. Last reply by + M.Tariq Malik Nov 23, 2020. 6 Replies

CS304 Assignment No 01 Spring 2020 Solution & Discussion

Started by + M.Tariq Malik. Last reply by + Faisal + Jun 13, 2020. 11 Replies

<< 10 Latest Featured Discussions >> For Old Discussions? View All Featured Discussions In This Group.

Loading… Loading feed

Comment Wall

Comment

You need to be a member of CS304 Object Oriented Programming to add comments!

Comment by Mr.Nice Guy on April 21, 2017 at 4:23pm

Dear students,

Assignment No. 1 has been uploaded and its due date is April 27, 2017.

Kindly Discuss the topic and confusion relevant to assignment.Thanks


Instructions:

Please read the following instructions carefully before submitting assignment:

It should be clear that your assignment will not get any credit if:

 

  • The assignment is submitted after due date.
  • The assignment is submitted via email.
  • The assignment is copied from Internet or from any other student.
  • The submitted assignment does not open or file is corrupt.
  • It is in some format other than .doc (MS Word Document).

 

Note: All types of plagiarism are strictly prohibited.

 

For any query about the assignment, contact at CS304@vu.edu.pk

Objective

The objective of this assignment is:

  • To give you the practical implementation of Class Diagram

 

For any query about the assignment, contact at cs304@vu.edu.pk

GOOD LUCK!

 

 

 

Problem Statement:

There are broadly three kinds of vehicles:

  1. Cars

  1. Sports Utility Vehicles (SUVs)

 

  1. Heavy Duty Vehicles (HDVs)

Every vehicle has an engine and a gearbox. A gearbox is composed of pulleys working according to predefined gear ratios. Cars have smaller engines with 4-6 gears while Sports Utility Vehicles (SUVs) have bigger engines with 4-8 gears. Heavy Duty Vehicles (HDVs) on the other hand, are designed to transport cargo thus have huge engines with 8-16 gears. The larger the numbers of gears the larger will the number of pulleys and vice versa.

 

The tasks you have to do are:

  1. Extract the main objects (entities) from the given scenario.
  2. Find the necessary attributes and functions that need to be associated with each object to implement the functionality mentioned above.
  3. Identify the relationships between these objects.
  4. Construct a final comprehensive Class diagram showing all objects and their relationships along with their attributes and functions.
  5. You have to use UML conventions to draw class diagram. The same has been followed in video lectures as well.

 

 

Comment by مَلیکا ایمان on May 27, 2016 at 9:43pm
Comment by Ali Zaidi on May 27, 2016 at 1:39pm

Slam any body plzzzzzz send me the link of past midterm moaz file 304

Comment by Ali Zaidi on May 27, 2016 at 1:39pm

Slam any body plzzzzzz send me the link of past midterm moaz file 304

Comment by ali imam on May 19, 2016 at 11:27am

koi soln dy phly assinmnet ka '

Comment by ali imam on May 19, 2016 at 11:26am

salam  to all .

Comment by Hamziiii on December 11, 2015 at 10:55pm

c++ software kha se mily gaaaa

Comment by M NAD36M-CH on June 5, 2015 at 10:20am

By Chaudhary M NAD36M FROM PAKPATTAN

#include<iostream>
#include<string.h>
// WRITTEN BY CHAUDHARY M NAD36M FROM PAKPATTAN PPKTO1

using namespace std;
class Employee
{
private:
int Employee_ID;
char *name;
char *Department;
float Salary;
static int noOfEmployees;
public:
Employee();
Employee(int, char *, char *, float);
Employee(Employee &);
void SetFunc();
int GetFunc();
void calcNetPay();
void display();
~Employee();
};
Employee::Employee()
{
noOfEmployees++;
Employee_ID=0;
name=NULL;
Department=NULL;
Salary=0.0;
}
Employee::Employee(int emp_Id, char *emp_name, char *emp_Department, float emp_Salary):Employee_ID(emp_Id),name ( new char[strlen(emp_name)+1]),Department(new char[strlen(emp_Department)+1]),Salary(emp_Salary)
{


strcpy(name,emp_name);

strcpy(Department,emp_Department);

noOfEmployees++;
coutEmployee_ID"\t\t"name"\t"Department"\t\t"Salary;
}
Employee::Employee(Employee &obj)
{
Employee_ID=obj.Employee_ID;
name=obj.name;
Department=obj.Department;
Salary=obj.Salary;
}
void SetFunc(int emp_Id, char *emp_name, char *emp_Department, float emp_Salary)
{
emp_Id=emp_Id;
emp_name=emp_name;
emp_Department=emp_Department;
emp_Salary=emp_Salary;
}
int GetFunc(int emp_Id, char *emp_name, char *emp_Department, float emp_Salary)
{
return emp_Id;
return *emp_name;
return *emp_Department;
return emp_Salary;
}
void calcNetPay()
{
int emp_Salary, tax, NetPayable;
if(emp_Salary<10000)
{
tax=0;
NetPayable=emp_Salary-tax;
coutNetPayable;
}
else if(emp_Salary>10000 && emp_Salary<=20000)
{
tax=emp_Salary*5/100;
NetPayable=emp_Salary-tax;
coutNetPayable;
}
else if(emp_Salary>20000 && emp_Salary<=30000)
{
tax=emp_Salary*7/100;
NetPayable=emp_Salary-tax;
coutNetPayable;
}
else if(emp_Salary>30000)
{
tax=emp_Salary*10/100;
NetPayable=emp_Salary-tax;
coutNetPayable;
} // ITS MY OWN ASSIGNMENT ENJOY MY FRIENDS !!!!!!!!!!
}
void display()
{
static int noOfEmployees;
noOfEmployees++;
coutnoOfEmployees"ID\t""Name\t\t""Department\t\t""NetPayable";
}
Employee::~Employee()
{
delete []name;
delete []Department;
noOfEmployees--;
coutnameDepartment;
}
int main()
{
Employee emp[5];
for(int i=0;i<5;i++)
{
emp[i].calcNetPay();
emp[i].display()
{
emp[i](5, "Ahmad", "Accounts", 20000);
emp[i]=emp[0];
emp[i](10, "Ayesha", "Accounts", 25000);
emp[i](3, "Hassan", "Administration", 10000);
emp[i](6, "Arsalan", "Administration", 35000);
}
}

coutendl;
system("pause");
}

Comment by M NAD36M-CH on June 5, 2015 at 10:19am

Solution of Assignment no.2 of CS304 is here

Employee.cppClick here my boy and get assignment.

Comment by M NAD36M-CH on May 15, 2015 at 9:38am

Chaudhary.cpp

So enjoy friends.

by Chaudhary from Pakpattan

 

Members (1923)

 
 
 

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

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