Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 1 Based on the following table, the percentage of tax is calculated based on the income of each individual taxpayer. Resident Status Annual Income
QUESTION 1 Based on the following table, the percentage of tax is calculated based on the income of each individual taxpayer. Resident Status Annual Income (RM) Tax Payable Resident (R) 0 - 20000 0% of the income 20001 - 50000 11 % of the income 50001 - 80000 11 % of the first RM50000 plus 15% of the remaining income Over 80001 11% of the first RM50000 plus 15% of the second RM30000 plus 20% of the remaining income Non-Resident (N) 0 - 50000 20 % of the income 50001 - 80000 20% of the first RM50000 plus 22% of the remaining income Over 80001 20% of the first RM50000 plus 22% of the second RM30000 plus 24% of the remaining income Write a complete C++ program to do the following tasks: Read input of resident status ('R' or 'N'), Display the appropriate message when the user enters an invalid input. Read input of the annual income from the user. Calculate and display the tax payable. Calculate and display the net income after deducting the tax payable. This process will continue until the user requests to stop (15 marks)
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