Question: answer these using C++ 2. Write a program to compute the income tax due based upon a table. The table contains a salary range, base

 answer these using C++ 2. Write a program to compute the

answer these using C++

2. Write a program to compute the income tax due based upon a table. The table contains a salary range, base tax and excess percentage Salary 0.00-1499.99 Base Tax 0.00 1500.00-2999.99 225.00 3000.00-4999.99 465.00 5000.00-7999.99 825.00 8000.00-9999.99 985.00 Percent of Excess 15% 16% 18% 20% 25% Given a salary, determine which range the salary is in, compute the tax as the Base Tax plus the Percent of Excess times the difference between the salary and the lower end of the range. For example, if the salary was $3200,00, then the tax is computes as: 465+ (3200-3000)18 3. Read in a character value for gender, i.e., 'm', 'M', 'r, 'E, Depending upon the gender value, print out a message "Hello Mr. Smith" or Hello Ms, Smithi", Write a program using an if-else construct, also using the conditional operator in the cout statement. 4. Write a program to test if a year is a leap year. A year is a leap year i Year is divisible by 4 and not by 100 or year is divisible by 400. For example, 1900 is not a leap year, 1996 is a leap year, 2000 is a leap year 5. Redo the gender salutation program using the switch construct

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!