Course Solutions Uncategorized (Solved) : Ex 3 6 Points Write Program Asks Users Enter Salary Depending Upon Salary Value Calculate Q26323583 . . . .

(Solved) : Ex 3 6 Points Write Program Asks Users Enter Salary Depending Upon Salary Value Calculate Q26323583 . . . .

 

Ex-3 (6points):

Write a program that asks the usersto enter a salary.

Depending upon the salary value,calculate the tax using different tax rates (0.05, 0.10 or0.15).

You should declare the tax rates assymbolic constants.

If the salary is < $30,000

tax = salary * 0.05

print both salary and tax

If the salary is >= $30,000 and< $60,000

        tax = salary * 0.10

        print both salary andtax

If the salary is >= $60,000

        tax = salary * 0.15

        print both salary andtax

Expert Answer


An answer will be send to you shortly.

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post