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)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

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

Musawar Ahmed, Sumera Riaz, faju cs student and 19 more joined Virtual University of Pakistan
9 minutes ago
23 minutes ago
23 minutes ago
52 minutes ago
52 minutes ago
1 hour ago
Muhammad Azeem joined +M.Tariq Malik's group

### FIN625 Credit & Risk Management

1 hour ago
1 hour ago
Muhammad Azeem joined +M.Tariq Malik's group

### FIN624 Islamic Mode of Financing

1 hour ago
Kamboh (Graphic Designer) updated their profile
1 hour ago
Muhammad Azeem joined +M.Tariq Malik's group

### BNK603 Consumer Banking

1 hour ago
Aleeha joined +M.Tariq Malik's group

2 hours ago

1

2

3

## Looking For Something? Search Here

© 2020   Created by +M.Tariq Malik.   Powered by

.