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. 2 Visual Programming (CS 411) opened on May 15, 2018 and due date of assignment submission will be May 22, 2018.

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

Problem Statement:

You are required to create a WPF application which will take Student’s data as input and save it in xml file, title must be your VUID:

Layout:

Create a grid Layout with two columns and 5 Rows and add all the elements in this according to the gif file provided.

Input:

Your application will have 4 textboxes for input fields along with labels:

  1. Name
  2. Student ID
  3. CGPA
  4. Semester

Two Buttons

  1. Save (This button will save data into XML file)
  2. Reset (This button will reset all the textboxes)

Clicking Save button will save the data of text boxes into xml file, the file name of .xml file will be your VU ID.xml, for example if your VUID is bc150401234 then file name must be bc150401234.xml.

Please Note that new record must be inserted after existing records if any record exists in the file. Below is the xml file template (this is just example you can change xml file format according to requirements)

<xml>

<data id=”bc150201234” name=”Bilal Umar” cgpa=”3.49” semester=”7”/>

<data id=”bc160204512” name=”Muhammad Tahir” cgpa=”3.1” semester=”5”/>

 

</xml>

Write your own VU id and Name in the application name and id fields while creating .gif file, otherwise your assignment will not be accepted.

 

 

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

·         .XAML File (Front End file)

·         .XML  Data file (named as your (VU ID).xml)

·         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 three files from project folder. Please note if you submit doc file you will be awarded 0 marks.


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

Attachments:

Replies to This Discussion

Please help any person have this solution 

guys please share the solution

Cs411_Assignment #2 Solution Idea,

Here is the hint for the solution,dont ask me to complete assignment for you !
public class information
{
private string txtdata1;
private string txtdata2;
private string txtdata3;
private string txtdata4;

public string StudentName
{
get { return txtdata1; }
set { txtdata1 = value; }
}

public string StudentID
{
get { return txtdata2; }
set { txtdata2 = value; }
}

public string StudentCGPA
{
get { return txtdata3; }
set { txtdata3 = value; }
}

public string StudentSemester
{
get { return txtdata4; }
set { txtdata4 = value; }
}

}
}

Attachments:

Sir plz guide me where is the problems in this code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.xml.linq;
using System.IO;

namespace BS150201907
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}

private void buttonsave_Click(object sender, RoutedEventArgs e)
{
xdocument xdoc;
string myfile = "bs150201907.xml";
if (!File.Exists(myfile))
{
xdoc = new xdocument(new xelement("xml"));

xdoc.save(myfile);
}
xdoc = xdocument.load(myfile);

xdoc.element("xml").Add(new Xelement("data", new xattribute("name", textboxname.text),
new xattribute("student id", textboxstudentid.text),
new xattribute("cgpa", textboxcgpa.text),
new xattribute("semester", textboxsemester.text),
));
xdoc.save(myfile);
messagebox.show("Data Saved Successfully!");
}

private void buttonreset_Click(object sender, RoutedEventArgs e)
{

}
}
}

This is only hint to make a WPF page (Interface), the XML connection of this interface is to be created in Visual Studio as dummy database...
First u have to create the WPF page with required text boxes after that u have to make data binding serialization with xml file....

Kindly will you share solution video ??

meri exe file nhi ban rhi :( 

https://youtu.be/VccARGU2RHw 

complete solution 

RSS

Latest Activity

shifa arshad added a discussion to the group CS605 Software Engineering-II
16 minutes ago
shifa arshad joined +M.Tariq Malik's group
19 minutes ago
Profile Iconиαвєєℓ αнмє∂ and Ali Fahad joined +M.Tariq Malik's group
1 hour 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
2 hours ago
shifa arshad joined +M.Tariq Malik's group
2 hours ago
+ !! SARAH replied to Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
3 hours ago
+ ᴄᴏғғᴇᴇ updated their profile
3 hours ago
Rizwan Mushtaq joined +M.Tariq Malik's group
3 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** My Drawing ***
4 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
4 hours ago
Arooj Shahid liked Miss. Churhail's discussion LOVE YOUR LIFE!!!!!
4 hours ago
Arooj Shahid liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
4 hours ago
Arooj Shahid liked Omar's discussion Dua
4 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
5 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
5 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT201 Financial Management GDB No 01 Fall 2020 Solution / Discussion in the group MGT201 Financial Management
5 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT201 Financial Management GDB No 01 Fall 2020 Solution / Discussion in the group MGT201 Financial Management
5 hours ago
Profile IconSaba Shahzadi, waqar, Hammad Syed and 12 more joined Virtual University of Pakistan
5 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion ENG001 Elementary English GDB No 01 Fall 2020 Solution / Discussion Last Date: 04-12-2020 in the group ENG001 Elementary English
5 hours ago
Miss. Churhail liked Omar's discussion Dua
6 hours ago

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

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

.