Your Assignment Solution Must Be in Microsoft Word Document Format
Your Assignment Solution Must Be in Microsoft Word Document Format
02
Total Marks: 20
Semester: Spring 2021
Software Engineering-1 (CS504) Due Date: 5-06-2021
You should submit your assignment before or on due date through the VULMS.
Your assignment should be your own work in your own words. It should not be copied from
Internet, handouts or books.
Your Assignment solution must be in Microsoft Word document format. Assignment
solution in other than Microsoft Word document will not be accepted.
Assignment sent via Email will not be replied and accepted.
If the submitted assignment does not open or file is corrupt, it will not be marked and hence
awarded zero marks.
Instructions:
Please read the following instructions carefully before submitting assignment:
Objectives:
To improve the learning of students related to Logical System Models.
To have hands on experience of Data Flow Modeling.
Question#1: (5 Marks)
In DFD, the rectangle represents an external entity, the circle represents a process, and an
arrow represents the data flow. You are required to enlist at least any two mistakes in the
following DFD:
Question#2: (15 Marks)
Given the class StudentManager, which is identified as a low cohesive class, you are required to
create a highly cohesive class(es) out of this class comprising of all essential elements: class
name, attributes, and operations.
Solution no .1
Solution no .2
class order {
public:
int getOrderID();
date getOrderDate();
float getTotalPrice();
int getCustometId();
void setOrderID(int oId);
void setOrderDate(date oDate);
void setTotalPrice(float tPrice);
void setCustometId(int cId);
void addLineItem(item anItem);
private:
int oredrId;
date orderDate;
float totalPrice;
item lineItems[20];
int customerId;
};
class customer {
public:
int getCustometId();
string getCustomerName();
string getCustometAddress();
int getCustometPhone();
int getCustomerFax();
void setCustometId(int cId);
void setCustomerName(string cName);
svoid setCustometAddress(string cAddress);
void setCustometPhone(int cPhone);
void setCustomerFax(int cFax)
private:
int customerId;
string customerName;
int customerPhone;
int customerFax;
}