You are on page 1of 3

Total marks = 20

Visual Programming (CS411)


Deadline Date
Assignment # 01 18th May, 2021

Please carefully read the following instructions before attempting assignment.


RULES FOR MARKING
It should be clear that your assignment would not get any credit if:
 The assignment is submitted after the due date.
 The submitted assignment does not open or file is corrupt.
 Strict action will be taken if submitted solution is copied from any other student or from the
internet.

Lectures:

 Lectures 1 to 6 are covered in this assignment

NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load
shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of
deadline. It is recommended to upload solution file at least two days before its closing date.
If you people find any mistake or confusion in assignment (Question statement), please consult with your
instructor before the deadline. After the deadline no queries will be entertained in this regard.
For any query, feel free to email at: cs411@vu.edu.pk

(Marks 20)

Problem Statement:
You are required to create a C# Console application using Visual Studio.
Your code should be able to calculate Zakat for gold, silver and cash in hand separately while
using the concept of POLYMORPHISM.

 Your code should work in such a way that you need to create 3 classes, one parent
class and other two derived classes.
 The function that needs to be override would be of Zakat Calculation.
 For calculating Zakat for cash, you simple have to multiply your amount with 0.025,
if you want to calculate it for silver or gold, first you need to know the price of 1
ounce of silver and 1 tola gold in rupees respectively and then calculate zakat
afterwards.
 When you run your code, your code should ask to enter your vu id as an asset on
which zakat has to be calculated.
 After that, you will be given a choice as shown in the output of selecting whether the
entered asset is cash in hand, gold or silver.
 You should choose the category of your choice and screenshot it.

Required Output:

Note:
DO REMEMBER that you must use your VUID as an input in this program.

Submission details
Following Files Must be submitted in a single zip or rar file.
 .cs code file (file name should be your VUID)
 Screenshot of your output while running three of the conditions.
You are not required to submit the complete project, only copy required file from project
folder.
If you do not submit any of the above-mentioned file you will be awarded Marks partially.

“The End”

You might also like