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


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

CS411 Visual Programming_ Assignment No. 01,Solution & Discussion, Due Date: 27 May 2015

Solution of Assignment No. 01
Semester: Spring 2015
Visual Programming-CS411


Total Marks: 20


Due Date: 27/May/2015


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


To build the programming practices in C# environment.

For any query about the assignment, contact at cs411@vu.edu.pk

Assignment Questions

How to solve the assignment:

Make error free required program in C# with console application and check the output of your program. Copy the source code from C# editor and paste it in a power point slides. Then take a screen shot of your output window and paste it in another slide as shown in SampleAssignment here:



After making the required slides you have to record your voice explaining the required program with your code and output. Save the file as explained in the following tutorials. Down load the following tutorial that explains how to record your voice in ppt slides.







Upload .ppt (power point) file only. Do not upload any zipped file with multiple files. Zipped files or source code files will be marked zero.

Question:                                                                                                                                                              Marks 20     


Write a c# program to declares a struct with three members: a property, a method, and a private field. It creates an instance of the struct and puts it to use. The output of this program should be the last two digits of your student ID.




+ 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: 5436


Replies to This Discussion

i have core i5 but it have been installing for an hour... afer instalation what will i do do i write code on this i know about php,.net,and c++ but don't knw about C#

to display last two digit

int a = 123456778 int 
b = a % 100
Console.WriteLine("b: ",b);

Output :
b = 78

78 is not displayed why

using system;
using system,collection.Generic;
using system.Ling;
using system.Text;
using system.Treading.Tasks;
namespace cs411_VisualPrograming
0 reference
class program
2 reference
Struct myStruct
private int showid;

1 reference

Public int id
get { return showid;}
set {showid "value; }

1 reference
public void DisplayID()
Console.WriteLine("My ID,s Last Two Digits are: {0}", showid);
0 reference

static void Main(string[]args)
myStruct st=new myStruct();

you have to write your full VU id , but system will show only last two digit only.

review your code again. 

ho b gi 

yeh code kis mai likna hy bhai ....guide me i will be thnx...

koi bta skta hai k yeh error kesay khatam hoga?

ap ny = nai likha... isy asy likhy..

set { showid=value;}

value ko "" m ni likhna...

ty now i have 0 errors 

Plz koi batay ga kesy solv hogi C++ mn hogi . agr koi aor software hy tu link post kr do plzz


Looking For Something? Search Below

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

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