// This program calculates an employee's take home pay. #include  using namespace std; int main() { double salary = 1250.00; double stateTax; double federalTax; double numDependents = 2;...



// This program calculates an employee's take home pay.

#include 

using namespace std;

int main()

{

   double salary = 1250.00;

   double stateTax;

   double federalTax;

   double numDependents = 2;

   double dependentDeduction;

   double totalWithholding;

   double takeHomePay;



   // Calculate state tax here



   cout <><><>

   // Calculate federal tax here



   cout <><><>

   // Calculate dependent deduction here



   cout <><><>

   // Calculate total withholding here



   // Calculate take-home pay here



   cout <><><>

   cout <><><>

   return 0;

}


2 https://ng.cengage.com/static/nb/ui/evo/index.html?elSBN=9781337274609&snapshotld%3D2222814&id%3D10754605:<br>min v<br>CENGAGE MINDTAP<br>Understanding Sequential Statements in C++<br>ome<br>0 Understanding Sequential<br>Payroll.cpp<br>ses<br>Statements<br>1 // This program calc<br>og and Study Tools<br>2 #include <iostream><br>open in the code editor.<br>3 using namespace std;<br>4 int main()<br>her Offers<br>2. Variables have been declared and initialized for<br>cal Options<br>double salary<br>-12<br>you as needed, and the input and output<br>double stateTax;<br>ege Success Tips<br>statements have been written. Read the code<br>double federalTax;<br>carefully before you proceed to the next step.<br>double numDependent<br>eer Success Tips<br>double dependentDec<br>3. Write the C++ code needed to perform the<br>11<br>double totalwithhol<br>NDED FOR YOU<br>following:<br>12<br>double takeHomePay;<br>13<br>o Calculate state withholding tax ( stateTax ) at<br>14<br>/ Calculate state<br>15<br>6.5 percent<br>16<br>cout << State Tax<br>v Frontier of College<br>o Calculate federal withholding tax ( federalTax<br>17<br>/ Calculate federal<br>18<br>aics<br>) at 28.0 percent.<br>cout <<

Extracted text: 2 https://ng.cengage.com/static/nb/ui/evo/index.html?elSBN=9781337274609&snapshotld%3D2222814&id%3D10754605: min v CENGAGE MINDTAP Understanding Sequential Statements in C++ ome 0 Understanding Sequential Payroll.cpp ses Statements 1 // This program calc og and Study Tools 2 #include open in the code editor. 3 using namespace std; 4 int main() her Offers 2. Variables have been declared and initialized for cal Options double salary -12 you as needed, and the input and output double stateTax; ege Success Tips statements have been written. Read the code double federalTax; carefully before you proceed to the next step. double numDependent eer Success Tips double dependentDec 3. Write the C++ code needed to perform the 11 double totalwithhol NDED FOR YOU following: 12 double takeHomePay; 13 o Calculate state withholding tax ( stateTax ) at 14 / Calculate state 15 6.5 percent 16 cout < state="" tax="" v="" frontier="" of="" college="" o="" calculate="" federal="" withholding="" tax="" (="" federaltax="" 17="" calculate="" federal="" 18="" aics="" )="" at="" 28.0="" percent.="" cout=""><"federal tax="" o="" calculate="" dependent="" deductions="" (="" 20="" calculate="" depender="" elp="" dependentdeduction="" )="" at="" 2.5="" percent="" of="" the="" 22="" cout=""><"dependents: employee's="" salary="" for="" each="" dependent.="" calculate="" total="" wi="" sive="" feedback="" 2b="" o="" calculate="" total="" withholding="" (="" totalwithholding="" wcalculate="" take-home="" )as="" statetax+="" federaltax,="" +="" 26="" dependentdeduction.="" 27="" cout="">
https://ng.cengage.com/static/nb/ui/evo/index.html?elSBN=9781337274609&snapshotld%3D2222814&id3D107<br>CENGAGE MINDTAP<br>Understanding Sequential Statements in C++<br>Understanding Sequential<br>Payroll.cpp<br>1// This progra<br>三<br>Statements<br>2 #include <iosti<br>nd Study Tools<br>3 using namespace<br>4 int main()<br>ffers<br>Summary<br>5 {<br>double salar<br>otions<br>In this lab, you complete a C++ program with the<br>double stateT<br>provided data files. The program calculates the<br>uccess Tips<br>81<br>double federa<br>amount of tax withheld from an employee's weekly<br>double numDep<br>6.<br>uccess Tips<br>salary, the tax deduction to which the employee is<br>10<br>double depende<br>entitled for each dependent, and the employee's<br>11<br>double totalWi<br>OFOR YOU<br>12<br>double takeHom<br>take- home pay. The program output includes state<br>13<br>tax withheld, federal tax withheld, dependent tax<br>14<br>// Calculate s<br>deductions, salary, and take-home pay.<br>15<br>16<br>cout <<

Extracted text: https://ng.cengage.com/static/nb/ui/evo/index.html?elSBN=9781337274609&snapshotld%3D2222814&id3D107 CENGAGE MINDTAP Understanding Sequential Statements in C++ Understanding Sequential Payroll.cpp 1// This progra 三 Statements 2 #include < "state="" instructions="" 17="" calculate="" fe="" ntier="" of="" college="" 18="" 1.="" ensure="" the="" source="" code="" file="" named="" payroll.cpp="" is="" 19="" cout="">< "federal="" 20="" calculate="" dep="" open="" in="" the="" code="" editor.="" 21="" 22="" cout="">< "depender="" 2.="" variables="" have="" been="" declared="" and="" initialized="" for="" 23="" calculate="" tota="" eedback="" you="" as="" needed,="" and="" the="" input="" and="" output="" 24="" statements="" have="" been="" written.="" read="" the="" code="" 25="" calculate="" take="" 26="" carefully="" before="" you="" proceed="" to="" the="" next="" step.="" 27="" cout="">< "salary:="" 5="" 28="" cout="">< "take-home 3. write the c++ code needed to perform the 29 return 0; following: 30} 31 o calculate state withholding tax ( statetax ) at 6.5 percent o calculate federal withholding tax ( federaltax ) at 28.0 percent. o calculate dependent deductions ( dependentdeduction ) at 2.5 percent of the employee's salary for each dependent. o calculate total withholding ( totalwithholding as statetax + federaltax + cer "take-home="" 3.="" write="" the="" c++="" code="" needed="" to="" perform="" the="" 29="" return="" 0;="" following:="" 30}="" 31="" o="" calculate="" state="" withholding="" tax="" (="" statetax="" )="" at="" 6.5="" percent="" o="" calculate="" federal="" withholding="" tax="" (="" federaltax="" )="" at="" 28.0="" percent.="" o="" calculate="" dependent="" deductions="" (="" dependentdeduction="" )="" at="" 2.5="" percent="" of="" the="" employee's="" salary="" for="" each="" dependent.="" o="" calculate="" total="" withholding="" (="" totalwithholding="" as="" statetax="" +="" federaltax="" +="">
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here