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

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

RSS

Latest Activity

Profile IconMaria, Naureen, GOHAR-MEHMOOD and 11 more joined Virtual University of Pakistan
10 seconds ago
☆ Tina Solangi ☆ updated their profile
43 minutes ago
Humaira Khadim replied to +M.Tariq Malik's discussion PSY404 Abnormal Psychology Assignment 01 Fall 2020 Solution / Discussion in the group PSY404 Abnormal Psychology
48 minutes ago
Humaira Khadim replied to +M.Tariq Malik's discussion PSY402 Experimental Psychology Assignment 01 Fall 2020 Solution / Discussion Due Date: 07-12-2020 in the group PSY402 Experimental Psychology
50 minutes ago
Ali Fahad posted a discussion
1 hour ago
Kamboh(zaheen o haseen) updated their profile
2 hours ago
Nabila joined +M.Tariq Malik's group
2 hours ago
Mifa Fadel liked +M.Tariq Malik's group SOC101 Introduction to Sociology
3 hours ago
ᴍᴜʙᴀꜱʜɪʀ ♥ updated their profile
3 hours ago
+++!!zυηι кнαη(αм ¢у¢σ) updated their profile
5 hours ago
Mifa Fadel liked +M.Tariq Malik's discussion SOC101 Introduction to Sociology Assignment 01 Fall 2020 Solution / Discussion
8 hours ago
shifa arshad added a discussion to the group CS605 Software Engineering-II
11 hours ago
shifa arshad joined +M.Tariq Malik's group
11 hours ago
Profile Iconиαвєєℓ αнмє∂ and Ali Fahad joined +M.Tariq Malik's group
13 hours ago
shifa arshad replied to +M.Tariq Malik's discussion MGT502 Organizational Behavior GDB No 01 Fall 2020 Solution / Discussion in the group MGT502 Organizational Behavior
14 hours ago
shifa arshad joined +M.Tariq Malik's group
14 hours ago
+ !! SARAH replied to Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
15 hours ago
+ ᴄᴏғғᴇᴇ updated their profile
15 hours ago
Rizwan Mushtaq joined +M.Tariq Malik's group
15 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** My Drawing ***
15 hours ago

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

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.