We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

Visual Programming (CS411) Assignment # 2 (GRADED) ......... Deadline Date = 10/12/2015

Visual Programming (CS411)

Assignment # 2 (GRADED)

Total marks = 20

                                                                                       Deadline Date = 10/12/2015

Please carefully read the following instructions before attempting the assignment.

Rules for Marking

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.

 

1)      You should consult recommended books to clarify your concepts as handouts are not sufficient.

2)      You are supposed to submit your complete solution project as a single file (i. e. zip or RAR). Any other formats like scan images, PDF, bmp, docx etc. will not be accepted.

3)      You are advised to upload your assignment at least two days before Due date.

 

Important Note:

Assignment comprises of 20 Marks. Note that no assignment will be accepted after due date via email in any case (whether it is the case of load shedding or emergency electric failure or internet malfunctioning etc.). Hence, refrain from uploading assignment in the last hour of the deadline, and try to upload Solutions at least 02 days before the deadline to avoid inconvenience later on.

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

Question:

You are required to implement a Simple Salary Reader System (SSRS). The name and salary of different people is given in the attached XML file. Write a console based application with following requirements:

Program will take name of a person as input. It will then read the XML file to search the said person. If person is found, its salary will be read from the file and displayed on console as shown in output window given below. However, if person is not found, system will display “Person not found” message.

To Read XMLSalaries file from the project folder, you can use following statement:

string Dir = System.IO.Path.GetFullPath(@"..\..\..\");

The above statement will return the path of your project folder (the folder containing XMLSalaries.xml file). So, in above case “Dir” variable will contain “E:\\SalaryReader\\”. Now you can append name of the file (i.e. XMLSalaries.xml) with “Dir” variable and read it.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 6075

.

+ 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)

Attachments:

Replies to This Discussion

Same problem here. Please anyone can guide us?

Dear write this code.

Console.WriteLine("Salary of " + personName + " = " + reader.GetAttribute("CurrentSalary"));

Console.ReadKey();

return;

instead of this code.

Console.WriteLine("Salary of " + personName + " = " + reader.GetAttribute("CurrentSalary"));

thanks Alot

Thanks Bud Solved my Problem :)

is code main else statement missing hy

either use else statement or if not statement at 3rd last line

i think here is need exception handling code.

apke cout main oops likha hai tu wo display b hu ra hai wahan code main cout statement senikalin gay oops tu chala jai ga

Dear fellows this is just idea for our assignment. do changes according to assignment.

Using System;

Using System.Text;

Using System.Xml;
Namespace parsingxml

{

Class Program

{

Static void Main(string[] args)

{

Xmlreader xmlreader = xmlreader.Create("http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml");

While (xmlreader.Read())

{

If ((xmlreader.nodetype == xmlnodetype.Element) && (xmlreader.Name == "Cube"))

{

If (xmlreader.hasattributes) Console.writeline(xmlreader.getattribute("currency") + ": " + xmlreader.getattribute("rate"));

}

}

Console.readkey();

}

umar bhai kindly guide us more

how to read xml file watch this video.

https://www.youtube.com/watch?v=-DwANN5_BoE

meiny XML k ander 2 persons add kiay hein, 

mein program run krta hn or "Riaz" input daita hn to Both persons ka name and values print hojati hein...... any idea Guys?

kindly koi solution upload krdy... mein program bar bar crash kr ra hai 

RSS

Latest Activity

+ M.Tariq Malik replied to MIT's discussion Operating Systems(CS604) Assignment # 01 Deadline Date 16-11-2019 in the group CS604 Operating Systems
9 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS609 Assignment No 01 Fall 2019 Solution & Discussion in the group CS609 System Programming
9 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS603 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 11-11-2019 in the group CS603 Software Architecture and Design
13 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS201 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group CS201 Introduction to Programming
15 minutes ago
+ ! ❤️ ░S░I░N░G░E░R posted a discussion
15 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS615 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 12-11-2019 in the group CS615 Software Project Management
23 minutes ago
+ ! ! ! ! ! ! ! Ayesha +++ liked + ! ! ! ! ! ! maho+++'s blog post Muhammad Mustafa Aye Bahar Andar Bahar Aaye
28 minutes ago
+ ! ! ! ! ! ! ! Ayesha +++ liked + ! ! ! ! ! ! maho+++'s blog post Muhammad Mustafa Aye Bahar Andar Bahar Aaye
28 minutes ago
Adnan Hafeez replied to MIT's discussion Visual Programing (CS411) Assignment#01 Deadline Date = 18-11-2019 in the group CS411 Visual Programming
29 minutes ago
Adnan Hafeez joined + M.Tariq Malik's group
29 minutes ago
+ ! ! ! ! ! ! ! Ayesha +++ replied to + ! ! ! ! ! ! maho+++'s discussion ALLAH ki psnd
37 minutes ago
+ ! ! ! ! ! ! ! Ayesha +++ replied to + ! ! ! ! ! ! maho+++'s discussion WASEYAT RASOL PAK S.A.W.W
38 minutes ago
Profile IconJunaid Awan, Farheen Zanib, Ali Haider and 19 more joined Virtual University of Pakistan
42 minutes ago
Hamza - BCS (6th) replied to + M.Tariq Malik's discussion CS508 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 12-11-2019 in the group CS508 Modern Programming Languages
50 minutes ago
Profile IconHamza - BCS (6th) and Hassan Khan joined + M.Tariq Malik's group
50 minutes ago
Profile IconMUHAMMAD USMAN, Muhammad Aamir and Aini MCS joined + M.Tariq Malik's group
54 minutes ago
Muhammad Aamir liked + M.Tariq Malik's discussion CS301 Assignment No 01 Fall 2019 Solution & Discussion
1 hour ago
Profile IconAbdul Ghaffar and Umair ali joined + M.Tariq Malik's group
1 hour ago
Abdul Ghaffar liked + M.Tariq Malik's group ENG521 Language Classroom Management
1 hour ago
MUHAMMAD USMAN replied to MIT's discussion Operating Systems(CS604) Assignment # 01 Deadline Date 16-11-2019 in the group CS604 Operating Systems
1 hour ago

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

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