Table (A) shows the individual income tax rates for assessment year 2020. Table (A): Income tax rates assessment year 2020 Chargeable Income (RM) 0- 5,000 Calculation (RM) On the First 5,000 On the First 5,000 Next 15,000 On the First 20,000 Next 15,000 On the First 35,000 Next 15,000 Rate % Тах (RM) 5,001 – 20,000 1 150 150 20,001 – 35,000 3 450 600 35,001 – 50,000 8 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). For example: Prem's chargeable income = RM30,000 (RM20,000 + RM10,000) Total tax = RM150 (for first RM20,000) + RM300 (3% x RM10,000) = RM450 The program will then display the result which is the total amount tax needed to be paid in Ringgit Malaysia (RM), up to three significant digits after the decimal point. 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) shows the individual income tax rates for assessment year 2020.
Table (A): Income tax rates assessment year 2020
Chargeable Income (RM)
0- 5,000
Calculation (RM)
On the First 5,000
On the First 5,000
Next 15,000
On the First 20,000
Rate %
Таx (RM)
5,001 – 20,000
1
150
150
20,001 – 35,000
3
Next 15,000
450
On the First 35,000
Next 15,000
600
35,001 – 50,000
8
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).
For example:
Prem's chargeable income = RM30,000 (RM20,000 + RM10,000)
Total tax = RM150 (for first RM20,000) + RM300 (3% x RM10,000) = RM450
The program will then display the result which is the total amount tax needed to be paid in
Ringgit Malaysia (RM), up to three significant digits after the decimal point.
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.
Transcribed Image Text:Table (A) shows the individual income tax rates for assessment year 2020. Table (A): Income tax rates assessment year 2020 Chargeable Income (RM) 0- 5,000 Calculation (RM) On the First 5,000 On the First 5,000 Next 15,000 On the First 20,000 Rate % Таx (RM) 5,001 – 20,000 1 150 150 20,001 – 35,000 3 Next 15,000 450 On the First 35,000 Next 15,000 600 35,001 – 50,000 8 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). For example: Prem's chargeable income = RM30,000 (RM20,000 + RM10,000) Total tax = RM150 (for first RM20,000) + RM300 (3% x RM10,000) = RM450 The program will then display the result which is the total amount tax needed to be paid in Ringgit Malaysia (RM), up to three significant digits after the decimal point. 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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 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