Helllo.
Im new to C++, i need your help to program a Property Tax Calculator.
Here is brief discription....plz help me out........many thanks!
Property Tax Calculator
The basic idea is that you will provide the information regarding property (commercial or residential), its market value and your program will calculate the tax.
Detailed Description:
1. The program should display
Please provide customer ID:
Please provide Property Description:
Enter R for Residential property:
Enter C for commercial property:
Then the program should take the input,
2. Depending upon the choice that user has entered, your program will further display the prompt
a. If user has entered R, then your program should prompt the user to enter the current market value of the property. After taking the input it should calculate the tax on that property and display it on the screen in following format,
-----------------------------------------------------------------
Property Type :
Property Value:
Tax amount:
-----------------------------------------------------------------
*Tax amount will be 20% of the property value in case of residential property.
b. If user has entered C, then your program should prompt the user to enter the current market value of the property. After taking the input it should calculate the tax on that property and display it on the screen in following format,
-----------------------------------------------------------------
Property Type :
Property Value:
Tax amount:
-----------------------------------------------------------------
*Tax amount will be 40% of the property value in case of commercial property.
c. If the user has entered any thing else then the R and C, your program should prompt the user to enter the correct choice.
Sample Output
Please Provide customer ID: 12345
Please Provide Property Description:
Enter R for Residential Property:
Enter C for commercial property:
C
Please enter market value of the property: 20000
-----------------------------------------------------------------
Property Type : Commercial property
Property Value: 20000
Tax amount: 8000
Your help would be appriciated....
8 Replies - 2639 Views - Last Post: 31 March 2009 - 04:00 AM
Replies To: I need help to program "Property Tax Calculator" ?
#2
Re: I need help to program "Property Tax Calculator" ?
Posted 30 March 2009 - 11:12 AM
Welcome!
Please post your code attempting solve your assignment. Don't forget to use the code tags:

[rules][/rules]
Please post your code attempting solve your assignment. Don't forget to use the code tags:
[rules][/rules]
#3
Re: I need help to program "Property Tax Calculator" ?
Posted 30 March 2009 - 11:23 AM
Hello thanks for quick reply.......
I am very beginner to c++, we just studied abt loops and arrays and we got this assignment work....so not have much programming idea to program it...so would you please write a code for me.....i would be thankfull..
I am very beginner to c++, we just studied abt loops and arrays and we got this assignment work....so not have much programming idea to program it...so would you please write a code for me.....i would be thankfull..
#4
Re: I need help to program "Property Tax Calculator" ?
Posted 30 March 2009 - 11:26 AM
#5
Re: I need help to program "Property Tax Calculator" ?
Posted 30 March 2009 - 01:13 PM
adii310, on 30 Mar, 2009 - 10:23 AM, said:
Hello thanks for quick reply.......
I am very beginner to c++, we just studied abt loops and arrays and we got this assignment work....so not have much programming idea to program it...so would you please write a code for me.....i would be thankfull..
I am very beginner to c++, we just studied abt loops and arrays and we got this assignment work....so not have much programming idea to program it...so would you please write a code for me.....i would be thankfull..
If you need help getting started on the assignment, I would suggest finding tutorials online for C++, or better yet, go to you instructor, they will be happy to help you. After you get a start, show us your progress, and we'd be happy to give pointers as well.
#6
Re: I need help to program "Property Tax Calculator" ?
Posted 31 March 2009 - 02:53 AM
Hello,
Thanks n8wxs & kruser for your replies....atleast i tried to program this property calculator and it is running gud and calculating the values properly
but
its not giving the error message if i entered wrong property type instead C and R. i tried to add other if and else but could not...so please check this code and add additionally code for error message to promt the user to enter correct property types. Simply
If the user has entered any thing else then the R and C, this program should prompt the user to enter the correct choice.
Here is the code:
You can see above to know in details about this Property calculator description.
Your help would be much appriciated.....many thanks.
Thanks n8wxs & kruser for your replies....atleast i tried to program this property calculator and it is running gud and calculating the values properly
but
its not giving the error message if i entered wrong property type instead C and R. i tried to add other if and else but could not...so please check this code and add additionally code for error message to promt the user to enter correct property types. Simply
If the user has entered any thing else then the R and C, this program should prompt the user to enter the correct choice.
Here is the code:
#include<iostream.h>
#include<conio.h>
main()
{
double customerid, taxamount;
int pvalue;
char ptype;
cout<<"Please Provide the customer ID: ";
cin>>customerid;
cout<<"Please Provide the Property Descripition"<<"\n";
cout<<"Enter 'R' for Residential Property: "<<"\n";
cout<<"Enter 'C' for commercial property: "<<"\n";
cin>>ptype;
if (ptype=='C')
{
cout<<"Please enter market value of the property: ";
cin>>pvalue;
taxamount= pvalue * 40 / 100;
cout<<"----------------------------------------------------------"<<"\n";
cout<<"Property Type: Comercial Property"<<"\n";
cout<<"Property Value: "<<pvalue<<"\n";
cout<<"Tax Amount: "<<taxamount<<"\n";
cout<<"----------------------------------------------------------"<<"\n";
}
if (ptype=='R')
{
cout<<"Please enter market value of the property: ";
cin>>pvalue;
taxamount= pvalue * 20 / 100;
cout<<"----------------------------------------------------------"<<"\n";
cout<<"Property Type: Residencial Property"<<"\n";
cout<<"Property Value: "<<pvalue<<"\n";
cout<<"Tax Amount: "<<taxamount<<"\n";
cout<<"----------------------------------------------------------"<<"\n";
}
system ("pause");
}
You can see above to know in details about this Property calculator description.
Your help would be much appriciated.....many thanks.
#7
Re: I need help to program "Property Tax Calculator" ?
Posted 31 March 2009 - 03:22 AM
adii310, on 31 Mar, 2009 - 01:53 AM, said:
its not giving the error message if i entered wrong property type instead C and R. i tried to add other if and else but could not...
Show us your attempts to add the error message so we can comment on them.
Since you have to keep presenting the options to the user you are going to need a loop of some kind to do that.
Give it a real try and show us what you can do.
While you are doing that:
1 - Correct your declaration of main() so that it is a function that returns int.
This is required for correct C++ coding.
2 - Review your include statements.
One of them should not have ".h" at the end.
3 - Go through your code and use correct indentation.
Your text book and school notes will show you how it should be done.
What you have presented above will hurt your teacher's eyes and get you poor marks.
This post has been edited by janotte: 31 March 2009 - 03:23 AM
#8
Re: I need help to program "Property Tax Calculator" ?
Posted 31 March 2009 - 03:56 AM
thats what im asking for........i could not add the code to get error message...would any one of you plz do this for me n can add code in my coding ????
thnks
thnks
#9
Re: I need help to program "Property Tax Calculator" ?
Posted 31 March 2009 - 04:00 AM
adii310, on 31 Mar, 2009 - 02:56 AM, said:
thats what im asking for........i could not add the code to get error message...would any one of you plz do this for me n can add code in my coding ????
thnks
thnks
No.
We will help you but we will not do your homework for you.
See posting rule 1 and have a look at your school's rules about plagiarism.
If we write the code for you and you tell the truth you will fail.
If you lie about it and get caught you will fail.
We don't want you to fail.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote






|