Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (1 vote)
900 views

Scenario 1 Java Programs

The document describes a Java program that creates an interface called "customer" with methods "information()", "show()", and to maintain a tax rate. The interface is then implemented in an "employee" class to calculate taxes based on income. It also describes maintaining book details like ID, name, author etc in a "books" package and journal details like ID and name in a "journal" package. The main class uses these packages to display book and journal information as requested by staff and student classes.

Uploaded by

Suganya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
900 views

Scenario 1 Java Programs

The document describes a Java program that creates an interface called "customer" with methods "information()", "show()", and to maintain a tax rate. The interface is then implemented in an "employee" class to calculate taxes based on income. It also describes maintaining book details like ID, name, author etc in a "books" package and journal details like ID and name in a "journal" package. The main class uses these packages to display book and journal information as requested by staff and student classes.

Uploaded by

Suganya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Write a program to create interface method named customer.

In this keep the methods called


information (), show() and also maintain the tax rate. Implement this interface in employee class
and calculate the tax of the employee based on their income.

Write a java program to maintain the books details like BookId, accession number; book name,
author, publication in books package and keep the journal details such as journal Id; journal Id;
journal name; in journal package in main class use these two packages details for staff and
student classes and display the books and journals information as requested by the user.

You might also like