www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

# Assignment No. 01 Semester: Fall 2014 Visual Programming-CS411

Assignment No. 01
Semester: Fall 2014
Visual Programming-CS411

 Instructions:                           Please read the following instructions carefully before submitting assignment: You will submit your assignment before or on due date on VU-LMS. Assignment should be completed by your own efforts it should not be copied from internet, handouts or books. You should submit your .doc File via assignment interface at VU-LMS. Assignment sent via Email will not be replied and accepted in any case. If the submitted assignment does not open or file is corrupt, it will not be marked. You will submit solution only in document (.doc or .docx) File. Objectives: To build the programming practices in C# environment. For any query about the assignment, contact at cs411@vu.edu.pk Assignment Questions Question 1:                                                                                                              Marks 10      Find the error in each of the following program segments and explain how the error can be corrected: a)      int g( ){             console.writeLine( “Inside method g”);             int h( ) {                         console.writeLine (“Inside method h”);             } } b)      int sum(int x, int y) {             int result;             result = x + y; } c)      int sum( int n) {             if ( n == 0)                         return 0;             else                         n + sum( n-1 ); } d)     void f( float a); {             float a;             console.writeLine( a ); } Question 2:                                                                                                      Marks 10   Write a program in C# in which you will declare a two-dimensional string array to store the first name and second name of five persons. Then print the all first and second name of each person in separate line by using the foreach loop.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Views: 334

### Replies to This Discussion

Share ur ideas plzzz

The persons who r expert in programming give ideas..

And if any1 have backup of visual studio 2012 thn share with me plzzzz

Any one share this assignment solution or hint to solve this assig?

TOday is last date any one solve this assignment ........................

1

2

3

4

5

## Latest Activity

33 seconds ago
1 minute ago
+ ⵑⵑ ӍᎥŞŞ ⲤһᵘʳһშᎥⵏ ⵑⵑ + liked Ammara Sabir's discussion !!!Real Love@@@
1 minute ago
+ ⵑⵑ ӍᎥŞŞ ⲤһᵘʳһშᎥⵏ ⵑⵑ + posted discussions
1 minute ago
Zoha n, Iqra, Mehran Yaqoob and 4 more joined Virtual University of Pakistan
4 minutes ago
Ammara Sabir posted discussions
24 minutes ago
29 minutes ago
29 minutes ago
Ammara Sabir liked Ammara Sabir's discussion @@@Happy Birthday Laila@@@
40 minutes ago
Heart attacker'++!! updated their profile
41 minutes ago