Saturday, June 19, 2010

CS101 Ass Idea Sol

Idea Solution:-

Write an algorithm in pseudo code form for the following problem and also draw a Flow chart for the same problem statement (5+5)

There is a multinational company. In the company, there are deductions from the salary of the employee according to following rules:
i)  If salary is less than 10,000 then no tax deduction and 4% of salary will be deducted as Well-fare fund every month.
ii) If salary is more than 10,000 and less than 20,000 then 3% of salary as tax deduction and 6% of remaining salary as employee well-fare fund will be deducted every month.

iii) If salary is equal to or more than 20,000 then  5 % of the salary as tax deduction and 8% of remaining salary as employee well-fare fund  will be deducted every month .

Take salary input from user and after appropriate deduction show the net payable amount for month.
Using Loop structure calculate the total salary; paid tax and well fare fund of that particular employee for two years and display these values at end.  

Solution:-

Pseudo Code algorithm.
 
Salary = “A”
Tax deduction = “B”
Well fare fund = “C”
Repeat the cycle for 24 months.
If
{
A < 10,000 then B = 0 and C = 4% of A
Or
10,000 < A < 20,000 then B = 3% of A and C = 6% of (A – B)
Or
A > 20,000 then B = 5% of A & C = 8% of (A – B)
}
Repeat
Hence, Print
Salary after 2 Years
Tax deduction after 2 Years
Well fare fund deduction after 2 years

 Flow Chart



NOTE: - These Assignments OR Quiz are just for idea, so kindly don't copy it, after viewing it make your own. Thanks We always try our best to upload 100% correct solution BUT it is requested that you kindly review it before submission, please BEST OF LUCK, Thanks to those students those send me Assignments and quizzes. If you have any Assignment and quiz kindly send at jamilbookcenter@yahoo.com

No comments:

Post a Comment