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
2 Answers
+ 1
Its very simple... Read the trace and write the code following the requirements
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