Table (A) shows the individual incom assessment year 2020. If Open with Table (A): Income tax rates assessment year 2020 P510 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) ded Materia 5,001 – 20,000 150 150 20,001 – 35,000 3 Record 450 600 1,200 35,001 – 50,000 8 nswer EXercis 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). erials 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 ESTY. 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 prograPage imey 2 Q +
Types of Loop
Loops are the elements of programming in which a part of code is repeated a particular number of times. Loop executes the series of statements many times till the conditional statement becomes false.
Loops
Any task which is repeated more than one time is called a loop. Basically, loops can be divided into three types as while, do-while and for loop. There are so many programming languages like C, C++, JAVA, PYTHON, and many more where looping statements can be used for repetitive execution.
While Loop
Loop is a feature in the programming language. It helps us to execute a set of instructions regularly. The block of code executes until some conditions provided within that Loop are true.
can you help me to code this want. It's free right...
![A Midterm Test
DCP5101_TEST.pdf
C Program to Calcula X
O c program If user ent X
M Qistina, FREE homew X
b My Questions | bartle x
+
A classroom.google.com/u/0/w/MTcyMjAyOTMxNzY4/tc/MjU5NDQ4MjMwMjcz
W
Table (A) shows the individual income tax rates for assessment year 2020.
Open with
PDF DCP5101_TEST.pdf
Tri 2 2020/2021
Table (A): Income tax rates assessment year 2020
About DCP510
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)
uded
Lecture Materia
5,001 – 20,000
1
150
150
450
Lecture Record
20,001 – 35,000
3
600
35,001 – 50,000
8
Answer
1,200
Lecture Exercis
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).
Lab Materials
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
ESTY...
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 progra
a for 3
Page
imes
+
...](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F894a3222-21c0-4f01-9161-8a3254a6fadc%2F4c2f0dfb-d50e-45f3-9952-88e0c858ed4c%2Fj69vvd_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)