Question
C++ Help needed, the part I need help with is in bold italic towards bottom of example, it is commented out. #include using namespace std;
C++ Help needed, the part I need help with is in bold italic towards bottom of example, it is commented out.
#include
using namespace std; //Function prototype double taxCalc(double inco, char filing);
const int tax[7] ={10,12,22,24,32,35,37}; const int taxBracket[4][6]= {{9700,39475,84200,160725,204100,510300}, {19400,78950,168400,321450,408200,612350}, {9700,39475,84200,160725,204100,306175}, {13850,52850,84200,160700,204100,510300}}; int main(void){
char filingStatus; double income; cout<<"Enter the filing status "<< "Press S for Single "<< "Press M for Married Filing Jointly "<< "Press F for Married Filing Seperately "<< "Press H for Head of Household "; cin>>filingStatus; cout<<"Enter the taxable income for the year 2019 "; cin>>income; //Part A) Your code to determine the filing status and the taxBracket //Part B) Call taxCalc function to calculate the tax return 0; }
double taxCalc(double inco, char filing){ //Part C) Your code to calculate the tax goes here }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started