Ans:
Public class programmar
{
string name, bookshop, text book, dictionary;
programmer ()
{
name = “”;
bookshop = “”;
text book = “”;
per = of;
}
programmar (string nm, string co, string, per)
{
textbook = nm;
dict = co;
work_for = working for;
bus_salary = bas;
}
string_company, name();
{
return company;
}
flaot gross payment (float, da, float hra, float ta)
{
float gs = bas-payment+ (bas-salary*da)+return gs;
}
public static void main (string args [ ] )
{
programmar P = new programmar (“Java” “xyz”, 50);
System out prin/n (“The name of book is” + P.company name U;
System out print/n (“Price is P. gross Pmt)
}
}