Computer Science, asked by kavita2251592, 8 months ago

.....for the one who asked me to resend....now if u know so plz tell me your answer .....it's of class 10 icse ...java.....​

Attachments:

Answers

Answered by rasmikrishnan123
2

class library

{

int accno;

string title;

string author;

void input( )

{

InputStreamReader read=new InputStreamReader(System.in);

BufferedReader in=new BufferedReader(read);

System.out.println("Enter the account number");

accno=Integer.ParseInt(in.readLine());

System.out.println("Enter title of the book");

title=in.readLine();

System.out.println("Enter author of the book");

author=in.readLine();

}

void compute()

{

int fine, days;

InputStreamReader read=newInputStreamReader(System.in);

BufferedReader in=new BufferedReader(read);

System.out.println("enter the number of days late");

days=Integer.parseint(in.readLine());

fine=days*2;

system.out.println("fine="+fine);

}

void display()

{

System.out.print("Accession number"+" "+"Title"+" "+"Author);

System.out.println();

Syetem.out.print(accno+" "+title+" "+author);

}

}

class abc

{

public static void main(string args[ ])

{

library ob= new library();

ob.input();

ob.display();

ob.compute();

}

}

Answered by shristi2005
0

Answer:

☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞

Similar questions