Ads

Pages

Sunday, November 21, 2010

CS 403 2nd idea Solution

CS 403 2nd Idea Solution

Entity-Relationship Diagrams (ERD)

Data models are tools used in analysis to describe the data requirements and assumptions in the system from a top-down perspective. They also set the stage for the design of databases later on in the SDLC.

There are three basic elements in ER models:

1) Entities are the "things" about which we seek information.

2) Attributes are the data we collect about the entities.

3) Relationships provide the structure needed to draw information from multiple entities.

a. In an Organization each of Corporation division is of many departments.

Each of the departments has many employees to it, but each employee works for only one department. The attributes of EMPLOYEE include

NAME, ADDRESS, BIRTHDATE and the attributes of DEPARTMENT are DEPT_NO and DEPT_NAME.

Solution:

b. A university have many colleges where as each college belongs to only that university. Each college is offering many degrees where as each degree is offered by only single college in that university. One college can have many students but one student can only be registered in one college. One student can have study many courses where as many courses can be taught by many students. 5 Marks

Solution:




c. A bank can have many branches where as each branch belongs to one bank. Each branch can approve many loans where as each loan can be approved by single branch.

Solution:


CS304 Idea Solution

Object Oriented Programming

In Assignment No.1 you developed Object Oriented Model for Library Management System, now you have to give its practical prototype in c++ mean you have to provide the solution of your first assignment and have to implement it in the form of classes in c++ also note that you don’t have to give actual implementation in c++ but simple stereotype (sketch) in the form of c++ code mentioning class names their parameters and functions with access specifiers you also have to show the relationship between classes in the form of inheritance mentioning the name of class/classes from which they have been derived in proper c++ syntax.

class Library

{

Private:

char name[50];

char interface[30];

double space[30];

public:

void store detail of data();

void add();

void Search();

void Return();

void Borrow();

}

class Administrator : public Library

{

Private:

Char name[50];

Char Gender[50];

Char id[50];

Char address[50];

Public:

void Login();

void Logoff();

void search();

void Add();

void Borrow();

void return();

}

class staff : public library

{

Private:

Char name[50];

Char Gender[50];

Char id[50];

Char address[50];

Public:

void Login();

void Logoff();

void search();

void Add();

void Borrow();

void return();

}

class student : public library

{

Private:

Char name[50];

Char Gender[50];

Char id[50];

Char address[50];

Public:

void Login();

void Logoff();

void search();

void Add();

void Borrow();

void return();

}

Tuesday, November 16, 2010

Eng101 Assignment No. 1

Assignment No. 1(Fall 2010)

English Comprehension (ENG101)

Total Marks: 15
Lectures: 11-18
Due Date Nov 22, 2010

Objective:

To asses students' ability to understand a given text

Instructions:
1. No assignment will be accepted via e-mail after the due date.
2. Plagiarism will not be tolerated. Plagiarism occurs when a student uses work done by someone else without acknowledging the actual author. It also means copying and pasting the material from handouts and internet source without rephrasing it in his/her own words.


Q1: Read the following passage and answer the questions given at the end. 10
[2*5=10]
"Getting a New Job"
Anna is a senior in college. She is in search of a job. She lives in New York City.
Life there can be very difficult. It is expensive. Her parents are going to stop giving her money after college. This morning, she read in the paper about a job downtown. The job sounded interesting and offered good pay. She decided to get information about applying to the job.
"I want to apply for this job I read about in the paper. What do I need to do?" asked Anna. "You will need to fill out the application. Then, you will need to prepare a resume," said Anna's college counselor. "Do I need a cover letter?" asked Anna. "Yes, you should include that in your application as well," replied the counselor.
Anna filled out the application. Then she typed a resume. Her roommate was kind enough to edit it for her. She then typed her cover letter. When it was finished, she mailed her application. In a week she received a phone call.
"Anna, this is Mr. Smith. I am calling in reference to your application. We would like to invite you for an interview," said Mr. Smith. "Oh that is great. I can come any time this week," replied Anna. "How about tomorrow morning at ten?" asked Mr. Smith. "That is perfect. See you then," said Anna.
The next day Anna had her interview. It was successful. Mr. Smith called her the next day and offered her a job.

Questions:
1. Why is living in New York City difficult for Anna?
2. What does Ann Nora need in order to apply for the job?
3. How does Anna find out about the available job?
4. Infer the meaning of "roommate" with reference to the given context
5. What is the result of Anna's interview?

Q2: Fill in the blanks with appropriate words keeping in mind the lectures you have studied. [Lectures 11-18] 5
1- Forming the sounds of each word even though you may not say them aloud is called……
2- The discovering of ideas in writing that is not stated directly is called…….
3- A……….is a statement that can be proved true through objective evidence.
4- The purpose of a………. is to give the reader numerical information at a glance.
5- A ……… is one in which you make a point and then provide support i.e. persuasive and logical evidence, to back it up.

Eng201 Assignment No. 2 Solution-2

Business and Technical English (ENG201)

Fall 2010

Assignment # 2

Question No.1 (10)

Your Company wants to serve as trustee for the project of Social Welfare Foundation, which is working for poor and destitute. Write a letter of inquiry to the head of the foundation and ask about funding, benefits, desired results and facilities being offered to the people.

Virtual University *****
Rizwan Plaza, Blue Area
Islamabad

November, 12, 2010

Mr.Ahmed, Executive Director
Social Welfare Foundation
Islamabad

Dear Mr.Ahmed,

My company has been on the sidelines observing your organization for quite some time now, and would like to inform you that you people are doing a remarkable job at helping the poor and destitute.

Due to your continuous progress my company has decided to invest in your organization as a trustee. My offer includes funding opportunities that can help your organization implement your desired action plan. My company also tends to offer innovative ideas for your organization to further prosper. Whether you would be interested in receiving a proposal from my company, I want to assure you that my company supports the nurturing of the poor and destitute. My company proposes to offer a good amount of funds in order to help solve your monetary issues. We here at Virtual University ***** strongly believe in reducing poverty that is by collaborating with your organization.

Apart from that my company also offers building residential areas with flawless sanitation for those of whom which cannot afford a proper shelter. Apart from that my company also plans on setting aside a good amount of fortune to be invested in providing educational facilities for the poor. I personally feel that our strategic planning has the
absolute potential to transform the lives of many who are being offered shelter within your organization.

Looking at the impressive nature of your organization I would like to inquire about your business dealings within the organization. That is I would like to know how you people at the Social Welfare tend to spend your funding benefits. Apart from that I would also like to know what the facilities are being offered by your organization to the poor. And how do the people benefit from your organization?

As for on my company's part I would like if you could just pencil out a rough picture of what does your organization expects from its trustee's. What are your desired results on our behalf?

At the end I would really appreciate it if you would agree to collaborate with us, I'm sure each of us will be able to help each other out respectively. Looking forward to hearing from you.

Thank you,
Sincerely,
Executive Director.

Question No.2 (5)
Correct organization of a business message is important for both the audience and the communicator? Explain.


Good organization of a business message means that the subject and the purpose of that particular message is made clear. The purpose of good organization is to basically help you audience comprehend exactly what you are trying to communicate.

The most common mistakes that companies tend to make are that they tend to ramble on in their message that is they tend to waste valuable customer time, Resulting in the customer feeling disinterested in the message. Apart from that other common mistakes of unorganized business messages are the mixing up of ideas and skipping out on necessary information. But good organization of a business message can lead to saving time and cutting down on workload. Not only has that it further helped the communicator to delegate with ease. The correct compilation of business messages also tends to increase reader understanding that is it makes the reader more receptive to the message. Lastly it helps save the customers time, which results in praise for the communicator.

Therefore good organization of a business message is not only important for the audience but also the communicator. Since both ways it benefits the organization

Mgt401 Assignment Solution

Question No. 1 You are required to identify with brief reasons at which value the inventory will be recognized in each case according to IAS-2?

Part (a) Materials bought at cost of Rs.15 000 for further processing and assembling in order to fulfill a profitable special order. It is observed that cost price has fallen to Rs.12000 since buying these items. Answer: According to IAS 2, the inventory will be recognized on net realizable value (expected selling price which is 12000- selling cost if any- further completion cost) because the selling price of this asset is declined from 15000 to 12000. According to IAS 2, the cost of an item is not recoverable if the selling price of an inventory declines, and we will show these inventories on net realizable value. We will have to estimate the net realizable value NRV of inventory in each accounting period. When these circumstances will no longer exist (the expected selling price of this inventory will increase, we will reverse the net realizable value and the new carrying amount will be the lower of the cost or net realizable value. This means, if cost is less than the NRV of an asset, we will show the inventory on cost and if the NRV of the inventory is less than the cost, we will show the inventory on NRV.

Part (b) Company ABC constructed a machine for a customer on a special order on a contract Price of Rs.20, 000. The order has recently been completed by the company at a cost of Rs.19, 200. It has now been identified that an extra conversion cost of Rs.3, 000 will be required in order to meet certain regulations. It is duly accepted by both parties that they will meet equally the extra cost of conversion. Answer: Net realizable value is the estimated selling price in the ordinary course of business less the estimated costs of completion and estimated costs necessary to make the sale. In this problem, Expected selling price of the inventory is 20000 Further conversion cost RS 3000 is required to complete in order to meet certain regulations. But the point here is that both parties will meet equally the extra cost of conversion, we will divide (3000/2= 1500 because both parties will equally meet the extra cost of conversion) and 1500 will be charged to company ABC and this we will subtract this amount from the expected selling price to calculate NRV. So net realizable value: 20000-1500=18500 And cost incurred to date is 19200. So we will show this inventory on net realizable value (18500) because according to IAS 2, inventories are valued at lower of the cost or net realizable value. Here, net realizable value is less than the cost of the inventory. So we will show this inventory on net realizable value.

Question No. 2Haleeb Foods, a renowned name in dairy farming industry in Pakistan has incurred the following expenditure during the current year. You are required to identify how these costs should be treated in the financial statements of Haleeb Foods according to IAS-38?

Part (a) Rs.175, 000 spent on the design of a new product and it is assumed that this new design will require the next three years period to be developed and ready for tested with a view to production in four years' time. Answer: According to IAS38, costs spend on the design are development cost; we will capitalize these costs and will right off against sale in the profit and loss account. After deducting cost from sale, we gets gross profit from which further we deduct other expenses and taxes and gets net profit or net loss.

Part (b) Rs.650, 000 incurred on the testing of a new production system which designed by the company itself and start to operate during the following accounting period. By using this new system it is predicted that there will be a cut off in cost of production by 20%.