Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In this course we are going todevelop software for “School System” that will com

ID: 3609986 • Letter: I

Question

In this course we are going todevelop software for “School System”that will computerize all the necessary school processes.This software will facilitate the school management in running andmanaging the school. We will mainly focus on these aspects,

The explanations of these three parts are given below,

Our softwarewill store record of students and teachers in the school.

(name,age, parents name, address, class, roll no …..)

Student class mayhave extra attributes like borrowed book name or id and studentgrades as well.

(name,age, NIC No, address, education, experience, teachingsubjects…..)

We will store grades of each studentfor all subjects.

This part willkeep track of all books present in the library as well as it willkeep record of borrowing and returning of books by students.

This Assignment is starting phase of this system in thisassignment you will focus on the tasks given below:

Explanation / Answer

Dear check this out, makesome changes in it, it will help you alot. thanks ------------------------------------ thanks ------------------------------------ Dear check this out, makesome changes in it, it will help you alot. thanks ------------------------------------ import java.io.*;
import java.lang.*;
import java.util.*;


class Book {

/* attributes */
private String title;
private String author;
private String ISBN;
private boolean status;

/*constructors */
public Book(){
this.title="" ;
this.author ="" ;
this.ISBN ="" ;
this.status =false ;
}

public Book(String title, String author, String ISBN, booleanstatus){
this.title=title ;
this.author =author ;
this.ISBN =ISBN ;
this.status =true ;
}

/** set and get methods */
public String getTitle(){
return this.title ;
}

public void setTitle(String title){
this.title = title ;
}

public String getAuthor(){
return this.author ;
}

public void setAuthor(String author ){
this.author =author ;
}

public String getISBN(){
return this.ISBN ;
}

public void setISBN(String ISBN){
this.ISBN =ISBN ;
}

public boolean getStatus(){
return this.status ;
}

public void setStatus(boolean status ){
this.status = status;
}

} //end of book class




public class Catalog
{

   public static LinkedList<Book>library;

   public Catalog(){
       library   = newLinkedList<Book>();
   }

   public void add(Book book){
   library.add(book);
   }

   public void printAllBooks(){

   for (Book b : library)
      System.out.println("Title: " +b.getTitle() +" Author: "+b.getAuthor()+"  ISBN: " +b.getISBN()+"   status: "+b.getStatus());
   }

   public void searchByAuthor(String author){
   for (Book b : library)
   {
       if(author.equals (b.getAuthor()))
       {
         System.out.println("Title: " + b.getTitle() +" Author: "+b.getAuthor()+"   ISBN: "+b.getISBN()+"   status: "+b.getStatus());
          return;
        }
   }
   System.out.println("the book written by "+author + " is not there in tha catalog");
   }

   public void available(){

    for (Book b : library)
    {
    if(b.getStatus()){
      System.out.println("Title: " +b.getTitle() +" Author: "+b.getAuthor()+"  ISBN: " +b.getISBN()+"   status: "+b.getStatus());
      }
   }
   }



    public static void main(String[] args){
  
    Book b1 = new Book("Let us C", "krishna" ,"12345-AD" , true);
    Book b2 = new Book("Introduction to algorithms","cormon" , "1dfsd45-AD" , true);
    Book b3 = new Book("Introduction to java","newton" , "123sfsdfds23435D" , true);
    Book b4 = new Book("Sherlock holmes", "conandoyle" , "56565-JKR" , true);
    Book b5 = new Book("discrete structures","kenneth rosan" , "13456-TM" , true);
    b3.setStatus(false);
  
    Catalog c = new Catalog();
    c.add(b1); c.add(b2); c.add(b3); c.add(b4);c.add(b5);
    System.out.println("printing All Books");
    c.printAllBooks();
    System.out.println();
  
    System.out.println("Searching Book written Bycormon");
    c.searchByAuthor("cormon");
    System.out.println();
  
    System.out.println("Printing the availableBooks");
    c.available();
    System.out.println();
  
    }
  
}
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote