Problem Statement - Value modification function of 1 D array using slab based conditions
Write the definition of a function FixPay(float Pay[], int N) in C++, which should
modify each element of the array Pay having N elements, as per the following
rules:
Existing Value of Pay | Pay to be changed to |
---|---|
If less than 100000 | Add 25% in the existing value |
If >=100000 and <20000 | Add 20% in the existing value |
If >=200000 | Add 15% in the existing value |
Solution
CSKC| Created: 10-Jan-2019 | Updated: 1-Apr-2019|CBSE12D-2016