§ Codeshould be properly aligned and well commented. § Followc/c++ rules while w
ID: 3610001 • Letter: #
Question
§ Codeshould be properly aligned and well commented.
§ Followc/c++ rules while writing variables names, function namesetc
§ Use onlydev-C++ for this assignment.
Assignment
Problem Statement: Property TaxCalculator
You are required to write a property taxcalculator. The basic idea is that you will provide the informationregarding property (commercial or residential), it’s marketvalue and your program will calculate the tax.
Detailed Description:
1. The program should display
Please providecustomer ID:
Please provideProperty Description:
Enter ‘R’ forResidential property:
Enter‘C’ for commercial property:
Then the programshould take the input,
2. Depending upon the choice that user has entered, your program will further display theprompt
a. If user has entered ‘R’, then your programshould prompt the user to enter the current marketvalue of the property. After taking the input itshould calculate the tax on that property anddisplay it on the screen in following format,
-----------------------------------------------------------------
PropertyType :
PropertyValue:
Taxamount:
-----------------------------------------------------------------
*Tax amount will be 20% of the property value incase of residential property.
b. If user has entered ‘C’, then your programshould prompt the user to enter the current marketvalue of the property. After taking the input itshould calculate the tax on that property anddisplay it on the screen in following format,
-----------------------------------------------------------------
PropertyType :
PropertyValue:
Taxamount:
-----------------------------------------------------------------
*Tax amount will be 40% of the property value incase of commercial property.
c. If the user has entered any thing else then the“R” and “C”, your program should prompt theuser to enter the correct choice.
Sample Output
Please Providecustomer ID: 12345
Please ProvideProperty Description:
Enter“R” for Residential Property:
Enter“C” for commercial property:
C
Please enter market value of theproperty: 20000
-----------------------------------------------------------------
PropertyType : Commercialproperty
PropertyValue: 20000
Taxamount: 8000
-----------------------------------------------------------------
§ Codeshould be properly aligned and well commented.
§ Followc/c++ rules while writing variables names, function namesetc
§ Use onlydev-C++ for this assignment.
Assignment
Problem Statement: Property TaxCalculator
You are required to write a property taxcalculator. The basic idea is that you will provide the informationregarding property (commercial or residential), it’s marketvalue and your program will calculate the tax.
Detailed Description:
1. The program should display
Please providecustomer ID:
Please provideProperty Description:
Enter ‘R’ forResidential property:
Enter‘C’ for commercial property:
Then the programshould take the input,
2. Depending upon the choice that user has entered, your program will further display theprompt
a. If user has entered ‘R’, then your programshould prompt the user to enter the current marketvalue of the property. After taking the input itshould calculate the tax on that property anddisplay it on the screen in following format,
-----------------------------------------------------------------
PropertyType :
PropertyValue:
Taxamount:
-----------------------------------------------------------------
*Tax amount will be 20% of the property value incase of residential property.
b. If user has entered ‘C’, then your programshould prompt the user to enter the current marketvalue of the property. After taking the input itshould calculate the tax on that property anddisplay it on the screen in following format,
-----------------------------------------------------------------
PropertyType :
PropertyValue:
Taxamount:
-----------------------------------------------------------------
*Tax amount will be 40% of the property value incase of commercial property.
c. If the user has entered any thing else then the“R” and “C”, your program should prompt theuser to enter the correct choice.
Sample Output
Please Providecustomer ID: 12345
Please ProvideProperty Description:
Enter“R” for Residential Property:
Enter“C” for commercial property:
C
Please enter market value of theproperty: 20000
-----------------------------------------------------------------
PropertyType : Commercialproperty
PropertyValue: 20000
Taxamount: 8000
-----------------------------------------------------------------
Explanation / Answer
please rate - thanks I leave commenting up to you. That way you have to go over theprogram and understand it. Any questions please send me aprivate message. The more you rate people, better change ofgetting your questions answered in the future #include using namespace std; int main() {char type; int id,value,tax; coutid; do{ coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.