Computers and Technology, 23.10.2021 14:00, 91miketaylor
Problem: A manufacturing company has classified its executives into four levels for the benefits of certain perks. The levels and corresponding perks are shown below:
Perks
Level Conveyance Entertainment
allowance allowance
1 1000 500
2 750 200
3 500 100
4 250 -
An executive’s gross salary includes basic pay, house rent allowance at 25% of basic pay and other perks. Income tax is withheld from the salary on a percentage basis as follows:
Gross salary Tax Rate
Gross<=2000 No tax deduction
2000< Gross<=4000 3%
4000 Gross>5000 8%
Write a program that will read an executive’s job number, level number, and basic pay and then compute the net salary after withholding income tax.
Problem Analysis:
Gross salary=basic pay+ house rent allowance +perks
Net salary=Gross salary- income tax
The computations of perks depends on the level, while the income tax depends on the gross salary.
The major steps are Read data, calculate perks, calculate gross salary, calculate income tax, compute net salary and print the results.
How tomake it Visual Basic in Visual studio?
Answers: 1
Computers and Technology, 25.06.2019 05:10, Joosee4075
Create a console project in c#. 1. create an interface "imyinterface. cs" - add a method "string imessage()" 2. create a class named "c1.cs" - add 4 private data members, create property for each data member double loanamnout=0.0; double years=0.0; double interests=0.0; double interestrate=0.0; 3. - add a constructor with parameters to assign values to loanamnout, years, interestrate with values that user entered. 4. - add one method “payinterests()” to return the interests interests = loanamnout * interestrate * years 5. - inheritate "imyinterface", implement the method " imessage()", return string "be ready! ” 6. in program. cs, have users to enter loanamnout, years, interestrate. - call method payinterests() to display total interests. - call imessage() to display "be ready! ”
Answers: 3
Problem: A manufacturing company has classified its executives into four levels for the benefits of...
Mathematics, 12.10.2019 20:30
Mathematics, 12.10.2019 20:30
Mathematics, 12.10.2019 20:30
Social Studies, 12.10.2019 20:30