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)

(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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!