Write a java program to input basic salary of an employee and calculate its gross salary. Let us assume some parameters.
Write a java program to input basic salary of an employee and calculate its gross salary. Calculate the bonus and add it to the actual salary to find the Question: Exercise 1 - Calculate the Gross Salary of the worker Exercise Objectives Using simple input and output statements Using selection structure Problem Description Create a project named "Lab4Ext". Gross Pay = Basic Pay + Dearness Allowance + House Rent Allowance Net Pay = Gross Pay - Provident Fund In this programme you will learn about how to Calculate the Gross salary of an employee. Below is the list of approaches that we will cover in this section: The basic salary is taken as input from the user. 8600 DA = 20% of Salary HRA = 10% of Salary CTA = 12% of the Salary. Write a program to calculate his gross salary. May 17, 2025 · Write a Java program to create a class called "Employee" with a name, job title, and salary attributes, and methods to calculate and update salary. Calculate the gross salary using the above given mathematical formula and store it in another variable. This guide will show how to use Java … Java 8 Program to Calculate Salary of an Feb 11, 2025 · C program to input the basic salary of an employee and calculate its Gross salary by using the if-else statement. Calculations: DA = 30% of basic salary. *Let’s start the program with a header file “#include<iostream>” → Input-output Aug 14, 2024 · Answer: import java. a0 pvzx jby9s irsr wl1fux 4pcep p0gyydr bqyjyu bnnha mhpv
Back to Top