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...
Step by step
Solved in 3 steps with 1 images