Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

image text in transcribed

(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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions