You are on page 1of 2

Visual Programming (CS411)

Assignment#01 (GRADED)
Total marks = 20
Deadline Date = 06-12-2022

Please read all the instructions carefully before attempting the


assignment.

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.
 code files (Mainwindow.xaml and Mainwindow.xaml.cs)
 XML file (named as your (program VUid.xml)
 A .gif file which shows the execution of your Application. (For Recording .gif, a
software named Screentogif has been uploaded on VULMS in the download section of
this course , 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.

Living things are usually divided into five major categories i.e. Monera, Protista,
Fungi, Plantae and Animalia. These categories are also known as kingdoms. For the
sake of simplicity, lets assume that there are only three kingdoms of living organisms
on earth:

1 - Single Celled

2 - Animalia

3 - Plantae

By definition, Single Celled are the living things that survive alone in the
environment. While Animalia kingdom consists of multi-cell living things that have
characteristics of animals (unable to produce their own food by their own). Kingdom
Plantae is the multi cell living things that have characteristics of plants and able to
produce their own food.

Keeping in view the above discussion, you are now required to create a C# WPF
application application using Visual Studio with the following functional
requirements:
Create four classes named as:
1. LivingThings
2. SingleCell
3. Animalia
4. Plantae

LivingThings should be a parent class while other three classes should be derived
classes.

Your application will read the data from XML file related to these classes and update
the UI accordingly.

Create a test XML file with following three attributes of animal tag:

 Scientific Name of living organism


 General name
 Kingdom name

XML file’s structure is given below:

<animal ScientificName="Panthera leo"


Generalname="Lion" Kingdomname="Animalia"/>

Create two to three different XML files with different information.

Your application should fetch the data from XML file and then store the three parts of
information in three separate variables. Variable names should be meaningful and
represent the information being stored in it.

On the basis of scientific name of living thing, you have to create an object of
respective derived-class. Pass scientific name along with general name to the derived
class. And set the fields on the User interface accordingly.

UI will have two text boxes for Scientific and General name and one combo box for
Kingdom name. Combo box will have all three kingdom name and once XML file is
read successfully then the correct kingdom name will be set.

You might also like