Table (A): Income tax rates assessment year 2020 Chargeable Income (101) Calculation (RM) Rate % 'lax (101) 0 — 5,000 On the First 5,000 0 0 5,001 — 20,000 On the First 5,000 Next 15,000   0 150 20,001 — 35,000 On the First 20,000 Next 15,000   150 450 35,001 — 50,000 On the First 35,000 Next 15,000 8 600 1,200   Write a complete C program to prompt the user to enter the total chargeable income (RM), and then calculate the tax based on the calculation given in Table (A). Requirements: - Apply one return value function, include parameter list if necessary - Apply one non-return value function, include parameter list if necessary - If user enter chargeable income that is out of range (refer to Table (A)), display an error message and ask user to re-enter the chargeable income. - Repeat the program for 3 times.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Table (A): Income tax rates assessment year 2020

Chargeable Income (101)

Calculation (RM)

Rate %

'lax (101)

0 — 5,000

On the First 5,000

0

0

5,001 — 20,000

On the First 5,000
Next 15,000

 

0
150

20,001 — 35,000

On the First 20,000
Next 15,000

 

150
450

35,001 — 50,000

On the First 35,000
Next 15,000

8

600
1,200

 

Write a complete C program to prompt the user to enter the total chargeable income (RM), and then calculate the tax based on the calculation given in Table (A).

Requirements:

- Apply one return value function, include parameter list if necessary

- Apply one non-return value function, include parameter list if necessary

- If user enter chargeable income that is out of range (refer to Table (A)), display an error message and ask user to re-enter the chargeable income.

- Repeat the program for 3 times.

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY