Tuesday, November 16, 2010

CS201 Introduction to Programming assignment No 2 solution Fall 2010

HI All here is CS201 Fall 2010 assignment no 2 Solution


#include
#include
#include

int main()
{

clrscr();
int IndexA[10] = {0,0,0,0,0,0,0,0,0,0};
int IndexB[10] = {0,0,0,0,0,0,0,0,0,0};

cout<<"You Are Requested To Enter Values in Arrays "<>IndexA[x];
if(IndexA[x] < 0 ) { cout<<"please eneter the value between 1 & 20"; cin>>IndexA[x];
}
else if(IndexA[x] >20)
{
cout<<"please eneter the value between 1 & 20"; cin>>IndexA[x];
}
}
clrscr();
cout<<"enter Value In Second Array"<>IndexB[x];
if(IndexB[x] < 0 ) { cout<<"please eneter the value between 1 & 20"; cin>>IndexB[x];
}
else if(IndexB[x] >20)
{
cout<<"please eneter the value between 1 & 20"; cin>>IndexB[x];
}
}
clrscr();
cout<<"You have enter these values in Array"<hgh releasers


CS201 Introduction to Programming assignment No 2 solution Fall 2010

Problem Statement: Comparing two arrays for equality or matching indexes

You are required to write a program which will take input from user in two integer arrays. The program should compare both arrays for checking if both arrays are totally identical (Exactly same). If not, then program should determine the matching indexes of both arrays. Matching indexes means that first element of array1 should be equal to first element of array2 and so on.

Example of two identical (Exactly same) arrays:

Array1 Array2
1 1
2 2
3 3
5 5
7 7
9 9
11 11
13 13
15 15
17 17


Example of two arrays with some matching elements:

Array1 Array2
1 7
2 9
3 3
5 4
7 6
9 8
11 11
13 15
8 8
17 17

Here elements on index 3, 7, 9, and 10 of both arrays are same.



Detailed Description:

The program should take 10 integer inputs from user in arrray1 and array2.
After taking inputs in both arrays, you should pass both arrays to a function named match.
If both arrays are exactly same, the program should display a message “Both arrays are identical”.
If both arrays are not exactly same, then program should match the indexes which have same elements in both arrays and display the matching indexes.
If there is no element matching in both arrays, the program should display a message
“There is no matching element in both arrays”.
Implementation regarding comparison of arrays and displaying message should be inside the function match.

Sample Output for two exactly same arrays

Please enter 10 integers for array1:
Enter element 1 : 1
Enter element 2 : 3
Enter element 3 : 5
Enter element 4 : 7
Enter element 5 : 9
Enter element 6 : 11
Enter element 7 : 13
Enter element 8 : 15
Enter element 9 : 17
Enter element 10 : 19

Please enter 10 integers for array2:
Enter element 1 : 1
Enter element 2 : 3
Enter element 3 : 5
Enter element 4 : 7
Enter element 5 : 9
Enter element 6 : 11
Enter element 7 : 13
Enter element 8 : 15
Enter element 9 : 17
Enter element 10 : 19

Both arrays are identical


Sample Output for arrays with some matching indexes

Please enter 10 integers for array1:
Enter element 1 : 1
Enter element 2 : 3
Enter element 3 : 5
Enter element 4 : 7
Enter element 5 : 9
Enter element 6 : 11
Enter element 7 : 13
Enter element 8 : 15
Enter element 9 : 17
Enter element 10 : 19
Please enter 10 integers for array2:
Enter element 1 : 2
Enter element 2 : 4
Enter element 3 : 5
Enter element 4 : 6
Enter element 5 : 9
Enter element 6 : 12
Enter element 7 : 14
Enter element 8 : 16
Enter element 9 : 17
Enter element 10 : 20


Both arrays have same elements on
Index 3
Index 5
Index 9

Eng201 Assignment No. 2 Solution Fall 2010

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 are the facilities being offered by your organization to the
poor. And how do the those 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 ENG 201
(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 that it further helps 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

Eng201 Assignment No. 2 Solution-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.
Question No.2 (5)
Correct organization of a business message is important for both the audience and the communicator? Explain.

Mgt401 Assignment Solution question 1 Fall 2010

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%.

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



Part (b)
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.

CS 101 Assignment No. 2 solution Fall 2010

Solution:

Student admission form: Student ID: Your VU ID
http://www.vu.edu.pk" method="post" onSubmit="return checkForm()">

ADMISSION FORM
BIO-DATA
Candidate's Name :
Max. character limit is 25
Father's Name :
Max. character limit is 25
Postal-Address :
Upload Your CV :
EDUCATION
Highest Education :
GRADE : A+
A
B+
B
C+
C
DEGREE PROGRAMME
Program Applied for:
Session Applied for :
Morning
Afternoon
Evening

Sunday, November 14, 2010

Assignment No. 2 Semester: FALL 2010 CS101 Introduction to Computing


  • Use Onclick event on submit and reset button to control the empty fields.
  • Submit and Reset buttons are working properly. On submission the form must be navigated to www.vu.edu. pk                                                                                                                          
  • Your controls in the form are well organized and functional.
  • Follow the layout provided to you.
  • Color used in Header, Content and Footer is magenta
  • Web Page Title = Student admission form: Student ID: Your VU ID
  • Follow the Layout ( Header , content, footer)
  • Use Forms and tables to show different controls in the form (Interfacing)
  • Use Onclick () event on submit button in Java Script to control empty fields.
    • Name field length contains maximum 25 characters and not empty.
    • Father's name field contains maximum 25 characters and not empty.
    • Postal address field not empty.
    • CV field not empt
You are required to design an Admission form for educational website in HTML.
 (15 Marks)

Admission page will have three main parts
Header

Header contains any heading representing your form, you should write Admission Form there and you may use any image/background color behind the heading.

Content
 The content section will contain three sub sections
Combo Box of Highest Education has these values in it:
-         BBA
-         B.A.
-         BSIT
-         BCS
-         MBA
-         MCS

Combo Box of Program Applied For  has these values in it:
-         MS (CS)
-         MS (BA)
-         MCS
-         MBA
-         BCS
-         BBA

Footer
The Footer section will display a simple footer text(it can be anything)
 

The complete Web page Preview

Eng 201 Assignment Solution Fall 2010

Solution:

Q1: Letter of Inquiry/Intent

Some foundations/corporations prefer a letter of inquiry to determine whether the applicant falls within the foundation's guidelines. In this case, an inquiry letter used instead of a cover letter and proposal. It is very succinct, and attachments are not included. If the funder determines the organization and project fit within it's scope, the organization will be directed to submit a complete proposal. If not, a decline letter is usually issued at that time. A letter of inquiry should meet the following criteria:

Includes funder's name, title, and address
Is directed at the individual responsible for the funding program
Provides a brief overview of the organization and its purpose
Includes the reason for the funding request
Includes the amount requested (if required by funder)
Describes the need the project intends to meet (including target population, statistics, example)
Provides a brief description of the project
Lists other prospective funders for the project
Includes thank you and next step to be taken
Does not exceed two pages (one page is recommended)
Includes name and phone number of contact at the organization
Is signed by the person who can speak with authority on behalf of the organization

Q2:  Common organization mistakes

1. Taking too long to get to the Point
2. Including irrelevant material
3. Organize Your Ideas
4. Getting ideas mixed up
5. Leaving out necessary information
Why Good Organization is Important
1. Saves Time and Work
2. Helps you delegate
3. Increases reader understanding
4. Makes reader more receptive to message
5. Saves readers tim