Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library-management-system #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/Library-Management-System.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions Answers/untitled7/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
### IntelliJ IDEA ###
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
3 changes: 3 additions & 0 deletions Answers/untitled7/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Answers/untitled7/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Answers/untitled7/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions Answers/untitled7/.idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions Answers/untitled7/src/Admin.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import java.util.ArrayList;
import java.util.Scanner;

public class Admin extends User{
private String Password;
public Admin(String Name, String UserID, String PhoneNumber, String Password){
super(Name, UserID, PhoneNumber);
this.Password=Password;
}
public static ArrayList<Admin> Admins = new ArrayList<>();


public String getPassword() {
return Password;
}

public void AdminSignUp(){
Scanner input= new Scanner(System.in);
super.Name=input.nextLine();
super.UserID=input.nextLine();
super.PhoneNumber=input.nextLine();
}
}
36 changes: 36 additions & 0 deletions Answers/untitled7/src/Book.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import jdk.jfr.Description;

public class Book {
private int BookID;
private String Title, Author, Description;
private boolean AvailibilityStatus;
public Book(String Title, String Author,String Description){
BookID=1;
this.Title=Title;
this.Author=Author;
this.Description=Description;
this.AvailibilityStatus=true;
}

public int getBookID() {
return BookID;
}

public String getAuthor() {
return Author;
}

public String getDescription() {
return Description;
}

public String getTitle() {
return Title;
}
public void setAvailibilityStatus(){
this.AvailibilityStatus=(!AvailibilityStatus);
}
public boolean getAvailibilityStatus(){
return AvailibilityStatus;
}
}
Loading