PROGRAMMING QUESTION (20 MARKS) Question 1 (12m) 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 % Таx (RM) 5,001 – 20,000 1 150 150 450 600 1,200 20,001 – 35,000 3 35,001 – 50,000 8 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.

Fundamentals of Information Systems
8th Edition
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter4: Telecommunications And Networks
Section: Chapter Questions
Problem 14SAT
icon
Related questions
icon
Concept explainers
Question
100%

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).

Below Image : 

99 (121) WhatsAp X
MIDTERM TEST X
(12) Techlacart X
Write a comple X
Table (A) Show X
FREE Chegg Ar X
Ayzha Nyr u
often lyrics - G X
classroom.google.com/u/1/c/M TcyMjAyOTMxNzY4/a/MJU5NDM3NJE10TAY/details
Apps
New Tab
Bookmarks
Bayyinah TV
Netflix
YouTube
AK AnimeKisa
Discord
Gmail
29
Calendar
Classroom
MMU PORTAL
MMLS
246
DCP5101 PROGRAM DESIGN
PROGRAMMING QUESTION (20 MARKS)
Tri 2 2020/2021
Question 1 (12m)
INFORMATION & II
Table (A) shows the individual income tax rates for assessment year 2020.
rk as Done
- 30 hours Test
Table (A): Income tax rates assessment year 2020
Start: 29/1/2021
- End: 30/1/2021,
- 2 Programming
- Paste codes/scre
in the Answer She
- Convert Answer S
- Fill up the Honest
Таx (RM)
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 %
hts
5,001 – 20,000
1
150
150
vate comment.
20,001 – 35,000
3
450
600
35,001 – 50,000
8
IMPORTANT:
1,200
- Marks will be ded
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).
- Should you are un
Answer Sheet blan
- Any act of plagia
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
SUBMISSIONITEM
1) Source code (*
2) Answer Sheet (F
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.
10 class comm
RAZI B
miss i
Page
1 / 2
ATTENI
10:59 PM
DEV
e Type here to search
ENG
31
29/1/2021
...
+
Transcribed Image Text:99 (121) WhatsAp X MIDTERM TEST X (12) Techlacart X Write a comple X Table (A) Show X FREE Chegg Ar X Ayzha Nyr u often lyrics - G X classroom.google.com/u/1/c/M TcyMjAyOTMxNzY4/a/MJU5NDM3NJE10TAY/details Apps New Tab Bookmarks Bayyinah TV Netflix YouTube AK AnimeKisa Discord Gmail 29 Calendar Classroom MMU PORTAL MMLS 246 DCP5101 PROGRAM DESIGN PROGRAMMING QUESTION (20 MARKS) Tri 2 2020/2021 Question 1 (12m) INFORMATION & II Table (A) shows the individual income tax rates for assessment year 2020. rk as Done - 30 hours Test Table (A): Income tax rates assessment year 2020 Start: 29/1/2021 - End: 30/1/2021, - 2 Programming - Paste codes/scre in the Answer She - Convert Answer S - Fill up the Honest Таx (RM) 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 % hts 5,001 – 20,000 1 150 150 vate comment. 20,001 – 35,000 3 450 600 35,001 – 50,000 8 IMPORTANT: 1,200 - Marks will be ded 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). - Should you are un Answer Sheet blan - Any act of plagia 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 SUBMISSIONITEM 1) Source code (* 2) Answer Sheet (F 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. 10 class comm RAZI B miss i Page 1 / 2 ATTENI 10:59 PM DEV e Type here to search ENG 31 29/1/2021 ... +
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning