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

CS304 Assignment No 03 Spring 2019 Solution & Discussion

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

.

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

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.

 

“How to Join Subject Study Groups & Get Helping Material”

 

P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

 

Share below link with friends for solution & Discussion. A Single link for help in your education.

http://bit.ly/vucodes

 

Site Overview | Assignment Solutions | Past Papers |Site Features

cs304 ki assignment no 3 ka solution upload kar dein sir

CS304 Assignment 03 Spring 2019 Solution.cpp

CS304 Assignment 03 Spring 2019 Solution.cpp

*****************

SAFA  

Email, cell no, facebook personal links, links sharing for promotion any kind of site & youtube direct link sharing is not allowed at the site.

 

Although If you want to share the youtube video, then paste the embed codes here of the youtube video. Otherwise your comment / reply will be deleted. As well as your account will be deleted from the site. Thanks for understanding.

CS304 Assignment No 03 Solution Spring 2019

Below link 

CS304 Assignment No 03 Solution Spring 2019

 #include<iostream>
#include<cstring>
#include<cstdlib>

using namespace std;
class TaxPayer
{
char *Name, *filer;
double property_Value;
public:
~TaxPayer()
{
delete []Name;
delete []filer;
}
TaxPayer(char *Name, double property_Value, char *filer)
{
int length = strlen(Name);

this->Name = new char[length+1];
strcpy(this->Name, Name);

length = strlen(filer);
this->filer = new char[length+1];
strcpy(this->filer, filer);

this->property_Value = property_Value;
}
double GetPropertyValue()
{ return property_Value; }
double GetAdvanceIncomeTax()
{
double incomeTax=0.0;
if(strcmp(filer, "Filer")==0)
incomeTax = property_Value * 0.02;
else
incomeTax = property_Value * 0.04;

return incomeTax;
}
virtual void TaxPayerInfo()
{
cout"Tax Payer Name: "Nameendl;
cout"Property Value: "property_Valueendl;
}
virtual void Calculate_Total_Tax()=0;
};
class Seller:public TaxPayer
{
double CapitalGainTax, Property_Purchase_Price, profit, TotalTax;
int soldyear;
public:
Seller(char *Name, double property_Value, double Property_Purchase_Price, char *filer, int soldyear):TaxPayer(Name, property_Value, filer)
{
this->Property_Purchase_Price = Property_Purchase_Price;
this->soldyear = soldyear;
}
double Calculate_CGT()
{
if(soldyear <=3 && soldyear>0)
{
profit=GetPropertyValue() - Property_Purchase_Price;
switch(soldyear)
{
case 1:
{
CapitalGainTax=profit * 0.10;
break;
}
case 2:
{
CapitalGainTax=profit * 0.075;
break;
}
default:
{
CapitalGainTax=profit * 0.05;
break;
}
}
return CapitalGainTax;
}
}
virtual void Calculate_Total_Tax()
{
TotalTax=GetAdvanceIncomeTax() + Calculate_CGT();
cout"Seller Tax"endl"----------"endlendl;
TaxPayerInfo();
cout"Sold Year: "soldyearendl;
cout"Income Tax: "GetAdvanceIncomeTax()endl;
cout"Capital Gain Tax: "CapitalGainTaxendl;
cout"Total Tax of Seller: "TotalTaxendl;
}
};
class Purchaser:public TaxPayer
{
double CapitalValueTax, Stamp_duty, TotalTax;
public:
Purchaser(char *Name, double property_Value, char *filer):TaxPayer(Name, property_Value, filer)
{}
virtual void Calculate_Total_Tax()
{
double value=GetPropertyValue();

CapitalValueTax=value * 0.03;
Stamp_duty=value *0.02;
TotalTax=GetAdvanceIncomeTax() + CapitalValueTax + Stamp_duty;
cout"\nPurchaser Tax"endl"-------------"endlendl;
TaxPayerInfo();
cout"Capital Value Tax: "CapitalValueTaxendl;
cout"Stamp Duty: "Stamp_dutyendl;
cout"Income Tax: "GetAdvanceIncomeTax()endl;
cout"Total Tax of Purchaser: "TotalTaxendl;
}
};

int main()
{
Seller seller((char*)"Kamran", 500000, 300000, (char*)"Filer", 2);
Purchaser purchaser((char*)"Bilal", 500000, (char*)"Non-Filer");
TaxPayer *obj[2];

obj[0]=&seller;
obj[1]=&purchaser;
for(int i=0; i<2; i++)
obj[i]->Calculate_Total_Tax();

system("pause");
}

RSS

Latest Activity

彡JK彡 ❤️ liked + M.Tariq Malik's discussion Everyone Freelancer Must Watch it - Most important video for Every fiver user
22 minutes ago
彡JK彡 ❤️ replied to +¢αяєℓєѕѕ gιяℓ's discussion Mera tu Mohabbat se aitbar.............:-P
23 minutes ago
彡JK彡 ❤️ liked +¢αяєℓєѕѕ gιяℓ's discussion Mera tu Mohabbat se aitbar.............:-P
24 minutes ago
彡JK彡 ❤️ replied to ٹمبکٹو's discussion محبّت اور دل - عشق مجازی
25 minutes ago
彡JK彡 ❤️ liked ٹمبکٹو's discussion محبّت اور دل - عشق مجازی
25 minutes ago
فقیہہ اقدس liked ٹمبکٹو's discussion محبّت اور دل - عشق مجازی
1 hour ago
Choudary Nafees Ejaz commented on + M.Tariq Malik's group STAT404 Regression and Correlation
3 hours ago
Choudary Nafees Ejaz joined + M.Tariq Malik's group
4 hours ago
Choudary Nafees Ejaz liked + M.Tariq Malik's group STAT404 Regression and Correlation
4 hours ago
MUHAMMAD KASHIF replied to + M.Tariq Malik's discussion ENG506 World Englishes Assignment No 01 Fall 2019 Solution & Discussion in the group ENG506 World Englishes
6 hours ago
MUHAMMAD KASHIF joined + M.Tariq Malik's group
6 hours ago
+ M.Tariq Malik replied to ayesha's discussion CS614 Assignment NO.1 Fall 2019 Solution&Discussion Due date: 14 Nov 2019 in the group CS614 Data Warehousing
6 hours ago
+ M.Tariq Malik replied to ayesha's discussion CS614 Assignment NO.1 Fall 2019 Solution&Discussion Due date: 14 Nov 2019 in the group CS614 Data Warehousing
6 hours ago
Profile IconKhadija Naveed, Muhammad Abdullah, maha khan and 6 more joined Virtual University of Pakistan
6 hours ago
MUHAMMAD KASHIF replied to + M.Tariq Malik's discussion ENG505 Language Learning Theories Assignment No 01 Fall 2019 Solution & Discussion in the group ENG505 Language Learning Theories
6 hours ago
MUHAMMAD KASHIF joined + M.Tariq Malik's group
6 hours 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
6 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion PAK301 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 21-11-2019 in the group PAK301 Pakistan Studies
6 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion PAK301 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 21-11-2019 in the group PAK301 Pakistan Studies
6 hours ago
+ M.Tariq Malik replied to Rana Ali's discussion EDU201 Learning Theories Assignment No 01 Fall 2019 Solution & Discussion in the group EDU201 Learning Theories
6 hours ago

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

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