Question: need help in c++ here is my code and expected outputs 4.18 Lab: Calculate income tax Calculate income tax Using while loops. A program often






4.18 Lab: Calculate income tax Calculate income tax Using while loops. A program often needs to execute the same computations repeatedly. In this case imagine that the user is using the program to find out income tax information for several different incomes Write a program that repeatedly asks the user to enter an annual income, stopping when the user enters or less. For each annual income entered the program determines the tax rate for that income based upon the table below, and computes the tax to pay Incomec-20,000 105 Income100,000 401 Run the program with annual income amounts of 40000, 90000, and then 0. Use the exact text shown below for the output, where xxx is the actual values you compute: Annual income XXXX Tax ratei XXX Tax to payt XXXX Annual incomet XXXX Tax rate: **** Tax to pay: XXXX Run the program again with annual income amounts of 12000, 50000, and then 0 Run the program one more time with annual income amount 100000 and then For the next part of this lab you will need a copy of the code you developed for this part so be sure to make a coby that you can pastinto the programming window of the next part of the lab 4181:Lab Calculate income tax 0/80 main.cpp MacBook Air main.cpp Load default ten 1 #include bits/stdch.h> 2 using namespace std; 3 int maino 4 6 string INCOME PROMPT - " Enter annual income Co to exit): 7 int income; 8 double tax rate, tax_to_pay: 9 cout 109000) 40 41 tax rate 40: " 42 cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
