We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

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: 331

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

## Latest Activity

Maria, Naureen, GOHAR-MEHMOOD and 11 more joined Virtual University of Pakistan
10 seconds ago
☆ Tina Solangi ☆ updated their profile
43 minutes ago
48 minutes ago
50 minutes ago

### ECO401 ONLINE QUIZ 1 FALL 2020

1 hour ago
Kamboh(zaheen o haseen) updated their profile
2 hours ago
Nabila joined +M.Tariq Malik's group

### MTH403 Calculus and Analytical Geometry – II

2 hours ago
3 hours ago
ᴍᴜʙᴀꜱʜɪʀ ♥ updated their profile
3 hours ago
+++!!zυηι кнαη(αм ¢у¢σ) updated their profile
5 hours ago
8 hours ago

### CS605 GDB Fall 2020 Solution / Discussion Due Date: 10-dec-2020

11 hours ago
shifa arshad joined +M.Tariq Malik's group

### CS605 Software Engineering-II

11 hours ago
иαвєєℓ αнмє∂ and Ali Fahad joined +M.Tariq Malik's group

### MGT503 Principles of Management

13 hours ago
14 hours ago
shifa arshad joined +M.Tariq Malik's group

### MGT502 Organizational Behavior

14 hours ago
15 hours ago
+ ᴄᴏғғᴇᴇ updated their profile
15 hours ago
Rizwan Mushtaq joined +M.Tariq Malik's group

### HRM626 Recruitment and selection

15 hours ago
Arooj Shahid liked 乇ﾒ-丂ｲひり3刀ｲ.'s discussion *** My Drawing ***
15 hours ago