Net price is $40 , gross price is $50 and the tax is 25% . You perform a job and your gross pay is $50 . The income tax is 20% , so your net income is $50 – 20% = $50 – $10 = $40 .
Read moreWhat is a method’s signature?
Method signature is the set of attributes of a method that a compiler can use to identify the method . The attrbutes are: Method name, number of parameters, parameter type and order of parameters. Example of diferent method signatures: Foo() Foo(int) Foo(String) Foo(int, string) Foo(string, int)
Read moreHow do you write an algorithm for gross salary?
If basic_salary <= 10000 then, hra = basic_salary * 0.8 and da = basic_salary * 0.2 . Similarly check basic salary and compute hra and da accordingly. Calculate final gross salary using formula gross_salary = basic_salary + da + hra .
Read moreHow is net salary calculated in Java?
net salary= GS-income taxAlgorithm:
Read moreHow is basic salary calculated in Java?
By using the given formula gross_salary = [basic_salary + daily allowance + house_rent] we cand find the answer. By using the below code we can easily calculate the gross salary in java programing.
Read moreWhat’s the purpose of keyword new?
new is a Java keyword. It creates a Java object and allocates memory for it on the heap . new is also used for array creation, as arrays are also objects.
Read moreWhat are the types of methods in Java?
In Java, there are two types of methods:
Read more