I have the following question:
Write an algorithm that calculates a worker's salary. The user will be asked for the value of the hour worked, number of hours and the % discount of the INSS. At the end, print the worker's net salary.
I have the following question:
Write an algorithm that calculates a worker's salary. The user will be asked for the value of the hour worked, number of hours and the % discount of the INSS. At the end, print the worker's net salary.
In any mathematical calculation to use the "percentage" just follow the logic of Multiply the desired value by the number of the percentage divided by 100.
Example: 15% of 200.00: 200 * (15 / 100)
200 * 0,15
30,00
Can be applied to any language.
Same as any other language. Alias same in mathematics.
liquido <- valorTotal * (100 - descontoInss) / 100