www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

CS411 visual programming Assignment No.1 solution& discussion Due date: 16 may 2019

                          Visual Programing (CS411)

Assignment#01_Spring2019 (GRADED)

  Total marks = 20

                                                                                       Deadline Date = 16th May 2019

Please carefully read the following instructions before attempting the assignment.

  • First of all listen to the video lectures.
  • After that consult recommended books to clarify your concepts as handouts are not sufficient.
  • You are advised to upload your assignment at least one days before Due date.
  • It should be clear that your assignment would not get any credit if:
  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • The assignment is copied. Note that strict action would be taken if the submitted assignment is copied from any other student. Both students will be punished severely.

 

You are required to create a C# Console application using Visual Studio.

Problem Statement:

  1. You are required to create 2 Classes named as Person and Student.
  2. Student class will be inherited form person class.
  3. Person class has a string attribute “name”
  4. Student class has two string type attribute “VUID” and “Degree Program Name”
  5. These two classes have default constructor and setter getter methods.
  6. Now create an new object in main method and get input from user to set all 3 attributes which reflect your own name and student ID
  7. Serialize the object and store it in xml file name BCxxxxxxx.xml

 

Output.gif has been attached with this Assignment file please observe this file carefully your program’s output must be like this output file.

Submission details

Following Files Must be submitted in a single zip or rar file.

·         .C# code file

·         A .gif file which shows working of your Application(For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)

You are not required to submit the complete project, only copy these files from project folder. Make sure to write your own VU ID in the assignment file(s) otherwise assignment will not be accepted.

If you do not submit any of the above mentioned file you will be awarded 0 Marks.

For any query please contact: CS411@vu.edu.pk

 

 


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

Attachments:

Replies to This Discussion

ma ny  code liga ha xml file be ban gai ha  lekain ye ju command prompt pa ju name,id aor degree enter karni hoti ye ni  hori  ye kaisy open hu  ki. ahsi file ni open hu rahi  ye kaisy  open hu gi

Solution:

using System;
using System.Text;
using System.Xml;
namespace Asignment1
{
public class Person
{
private string name;
public void setname(String sname)
{
this.name = sname;
}
public string getname()
{
return this.name;
}
}
public class Student : Person
{
private String VUID;
private string program;
public void setid(string sID)
{
this.VUID = sID;
}
public void setprogram(string sprog)
{
this.program = sprog;
}
public string getid()
{
return this.VUID;
}
public string getprogram()
{
return this.program;
}
}
class Program
{
static void Main(string[] args)
{
XmlWriter xmlWriter = XmlWriter.Create("students.xml");
Student s = new Student();
Console.Write("Enter Your Name:");
string name = Console.ReadLine();
Console.Write("Enter Your Student ID:");
string sid = Console.ReadLine();
Console.Write("Enter Your Degree Program:");
string prog = Console.ReadLine();
s.setname(name);
s.setid(sid);
xmlWriter.WriteStartDocument();
xmlWriter.WriteStartElement("Students");
xmlWriter.WriteStartElement("name");
xmlWriter.WriteString(s.getname());
xmlWriter.WriteEndElement();
xmlWriter.WriteStartElement("VUID");
xmlWriter.WriteString(s.getid());
xmlWriter.WriteEndElement();
xmlWriter.WriteStartElement("program");
xmlWriter.WriteString(s.getprogram());
xmlWriter.WriteString(s.getprogram());
xmlWriter.WriteEndElement();
xmlWriter.WriteEndDocument();
xmlWriter.Close();
Console.WriteLine("File Written Successfully!");
Console.ReadKey();
}
}
}

plz sir assignment bnany ka terika bta dain

plzz  upload solution file 

CS411 Assignment No 01 Solution Spring 2019

Attachments:

CS411-Assignment-1-Solution-Spring-2019

Attachments:

aoa bhai .gft file bana dain na kindly 

brother yeh sara code kahan paste kerna hhai
student ki class main k person ki
i have no idea

ye total code hy bro. just paste in program.cs window.. but there is some issue that it is not writing degree program

Sir! is me program print nhi ho rha

RSS

Looking For Something? Search Below

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

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

.