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

+ M.Tariq Malik replied to +¢αяєℓєѕѕ gιяℓ's discussion CS202 - Fundamentals of Front End Development Assignments No. 1 Due Date Nov 14, 2019 in the group CS202 Fundamentals of Front End Development
2 minutes ago
+ M.Tariq Malik replied to +¢αяєℓєѕѕ gιяℓ's discussion CS202 - Fundamentals of Front End Development Assignments No. 1 Due Date Nov 14, 2019 in the group CS202 Fundamentals of Front End Development
3 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MGT211 GDB Fall 2019 Solution & Discussion in the group MGT211 Introduction To Business
4 minutes ago
Mian Ali added a discussion to the group MCM520 Contemporary Mass Media
8 minutes ago
Mian Ali joined + M.Tariq Malik's group
10 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion EDU302 Human Development and Learning Assignment No 01 Fall 2019 Solution & Discussion in the group EDU302 Human Development and Learning
10 minutes ago
Profile IconMian Ali, Muhammad Daniyal and Usman Mughal joined + M.Tariq Malik's group
13 minutes ago
+ M.Tariq Malik 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
13 minutes ago
+ !! SARAH replied to Rana Ali's discussion Tell some words in the Shan of Hazart Muhammad (S.A.W)
15 minutes ago
Hiba Sani joined + M.Tariq Malik's group
17 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion MTH301 Calculus II GDB Fall 2019 Solution & Discussion
18 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH301 Calculus II GDB Fall 2019 Solution & Discussion in the group MTH301 Calculus II
18 minutes ago
+ M.Tariq Malik added a discussion to the group MTH301 Calculus II
20 minutes ago
Preçîõûš replied to + M.Tariq Malik's discussion MGT101 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 13-11-2019 in the group MGT101 Financial Accounting
21 minutes ago
Hiba Sani replied to + M.Tariq Malik's discussion CS401 Assignment No 01 Fall 2019 Solution & Discussion in the group CS401 Computer Architecture and Assembly Language Programming
22 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion BIO201 Basic Cell Biology Assignment No 01 Fall 2019 Solution & Discussion in the group BIO201 Basic Cell Biology
23 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion BIO201 Basic Cell Biology Assignment No 01 Fall 2019 Solution & Discussion
24 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion BIO202 Biochemistry-I Assignment No 01 Fall 2019 Solution & Discussion in the group BIO202 Biochemistry-I
24 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion BIO202 Biochemistry-I Assignment No 01 Fall 2019 Solution & Discussion
24 minutes ago
+ M.Tariq Malik added a discussion to the group BIO201 Basic Cell Biology
24 minutes ago

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

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