+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
Solution of Assignment No. 01 |
Total Marks: 20
Due Date: 27/May/2015 |
|
Instructions: Please read the following instructions carefully before submitting assignment:
Objectives: 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: http://vulms.vu.edu.pk/Courses/CS411/Downloads/Solution-Template.ppt
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.
http://vulms.vu.edu.pk/Courses/CS411/Downloads/Audio%20Narration%20... OR http://vulms.vu.edu.pk/Courses/CS411/Downloads/Audio%20Narration%20...
Important: 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.
|
||
BEST OF LUCK |
Tags:
+ 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)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#
In given list which is easy and best install in Core i5 . Please reply me fast
Microsoft Visual Studio 2010 Pex Power Tools
Microsoft Visual Studio 2010 Service Pack 1
Microsoft Visual Studio 2010 Service Pack 1 SDK
Microsoft Visual Studio Team Explorer Everywhere 2010 Language Pack
Microsoft Visual Studio Team Foundation Server 2010 Service Pack 1
Microsoft Visual Studio 2010 Premium
Microsoft Visual Studio 2010 Ultimate
Microsoft Visual Studio 2010 Professional
Microsoft Visual Studio 2010 Visualization & Modeling Feature Pack
Microsoft Visual Studio 2010 Express
Microsoft Visual Studio 2010 Remote Debugger
Microsoft Visual Studio Team Foundation Server 2010
Microsoft Visual Studio 2010 Feature Pack 2
Microsoft Visual Studio Team Explorer Everywhere 2010
Microsoft Visual Studio 2010 Professional Caption Language Interface Pack
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();
st.id=56
st.DisplayID();
Console.ReadLine();
}
}
}
you have to write your full VU id , but system will show only last two digit only.
review your code again.
yeh code kis mai likna hy bhai ....guide me i will be thnx...
ap ny = nai likha... isy asy likhy..
set { showid=value;}
value ko "" m ni likhna...
Plz koi batay ga kesy solv hogi C++ mn hogi . agr koi aor software hy tu link post kr do plzz
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post