Question: (i). Write an algorithm for hexadecimal to binary conversion (5 marks) Sample Input: 1516 Sample Output: 000101012 (ii). Write a python program to calculate income

(i). Write an algorithm for hexadecimal to binary conversion (5 marks) Sample Input: 1516 Sample Output: 000101012 (ii). Write a python program to calculate income tax for the given income by adhering to the below rules (5 marks) Sample Input: Taxable income Rate (in %) First $10,000 0 Next $10,000 10 The remaining 20 Sample Output: For example, suppose the taxable income is 45000 the income tax payable is 10000*0% + 10000*10% + 25000*20% = $6000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
