Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions

Question

Were all members comfortable brainstorming in front of each other?

Answered: 1 week ago

Question

5. What information would the team members need?

Answered: 1 week ago