This is my question
Can anyone this one for me
Tomorrow is my exam
Please
Attachments:
Answers
Answered by
3
Answer:
public class Employee {
String name;
float basicSalary;
Employee(String n, float bs) {
basicSalary = bs;
name = n;
}
float calculateSalary(float HRA) {
return basicSalary + (HRA * (1f / 2f));
}
public static void main(String[ ] args) {
Employee employee = new Employee("Om", 25_000);
System.out.println("Salary - ₹" + employee.calculateSalary(5_000));
}
}
Explanation:
here's your answer sis hope it helps you and last time i did not understood the answer properly but this time it is correct. hope it helps you
Answered by
35
Answer:
Ok, bye sis....
Good night....
Be happy always.
Take care.
Similar questions