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


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

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: 1321

.

+ 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

Nayab replied to + M.Tariq Malik's discussion CS408 Assignment No 03 Fall 2019 Solution & Discussion Due Date: 20-01-2020 in the group CS408 Human Computer Interaction
21 minutes ago
Nayab replied to + M.Tariq Malik's discussion CS408 Assignment No 03 Fall 2019 Solution & Discussion Due Date: 20-01-2020 in the group CS408 Human Computer Interaction
24 minutes ago
Nayab replied to + M.Tariq Malik's discussion CS408 Assignment No 03 Fall 2019 Solution & Discussion Due Date: 20-01-2020 in the group CS408 Human Computer Interaction
25 minutes ago
Alone Struggler replied to + ! ! cuttiee ! ! +'s discussion kamayaaabi ka raaz
33 minutes ago
+ ! ! cuttiee ! ! + posted discussions
39 minutes ago
Zari replied to Zari's discussion CS504 Assignment No 03 Fall 2019 Solution & Discussion Due Date: 21-01-2020 in the group CS504 Software Engineering - I
42 minutes ago
+ ! ! Şĩɳℊℯℛ ⋆⭐️⋆ joined + M.Tariq Malik's group
42 minutes ago
+ ! ! cuttiee ! ! + replied to + ! ! cuttiee ! ! +'s discussion paisa
46 minutes ago
Alone Struggler posted discussions
47 minutes ago
Bint-e-Adam liked + ! ! ! ! QueeN ! ! ! ! +'s blog post ALLAH K KAREEEB JANAAA.
1 hour ago
✧Foodie✧ replied to + M.Tariq Malik's discussion ENG201 Assignment No 02 Fall 2019 Solution & Discussion in the group ENG201 Business and Technical English Writing
1 hour ago
+! ! " jOkeR " updated their profile
1 hour ago

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

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

.