0

Write a Java program with the following specifications:

Class name : Salary Data memebers - String name , adress , city , float sal Member methods : Salary(String n , String add , String cy , float s)- constructor to initialise data members void outputData ()-to display the initialised value void calculate ()- to find and print the following da = 15% of salary hra = 10% of salary pf = 12% of salary gross = salary + da + hra net = gross-pf void display ()- to display the complete information

6th Nov 2022, 10:52 AM
Ayushi Anand
Ayushi Anand - avatar
2 Antworten
+ 1
Its very simple... Read the trace and write the code following the requirements
6th Nov 2022, 11:00 AM
KrOW
KrOW - avatar
0
All the things you have already mentioned what exactly you have to do if you know about the class concepts how to define function then you can easily do implementation
6th Nov 2022, 3:19 PM
A S Raghuvanshi
A S Raghuvanshi - avatar