In: Computer Science
Your task is to write a program in C or C++ that calculates the total amount of money a person has made over the last year. Your program will prompt the user for dollar amounts showing how much the user has made per job. Some users will have had more than one job, make sure your program allows for this. The program will print out the total made (all jobs) and will print out the federal and state taxes based on the total made. For this program, the federal tax will be 8.5% and the state tax will be 14.5%.
1)Use appropriate comments through out the program.
2)Create a header at the top showing the programmer, date of creation and class
3)Print out the source code, and 3 sample runs.
4)Make sure you insert appropriate instructions for the user.
Notes:
1)No negatives are allowed (negative income), check for this.
2)You may use any loop type you wish - be able to defend your choice.
Deliverables:
1)The source code of your completed, working program
2)3 sample runs of your program
Here is the answer for your question in C++ Programming Language.
Kindly upvote if you find the answer helpful.
##########################################################################
CODE :
/* using namespace std; int main(){ |
#######################################################################
SCREENSHOTS :
Please see the screenshots of the code below for the indentations of the code.
#######################################################
OUTPUT :
Any doubts regarding this can be explained with pleasure :)