.....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.....
Answers
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();
}
}
Answer:
☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞☜☆☞