From b60e8dbf55f2885e477851a2828439e51ba498d9 Mon Sep 17 00:00:00 2001 From: muhammad Date: Mon, 29 Apr 2024 13:10:03 +0430 Subject: [PATCH 1/5] classes created --- Answers/40130212091/Admin.java | 2 ++ Answers/40130212091/Book.java | 3 +++ Answers/40130212091/CLI.java | 2 ++ Answers/40130212091/Library.java | 2 ++ Answers/40130212091/MyApp.java | 5 +++++ Answers/40130212091/NormalUser.java | 2 ++ Answers/40130212091/Rent.java | 2 ++ Answers/40130212091/User.java | 2 ++ 8 files changed, 20 insertions(+) create mode 100644 Answers/40130212091/Admin.java create mode 100644 Answers/40130212091/Book.java create mode 100644 Answers/40130212091/CLI.java create mode 100644 Answers/40130212091/Library.java create mode 100644 Answers/40130212091/MyApp.java create mode 100644 Answers/40130212091/NormalUser.java create mode 100644 Answers/40130212091/Rent.java create mode 100644 Answers/40130212091/User.java diff --git a/Answers/40130212091/Admin.java b/Answers/40130212091/Admin.java new file mode 100644 index 0000000..5e325f1 --- /dev/null +++ b/Answers/40130212091/Admin.java @@ -0,0 +1,2 @@ +public class Admin extends User{ +} diff --git a/Answers/40130212091/Book.java b/Answers/40130212091/Book.java new file mode 100644 index 0000000..a5379ae --- /dev/null +++ b/Answers/40130212091/Book.java @@ -0,0 +1,3 @@ +public class Book extends Library implements CLI{ + +} diff --git a/Answers/40130212091/CLI.java b/Answers/40130212091/CLI.java new file mode 100644 index 0000000..f7a98c6 --- /dev/null +++ b/Answers/40130212091/CLI.java @@ -0,0 +1,2 @@ +public interface CLI { +} diff --git a/Answers/40130212091/Library.java b/Answers/40130212091/Library.java new file mode 100644 index 0000000..7453be2 --- /dev/null +++ b/Answers/40130212091/Library.java @@ -0,0 +1,2 @@ +public class Library { +} diff --git a/Answers/40130212091/MyApp.java b/Answers/40130212091/MyApp.java new file mode 100644 index 0000000..f88ee93 --- /dev/null +++ b/Answers/40130212091/MyApp.java @@ -0,0 +1,5 @@ +public class MyApp { + public static void main(String[] args) { + + } +} diff --git a/Answers/40130212091/NormalUser.java b/Answers/40130212091/NormalUser.java new file mode 100644 index 0000000..16b9b30 --- /dev/null +++ b/Answers/40130212091/NormalUser.java @@ -0,0 +1,2 @@ +public class NormalUser extends User{ +} diff --git a/Answers/40130212091/Rent.java b/Answers/40130212091/Rent.java new file mode 100644 index 0000000..343144f --- /dev/null +++ b/Answers/40130212091/Rent.java @@ -0,0 +1,2 @@ +public class Rent extends Library{ +} diff --git a/Answers/40130212091/User.java b/Answers/40130212091/User.java new file mode 100644 index 0000000..27c7373 --- /dev/null +++ b/Answers/40130212091/User.java @@ -0,0 +1,2 @@ +public class User extends Library{ +} From 461970673da12036041fd9a9620f53be5e13791e Mon Sep 17 00:00:00 2001 From: muhammad Date: Thu, 9 May 2024 19:48:28 +0430 Subject: [PATCH 2/5] classes created --- Answers/40130212091/.idea/.gitignore | 8 ++ Answers/40130212091/.idea/40130212091.iml | 11 ++ Answers/40130212091/.idea/misc.xml | 6 + Answers/40130212091/.idea/modules.xml | 8 ++ Answers/40130212091/.idea/vcs.xml | 6 + Answers/40130212091/Admin.java | 21 +++- Answers/40130212091/Book.java | 36 +++++- Answers/40130212091/CLI.java | 2 - Answers/40130212091/Library.java | 13 ++- Answers/40130212091/MyApp.java | 103 ++++++++++++++++++ Answers/40130212091/NormalUser.java | 13 ++- Answers/40130212091/Rent.java | 22 +++- Answers/40130212091/User.java | 9 ++ .../production/40130212091/.idea/.gitignore | 8 ++ .../40130212091/.idea/40130212091.iml | 11 ++ .../out/production/40130212091/.idea/misc.xml | 6 + .../production/40130212091/.idea/modules.xml | 8 ++ .../out/production/40130212091/.idea/vcs.xml | 6 + .../out/production/40130212091/Admin.class | Bin 0 -> 228 bytes .../out/production/40130212091/Book.class | Bin 0 -> 823 bytes .../out/production/40130212091/CLI.class | Bin 0 -> 164 bytes .../out/production/40130212091/Library.class | Bin 0 -> 627 bytes .../out/production/40130212091/MyApp.class | Bin 0 -> 977 bytes .../production/40130212091/NormalUser.class | Bin 0 -> 483 bytes .../out/production/40130212091/Rent.class | Bin 0 -> 734 bytes .../out/production/40130212091/User.class | Bin 0 -> 322 bytes 26 files changed, 290 insertions(+), 7 deletions(-) create mode 100644 Answers/40130212091/.idea/.gitignore create mode 100644 Answers/40130212091/.idea/40130212091.iml create mode 100644 Answers/40130212091/.idea/misc.xml create mode 100644 Answers/40130212091/.idea/modules.xml create mode 100644 Answers/40130212091/.idea/vcs.xml delete mode 100644 Answers/40130212091/CLI.java create mode 100644 Answers/40130212091/out/production/40130212091/.idea/.gitignore create mode 100644 Answers/40130212091/out/production/40130212091/.idea/40130212091.iml create mode 100644 Answers/40130212091/out/production/40130212091/.idea/misc.xml create mode 100644 Answers/40130212091/out/production/40130212091/.idea/modules.xml create mode 100644 Answers/40130212091/out/production/40130212091/.idea/vcs.xml create mode 100644 Answers/40130212091/out/production/40130212091/Admin.class create mode 100644 Answers/40130212091/out/production/40130212091/Book.class create mode 100644 Answers/40130212091/out/production/40130212091/CLI.class create mode 100644 Answers/40130212091/out/production/40130212091/Library.class create mode 100644 Answers/40130212091/out/production/40130212091/MyApp.class create mode 100644 Answers/40130212091/out/production/40130212091/NormalUser.class create mode 100644 Answers/40130212091/out/production/40130212091/Rent.class create mode 100644 Answers/40130212091/out/production/40130212091/User.class diff --git a/Answers/40130212091/.idea/.gitignore b/Answers/40130212091/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/Answers/40130212091/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/Answers/40130212091/.idea/40130212091.iml b/Answers/40130212091/.idea/40130212091.iml new file mode 100644 index 0000000..b107a2d --- /dev/null +++ b/Answers/40130212091/.idea/40130212091.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Answers/40130212091/.idea/misc.xml b/Answers/40130212091/.idea/misc.xml new file mode 100644 index 0000000..6f29fee --- /dev/null +++ b/Answers/40130212091/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Answers/40130212091/.idea/modules.xml b/Answers/40130212091/.idea/modules.xml new file mode 100644 index 0000000..1c6f695 --- /dev/null +++ b/Answers/40130212091/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Answers/40130212091/.idea/vcs.xml b/Answers/40130212091/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/Answers/40130212091/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Answers/40130212091/Admin.java b/Answers/40130212091/Admin.java index 5e325f1..d34678b 100644 --- a/Answers/40130212091/Admin.java +++ b/Answers/40130212091/Admin.java @@ -1,2 +1,21 @@ -public class Admin extends User{ +import java.io.File; +import java.io.FileWriter; + +public class Admin extends User { + public Admin(String studentId , String password){ + super(); + this.Id = studentId; + this.password = password; + } + + public void add(){ + try { + FileWriter addAdmin = new FileWriter("admin.txt"); + addAdmin.write(Id + "," + name + "," + phoneNumber + "," + password + "\n"); + addAdmin.close(); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + } diff --git a/Answers/40130212091/Book.java b/Answers/40130212091/Book.java index a5379ae..6601c64 100644 --- a/Answers/40130212091/Book.java +++ b/Answers/40130212091/Book.java @@ -1,3 +1,37 @@ -public class Book extends Library implements CLI{ +import java.io.FileWriter; +public class Book extends Library { + int bookID; + String title, author; + boolean availabilityStatus; + String description; + + private int i = 100; + + public Book(String name, String author, String subtitle){ + this.title = name; + this.author = author; + this.description = subtitle; + this.availabilityStatus = true; + this.bookID = ++i; + + } + + private int c = 0; + + + public String[] add(String book[]) { + book[c] = bookID + "," + title + "," + author + "," + description+ "," + availabilityStatus; + c++; + return book; + } + + public void rent(String book[], String bookName) { + char[] h = new char[50]; + for (int k = 0; k < book.length; k++){ + if(book[k] != ","){ + + } + } + } } diff --git a/Answers/40130212091/CLI.java b/Answers/40130212091/CLI.java deleted file mode 100644 index f7a98c6..0000000 --- a/Answers/40130212091/CLI.java +++ /dev/null @@ -1,2 +0,0 @@ -public interface CLI { -} diff --git a/Answers/40130212091/Library.java b/Answers/40130212091/Library.java index 7453be2..f718a81 100644 --- a/Answers/40130212091/Library.java +++ b/Answers/40130212091/Library.java @@ -1,2 +1,13 @@ -public class Library { +public class Library{ + private String libraryName = "myLibrary"; + private int capacity = 350 ; + + private String operatingHours = "8:00 _ 21:00"; + + String[] bookRepository; + + public String getHours() { + return operatingHours; + } + } diff --git a/Answers/40130212091/MyApp.java b/Answers/40130212091/MyApp.java index f88ee93..93d6254 100644 --- a/Answers/40130212091/MyApp.java +++ b/Answers/40130212091/MyApp.java @@ -1,5 +1,108 @@ +import java.io.File; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Scanner; + public class MyApp { public static void main(String[] args) { + // create library object + Library library = new Library(); + + try { + File book = new File("book.txt"); + if (book.createNewFile()) { + System.out.println("File created: " + book.getName()); + } + File n_user = new File("user.txt"); + if (n_user.createNewFile()){ + System.out.println("File created: " + n_user.getName()); + } + File rents = new File("rents.txt"); + if (rents.createNewFile()){ + System.out.println("File created: " + rents.getName()); + } + } catch (IOException e) { + throw new RuntimeException(e); + } + + String[] memberList = new String[400]; + String[] rentList = new String[400]; + + + Scanner command = new Scanner(System.in); + String input = command.nextLine(); + String[] order = input.split(" "); + ArrayList books = new ArrayList<>(); + int i = 0; + while(true){ + if(order[i] == "lib"){ + i++; + if(order[i] == "add"){ + i++; + if(order[i] == "book"){ + i++; + Book book = new Book(order[i], order[i + 1], order[i + 2]); + library.bookRepository = book.add(library.bookRepository); + } + else if(order[i] == "member"){ + i++; + NormalUser member = new NormalUser(order[i], order[i + 1]); + memberList = member.add(memberList); + } + else { + try { + throw new Exception("Enter a correct command"); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + } + else if(order[i] == "rent"){ + i++; + Rent r = new Rent(order[i]); + i++; + if (order[i] == null){ + r.rentBook(); + }else{ + //check password + r.rentBook(order[i]); + } + } + else if(order[i] == "get"){ + i++; + if(order[i] == "hrs"){ + System.out.println(library.getHours()); + } + else{ + System.out.println("enter a correct command"); + } + } else if (order[i] == "remove") { + i++; + if (order[i] == "member"){ + i++; + + } + else{ + System.out.println("Enter a correct command"); + } + } else if (order[i] == "return") { + i++; + } else{ + try { + throw new Exception("Enter a correct command"); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + } + else { + try { + throw new Exception("Enter a correct command"); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + } } } diff --git a/Answers/40130212091/NormalUser.java b/Answers/40130212091/NormalUser.java index 16b9b30..4ab84b8 100644 --- a/Answers/40130212091/NormalUser.java +++ b/Answers/40130212091/NormalUser.java @@ -1,2 +1,13 @@ -public class NormalUser extends User{ + +public class NormalUser extends User { + + public NormalUser(String studentID, String password){ + super(); + this.Id = studentID; + this.password = password; + } + + public String[] add(String[] members){ + return members; + } } diff --git a/Answers/40130212091/Rent.java b/Answers/40130212091/Rent.java index 343144f..ce6f711 100644 --- a/Answers/40130212091/Rent.java +++ b/Answers/40130212091/Rent.java @@ -1,2 +1,22 @@ -public class Rent extends Library{ +import java.util.Date; +import java.util.HashMap; + +public class Rent extends Library { + String bookObject, normaluserObject; + long rentalDate; + int RentalID; + Date date = new Date(); + + HashMap rent = new HashMap<>(); + private int c = 0; + + public Rent(String book){ + this.bookObject = book; + this.rentalDate = date.getTime(); + } + + public void rentBook(String name){ + this.normaluserObject = name; + } + } diff --git a/Answers/40130212091/User.java b/Answers/40130212091/User.java index 27c7373..c766e29 100644 --- a/Answers/40130212091/User.java +++ b/Answers/40130212091/User.java @@ -1,2 +1,11 @@ public class User extends Library{ + String name; + String Id, phoneNumber, password; + + private int c = 0; + + public String[] add(String[] members){ + members[c] = Id + "," + name + "," + phoneNumber + "," + password; + return members; + } } diff --git a/Answers/40130212091/out/production/40130212091/.idea/.gitignore b/Answers/40130212091/out/production/40130212091/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/Answers/40130212091/out/production/40130212091/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/Answers/40130212091/out/production/40130212091/.idea/40130212091.iml b/Answers/40130212091/out/production/40130212091/.idea/40130212091.iml new file mode 100644 index 0000000..b107a2d --- /dev/null +++ b/Answers/40130212091/out/production/40130212091/.idea/40130212091.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Answers/40130212091/out/production/40130212091/.idea/misc.xml b/Answers/40130212091/out/production/40130212091/.idea/misc.xml new file mode 100644 index 0000000..6f29fee --- /dev/null +++ b/Answers/40130212091/out/production/40130212091/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Answers/40130212091/out/production/40130212091/.idea/modules.xml b/Answers/40130212091/out/production/40130212091/.idea/modules.xml new file mode 100644 index 0000000..1c6f695 --- /dev/null +++ b/Answers/40130212091/out/production/40130212091/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Answers/40130212091/out/production/40130212091/.idea/vcs.xml b/Answers/40130212091/out/production/40130212091/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/Answers/40130212091/out/production/40130212091/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Answers/40130212091/out/production/40130212091/Admin.class b/Answers/40130212091/out/production/40130212091/Admin.class new file mode 100644 index 0000000000000000000000000000000000000000..9a68046eacd31c8119c8a5dafb4b5bdcb246b113 GIT binary patch literal 228 zcmXYrOA5k342J*o;pq6NcmsFpLJyz_BDgAUeC)?M;E1*`w%*H?;KBoVC^0jbz@PkI z63FNKdIMOXD-j?Rh+2qIBSgEKwuIWu*{*Y zcB>8-CcU)C)Mc-%asCgZ@?>rVk^1W?L2io5W_o4ZiS%@QR(FLy1b^a!IQbXW2D^#( cKsscEbAvugcFHf{4PErnVU3X3n1Kz*A{mUMKxE0b9v_^W&f z1qFYAKT15a8}Ok4orn81_ndp?&adC!e*!qgVG|BqA6|eO>H>bGVlDMdpnj|}WljX# zPIu^IMPT!z{382>QEC5FYdMS5)HLD4ZD19FkF@~nXbE_)^Zb)QEvB0aY)4CQM;3D{ zKpUIvG|HrjK)dQpWj5&#j8@sCY}*cS+qTtZVJ>rRkvjqI+S2McnU1vjY*e24xKFWX z(YZilpeC6#g(hit+4$p|lTMB*$>(nb1UcG#tV(69Qe|cXLpHued=Plmxe5NCN_WWB zoaJL`YDFqb-W6AIqTkE7dU`&R=}>BA^F`4!mx@E{kzFX|d6~Q-dSzO~i;cN*JZ4=d znGt9X@vxd+C64pnS1oR;Wb3~1OCM|8gn$m-W(g@{v2E3!5nwKvBkkNT00t);gO_;09#li z@j8dM@SHbcMTZx7$&AG4aI7dJE66FME+Z=>BwHn<$GYtje@EFXu+h>6)#ZX#p!aX! M&Qjn$$s8Q~0Z<2&2mk;8 literal 0 HcmV?d00001 diff --git a/Answers/40130212091/out/production/40130212091/CLI.class b/Answers/40130212091/out/production/40130212091/CLI.class new file mode 100644 index 0000000000000000000000000000000000000000..72067e57f5492ac07a5e4424538febcb0f29ec1e GIT binary patch literal 164 zcmX^0Z`VEs1_nn49(D#MMh0eQA5V4$7Dfhvti-ZJ{hY+SbbbG%tkmQZpj=`~3Xs&$ z3}a;ANKY;C$S*A_W@Hf2(DXql4lXIm%uBasWMC;u%>!!U3I?i5PIb%7Nd@Wxnyv>@ m%f`q6Gzn-g0|PVAGFApQ29Txf3>;vZ6T}Cq-~y6N4BP;OVIPSA literal 0 HcmV?d00001 diff --git a/Answers/40130212091/out/production/40130212091/Library.class b/Answers/40130212091/out/production/40130212091/Library.class new file mode 100644 index 0000000000000000000000000000000000000000..929e88503b0a9650a6acf0abe99da092176f981c GIT binary patch literal 627 zcmah_+e!ja6kSJ0$IGOqX7{2uEyxcrf)Ju$Fv#$wr!(Whj*WBVI0pSyK@jxN2lP?V zo^epSKo4gx_GPWL&;Iy)dk1ia{TvcVnlLP+kY*?i`2%ly+#fWroS|?7hV+T_WpK)n ztT%dDWRNwHvyg|yVA|5rTt6}t)L3X9NPlplrh39qwii;}KvSb-qChHb`;sB=&4?X7 z5)2uakGU%Y(qYsrI7;1Li?N!>K!xI!+uvdgMqBlXT(qSxI@6IO^bL1Bs+4Wza<9j= z4D+~X1b33w%G&YDEn0>5`(!>4LA-Od-uTl<3!e^=>(b9$aV|p-E0#G9e~AM+O9Bil zFbIpV=(q`#uo@wqD#9`HfgjiNOhz&bXf+UA^m u6y-GclV~jw*_^nAZIb%#`U3NbR1#RYmX^q=IeF)Q*V+eN?5k za$2QVyZcr%5HQwl#|}0GqJ?5ZA|Wsog1Uj-F4ddLaV$TH6b2+r6N9*MrAz(rAh0?D z5!(^S)quH>d}`r8?CVB+^=cNFZ0}3n?}?-LUrT0Ht=wqtbVBJ$b-DIv?W=;7mHXH6k zr9{*1bd+e~hac?Q4|mU&B(vcile{~{v6xcLL} z?Gcj4-04COneD~QXb-uarAjOxJ6VfI*Nm)@jekKdAIlo66?ufoyzF82vmw5o{?@Wl zXxT|VOwNJ<4v^;e7~8K<@(JSxvwEB|>nprJz-oxz#6#x5Y8j8P#?jIo@iD6r@(bja g+5IUI6NsE*7E+=j^_dSpDuP!3V4TD%K@qI~12Oc`M*si- literal 0 HcmV?d00001 diff --git a/Answers/40130212091/out/production/40130212091/NormalUser.class b/Answers/40130212091/out/production/40130212091/NormalUser.class new file mode 100644 index 0000000000000000000000000000000000000000..1686d7d62aebcbb2c67248377300ec9f233601b9 GIT binary patch literal 483 zcmaiw%}T>i5QWbqY172mX#KYpbk|n!1r$LlLLhXb7F^yo0V8cwl2o6|MG;*106vs> zZd2$+a5MMLnK|Fgz285dUjS}!;=+Jw!}3r;RbV~laVDrk{BDVWm-4Fv0QvM*mM^lSl)tU$4+X A(*OVf literal 0 HcmV?d00001 diff --git a/Answers/40130212091/out/production/40130212091/Rent.class b/Answers/40130212091/out/production/40130212091/Rent.class new file mode 100644 index 0000000000000000000000000000000000000000..7508daa6576d2713ae1e3f171c692d64738fbd3c GIT binary patch literal 734 zcmah{%Wl&^6g^{`Ix%U}rYQty=>ryhAhNDnMM8;CD!D~!s!Cms6Dyh4wb8^z>R-VE zMFNQr;G+;{oRC!Vg3Y~m?wrTWo%#Le$1eaM@YaI`+l5oX6D$e1z6!L|4+2Z4DpqMr zz}`Q&c2N>oyOm#LGfP#}?8@=zTz>Z8!Y<<}DlV2QSV2|5xeVi!N#|+ZFOW`LtWmY? zp9y$DlH7d?Zo@t)wJA1|@vzxTwTg!)0;_SN?`4#YL;Vlu8EF}HWEu*TjGc_mIs$@% z<(?YGGR-u%j*H%>MT=smMO&wx3@B0cRUBSq_d%$yWDv1a^OL@euBBFHJ!?AYNR2r% z-yDW)TMh<1+AvJJNv63|-#;k&@cKP&_rs6MD3=ZSy%`sFIZ_L}JRb$9VVx1E&+^7B zKg099&#@ERU~S6+@P{{8#@0q}^+2mu-)RE#ECgfP{aWA{O5J!qq=5utH?GY`=wsFyN#LWVav zVVJ)18z%*uRWhrbHmiF=FkKR8O6YFa*5psSP3A4_EtloHbt0;VNr}v!b47 z7hKHQX@5U9RkhZoWJ&$kGC!Kxom=D+?HwK8yz?n=g;4eYlvD?iAkalz^U0A Date: Fri, 10 May 2024 23:07:05 +0430 Subject: [PATCH 3/5] updated --- Answers/40130212091/Admin.java | 11 ----- Answers/40130212091/Book.java | 19 -------- Answers/40130212091/Library.java | 68 +++++++++++++++++++++++++++++ Answers/40130212091/MyApp.java | 52 ++++++---------------- Answers/40130212091/NormalUser.java | 3 -- Answers/40130212091/Rent.java | 8 ++-- Answers/40130212091/User.java | 12 +++-- 7 files changed, 93 insertions(+), 80 deletions(-) diff --git a/Answers/40130212091/Admin.java b/Answers/40130212091/Admin.java index d34678b..4824027 100644 --- a/Answers/40130212091/Admin.java +++ b/Answers/40130212091/Admin.java @@ -1,5 +1,3 @@ -import java.io.File; -import java.io.FileWriter; public class Admin extends User { public Admin(String studentId , String password){ @@ -8,14 +6,5 @@ public Admin(String studentId , String password){ this.password = password; } - public void add(){ - try { - FileWriter addAdmin = new FileWriter("admin.txt"); - addAdmin.write(Id + "," + name + "," + phoneNumber + "," + password + "\n"); - addAdmin.close(); - } catch (Exception e) { - throw new RuntimeException(e); - } - } } diff --git a/Answers/40130212091/Book.java b/Answers/40130212091/Book.java index 6601c64..0cd9f50 100644 --- a/Answers/40130212091/Book.java +++ b/Answers/40130212091/Book.java @@ -1,5 +1,4 @@ -import java.io.FileWriter; public class Book extends Library { int bookID; String title, author; @@ -16,22 +15,4 @@ public Book(String name, String author, String subtitle){ this.bookID = ++i; } - - private int c = 0; - - - public String[] add(String book[]) { - book[c] = bookID + "," + title + "," + author + "," + description+ "," + availabilityStatus; - c++; - return book; - } - - public void rent(String book[], String bookName) { - char[] h = new char[50]; - for (int k = 0; k < book.length; k++){ - if(book[k] != ","){ - - } - } - } } diff --git a/Answers/40130212091/Library.java b/Answers/40130212091/Library.java index f718a81..87cb6d3 100644 --- a/Answers/40130212091/Library.java +++ b/Answers/40130212091/Library.java @@ -1,3 +1,5 @@ +import java.util.ArrayList; + public class Library{ private String libraryName = "myLibrary"; private int capacity = 350 ; @@ -6,8 +8,74 @@ public class Library{ String[] bookRepository; + private ArrayList bookList = new ArrayList<>(); + private ArrayList userList = new ArrayList<>(); + private ArrayList rentList = new ArrayList<>(); + + public String getHours() { return operatingHours; } + public void addBook(String name, String Id, String subtitle){ + Book book = new Book(name, Id, subtitle); + bookList.add(book); + } + + public void addMember(String name, String password){ + Admin admin = new Admin(name, password); + userList.add(admin); + } + + public void rentBook(String bookName){ + for (int i = 0; i < bookList.size(); i++){ + if (bookList.get(i).title == bookName){ + if (bookList.get(i).availabilityStatus){ + Rent rent = new Rent(bookName); + rentList.add(rent); + return; + } + else { + System.out.println("Book Is Unavailable"); + return; + } + } + } + System.out.println("book not found"); + } + + public void removeMember(String memberId){ + for (int i = 0; i < userList.size(); i++){ + if (userList.get(i).Id == memberId){ + userList.remove(i); + return; + } + } + System.out.println("member not found"); + } + + public void returnBook(String bookName){ + for (int i = 0; i < bookList.size(); i++){ + if(bookList.get(i).title == bookName){ + bookList.get(i).availabilityStatus = true; + } + } + for (int i = 0; i < rentList.size(); i++){ + if (rentList.get(i).bookObject == bookName){ + rentList.remove(i); + return; + } + } + System.out.println("book not found"); + } + + public void availableBooks(){ + for (int i = 0; i < bookList.size(); i++){ + if(bookList.get(i).availabilityStatus){ + System.out.println(bookList.get(i).title + "\n"); + } + } + } + + } diff --git a/Answers/40130212091/MyApp.java b/Answers/40130212091/MyApp.java index 93d6254..5dee95a 100644 --- a/Answers/40130212091/MyApp.java +++ b/Answers/40130212091/MyApp.java @@ -1,6 +1,4 @@ -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; + import java.util.Scanner; public class MyApp { @@ -8,31 +6,10 @@ public static void main(String[] args) { // create library object Library library = new Library(); - try { - File book = new File("book.txt"); - if (book.createNewFile()) { - System.out.println("File created: " + book.getName()); - } - File n_user = new File("user.txt"); - if (n_user.createNewFile()){ - System.out.println("File created: " + n_user.getName()); - } - File rents = new File("rents.txt"); - if (rents.createNewFile()){ - System.out.println("File created: " + rents.getName()); - } - } catch (IOException e) { - throw new RuntimeException(e); - } - - String[] memberList = new String[400]; - String[] rentList = new String[400]; - Scanner command = new Scanner(System.in); String input = command.nextLine(); String[] order = input.split(" "); - ArrayList books = new ArrayList<>(); int i = 0; while(true){ if(order[i] == "lib"){ @@ -41,13 +18,11 @@ public static void main(String[] args) { i++; if(order[i] == "book"){ i++; - Book book = new Book(order[i], order[i + 1], order[i + 2]); - library.bookRepository = book.add(library.bookRepository); + library.addBook(order[i], order[i + 1], order[i + 2]); } else if(order[i] == "member"){ i++; - NormalUser member = new NormalUser(order[i], order[i + 1]); - memberList = member.add(memberList); + library.addMember(order[i], order[i + 1]); } else { try { @@ -59,20 +34,21 @@ else if(order[i] == "member"){ } else if(order[i] == "rent"){ i++; - Rent r = new Rent(order[i]); - i++; - if (order[i] == null){ - r.rentBook(); - }else{ - //check password - r.rentBook(order[i]); - } + library.rentBook(order[i]); } else if(order[i] == "get"){ i++; if(order[i] == "hrs"){ System.out.println(library.getHours()); } + else if(order[i].equals("available")){ + i++; + if (order[i].equals("books")){ + library.availableBooks(); + }else { + System.out.println("enter a correct command"); + } + } else{ System.out.println("enter a correct command"); } @@ -80,14 +56,14 @@ else if(order[i] == "get"){ i++; if (order[i] == "member"){ i++; - + library.removeMember(order[i]); } else{ System.out.println("Enter a correct command"); } } else if (order[i] == "return") { i++; - + library.returnBook(order[i]); } else{ try { throw new Exception("Enter a correct command"); diff --git a/Answers/40130212091/NormalUser.java b/Answers/40130212091/NormalUser.java index 4ab84b8..2eaba92 100644 --- a/Answers/40130212091/NormalUser.java +++ b/Answers/40130212091/NormalUser.java @@ -7,7 +7,4 @@ public NormalUser(String studentID, String password){ this.password = password; } - public String[] add(String[] members){ - return members; - } } diff --git a/Answers/40130212091/Rent.java b/Answers/40130212091/Rent.java index ce6f711..c56a7ac 100644 --- a/Answers/40130212091/Rent.java +++ b/Answers/40130212091/Rent.java @@ -8,15 +8,13 @@ public class Rent extends Library { Date date = new Date(); HashMap rent = new HashMap<>(); - private int c = 0; + private int c = 1; public Rent(String book){ this.bookObject = book; this.rentalDate = date.getTime(); - } - - public void rentBook(String name){ - this.normaluserObject = name; + RentalID = c; + c++; } } diff --git a/Answers/40130212091/User.java b/Answers/40130212091/User.java index c766e29..a15ec01 100644 --- a/Answers/40130212091/User.java +++ b/Answers/40130212091/User.java @@ -1,11 +1,15 @@ + public class User extends Library{ String name; String Id, phoneNumber, password; - private int c = 0; - public String[] add(String[] members){ - members[c] = Id + "," + name + "," + phoneNumber + "," + password; - return members; + public User(String name, String phoneNumber){ + this.name = name; + this.phoneNumber = phoneNumber; + } + + public User() { + } } From 73c72b83288f5fd1be749cd76dd4f8866fc97c53 Mon Sep 17 00:00:00 2001 From: muhammad Date: Thu, 16 May 2024 18:48:19 +0430 Subject: [PATCH 4/5] updated --- Answers/40130212091/Admin.java | 11 +- Answers/40130212091/Book.java | 30 ++++- Answers/40130212091/Library.java | 77 +++++++----- Answers/40130212091/MyApp.java | 116 ++++++++---------- Answers/40130212091/NormalUser.java | 15 ++- Answers/40130212091/Rent.java | 21 +++- Answers/40130212091/User.java | 23 +++- .../out/production/40130212091/Admin.class | Bin 228 -> 551 bytes .../out/production/40130212091/Book.class | Bin 823 -> 1055 bytes .../out/production/40130212091/CLI.class | Bin 164 -> 0 bytes .../out/production/40130212091/Library.class | Bin 627 -> 3699 bytes .../out/production/40130212091/MyApp.class | Bin 977 -> 2058 bytes .../production/40130212091/NormalUser.class | Bin 483 -> 566 bytes .../out/production/40130212091/Rent.class | Bin 734 -> 1001 bytes .../out/production/40130212091/User.class | Bin 322 -> 873 bytes 15 files changed, 178 insertions(+), 115 deletions(-) delete mode 100644 Answers/40130212091/out/production/40130212091/CLI.class diff --git a/Answers/40130212091/Admin.java b/Answers/40130212091/Admin.java index 4824027..cb5a1e1 100644 --- a/Answers/40130212091/Admin.java +++ b/Answers/40130212091/Admin.java @@ -1,10 +1,15 @@ public class Admin extends User { - public Admin(String studentId , String password){ - super(); - this.Id = studentId; + + private String password, Id; + public Admin(String name ,String phoneNumber, String password){ + super(name, phoneNumber); this.password = password; } + public String getPassword(){ + return password; + } + } diff --git a/Answers/40130212091/Book.java b/Answers/40130212091/Book.java index 0cd9f50..fbc11fe 100644 --- a/Answers/40130212091/Book.java +++ b/Answers/40130212091/Book.java @@ -1,9 +1,9 @@ public class Book extends Library { - int bookID; - String title, author; - boolean availabilityStatus; - String description; + private int bookID; + private String title, author; + private boolean availabilityStatus; + private String description; private int i = 100; @@ -15,4 +15,26 @@ public Book(String name, String author, String subtitle){ this.bookID = ++i; } + + public String getTitle(){ + return title; + } + + public String getAuthor(){ + return author; + } + + public boolean getAvailabilityStatus(){ + return availabilityStatus; + } + + public void setAvailabilityStatus(boolean c){ + availabilityStatus = c; + } + + public String getDescription() { + return description; + } + + } diff --git a/Answers/40130212091/Library.java b/Answers/40130212091/Library.java index 87cb6d3..9ebe67b 100644 --- a/Answers/40130212091/Library.java +++ b/Answers/40130212091/Library.java @@ -6,48 +6,62 @@ public class Library{ private String operatingHours = "8:00 _ 21:00"; - String[] bookRepository; private ArrayList bookList = new ArrayList<>(); - private ArrayList userList = new ArrayList<>(); + private ArrayList userList = new ArrayList<>(); private ArrayList rentList = new ArrayList<>(); public String getHours() { return operatingHours; } + public String getLibraryName(){ + return libraryName; + } + + public int getCapacity(){ + return capacity; + } - public void addBook(String name, String Id, String subtitle){ - Book book = new Book(name, Id, subtitle); + public void addBook(String name, String author, String subtitle){ + Book book = new Book(name, author, subtitle); bookList.add(book); } - public void addMember(String name, String password){ - Admin admin = new Admin(name, password); - userList.add(admin); + public void addMember(String name, String phoneNumber){ + NormalUser normalUser = new NormalUser( name, phoneNumber); + userList.add(normalUser); } - public void rentBook(String bookName){ - for (int i = 0; i < bookList.size(); i++){ - if (bookList.get(i).title == bookName){ - if (bookList.get(i).availabilityStatus){ - Rent rent = new Rent(bookName); - rentList.add(rent); - return; - } - else { - System.out.println("Book Is Unavailable"); - return; + public void rentBook(String bookName, String userName){ + for (int i = 0; i < userList.size(); i++){ + if (userList.get(i).getName() == userName){ + for (int j = 0; j < bookList.size(); j++){ + if (bookList.get(j).getTitle() == bookName){ + if (bookList.get(j).getAvailabilityStatus()){ + Rent rent = new Rent(userList.get(i), bookList.get(j)); + rentList.add(rent); + System.out.println("successful"); + return; + } + else { + System.out.println("Book Is Unavailable"); + return; + } + } } + System.out.println("book not found"); + return; } } - System.out.println("book not found"); + System.out.println("user not found"); } public void removeMember(String memberId){ for (int i = 0; i < userList.size(); i++){ - if (userList.get(i).Id == memberId){ + if (userList.get(i).getId() == memberId){ userList.remove(i); + System.out.println("successful"); return; } } @@ -56,23 +70,26 @@ public void removeMember(String memberId){ public void returnBook(String bookName){ for (int i = 0; i < bookList.size(); i++){ - if(bookList.get(i).title == bookName){ - bookList.get(i).availabilityStatus = true; - } - } - for (int i = 0; i < rentList.size(); i++){ - if (rentList.get(i).bookObject == bookName){ - rentList.remove(i); - return; + if(bookList.get(i).getTitle() == bookName){ + bookList.get(i).setAvailabilityStatus(true); + for (int j = 0; j < rentList.size(); j++){ + if (rentList.get(j).getBookObject().getTitle() == bookName){ + rentList.remove(j); + System.out.println("successful"); + return; + } + } + System.out.println("book not found"); } } System.out.println("book not found"); } + public void availableBooks(){ for (int i = 0; i < bookList.size(); i++){ - if(bookList.get(i).availabilityStatus){ - System.out.println(bookList.get(i).title + "\n"); + if(bookList.get(i).getAvailabilityStatus()){ + System.out.println(bookList.get(i).getTitle() + "\n"); } } } diff --git a/Answers/40130212091/MyApp.java b/Answers/40130212091/MyApp.java index 5dee95a..96eaee1 100644 --- a/Answers/40130212091/MyApp.java +++ b/Answers/40130212091/MyApp.java @@ -2,83 +2,69 @@ import java.util.Scanner; public class MyApp { - public static void main(String[] args) { - // create library object - Library library = new Library(); + public static void main(String[] args) { + Library library = new Library(); + System.out.println("Hello welcome to " + library.getLibraryName()); + System.out.println("capacity : " + library.getCapacity()); + System.out.println("enter a command"); Scanner command = new Scanner(System.in); - String input = command.nextLine(); - String[] order = input.split(" "); - int i = 0; - while(true){ - if(order[i] == "lib"){ - i++; - if(order[i] == "add"){ - i++; - if(order[i] == "book"){ - i++; - library.addBook(order[i], order[i + 1], order[i + 2]); - } - else if(order[i] == "member"){ - i++; - library.addMember(order[i], order[i + 1]); - } - else { - try { - throw new Exception("Enter a correct command"); - } catch (Exception e) { - throw new RuntimeException(e); - } + String input; + while(true) { + System.out.println("~~~ "); + input = command.nextLine(); + if (input.equalsIgnoreCase("exit")){ + break; + } + commandLine(input.split(" ")); + } + command.close(); + } + + public static void commandLine(String[] order){ + Library library = new Library(); + try { + if (order[1].equals("lib")) { + if (order[2].equals("add")) { + if (order[3].equals("book")) { + library.addBook(order[4], order[4], order[5]); + } else if (order[3].equals("member")) { + library.addMember(order[4], order[5]); } - } - else if(order[i] == "rent"){ - i++; - library.rentBook(order[i]); - } - else if(order[i] == "get"){ - i++; - if(order[i] == "hrs"){ + } else if (order[2].equals("rent")) { + library.rentBook(order[4], order[5]); + } else if (order[2].equals("get")) { + if (order[3].equals("hrs")) { System.out.println(library.getHours()); - } - else if(order[i].equals("available")){ - i++; - if (order[i].equals("books")){ + } else if (order[3].equals("available")) { + if (order[4].equals("books")) { library.availableBooks(); - }else { - System.out.println("enter a correct command"); } } - else{ - System.out.println("enter a correct command"); - } - } else if (order[i] == "remove") { - i++; - if (order[i] == "member"){ - i++; - library.removeMember(order[i]); - } - else{ - System.out.println("Enter a correct command"); - } - } else if (order[i] == "return") { - i++; - library.returnBook(order[i]); - } else{ - try { - throw new Exception("Enter a correct command"); - } catch (Exception e) { - throw new RuntimeException(e); + } else if (order[2] == "remove") { + if (order[3] == "member") { + library.removeMember(order[4]); } + } else if (order[2].equals("return")) { + library.returnBook(order[4]); } - } - else { - try { - throw new Exception("Enter a correct command"); - } catch (Exception e) { - throw new RuntimeException(e); + else if (order[2].equals("help")){ + System.out.println("lib add book : Add a new book to the library.\n" + + "lib get hrs: Retrieve library operating hours.\n" + + "lib rent : Rent a book from the library.\n" + + "lib add member : Add a new member to the library (admin privilege required).\n" + + "lib rent : Rent a book for a specific member.\n" + + "lib get available books: View available books for rental.\n" + + "lib remove member : Remove a member from the library (admin privilege required).\n" + + "lib return : Return a rented book to the library.\n"+ + "lib add admin : Add a new admin to the library\n" + + ">>> "); } } + + } catch (Exception e) { + throw new RuntimeException("enter a correct command"); } } } diff --git a/Answers/40130212091/NormalUser.java b/Answers/40130212091/NormalUser.java index 2eaba92..ebd1bd8 100644 --- a/Answers/40130212091/NormalUser.java +++ b/Answers/40130212091/NormalUser.java @@ -1,10 +1,15 @@ - public class NormalUser extends User { - public NormalUser(String studentID, String password){ - super(); - this.Id = studentID; - this.password = password; + private int Id; + private int j = 100; + + public NormalUser(String name, String phoneNumber){ + super(name, phoneNumber); + this.Id = ++j; + } + + public String getId(){ + return toString(Id); } } diff --git a/Answers/40130212091/Rent.java b/Answers/40130212091/Rent.java index c56a7ac..a8f945c 100644 --- a/Answers/40130212091/Rent.java +++ b/Answers/40130212091/Rent.java @@ -2,19 +2,28 @@ import java.util.HashMap; public class Rent extends Library { - String bookObject, normaluserObject; - long rentalDate; - int RentalID; + private NormalUser normalUserObject; + private Book bookObject; + private long rentalDate; + private int RentalID; Date date = new Date(); HashMap rent = new HashMap<>(); private int c = 1; - public Rent(String book){ + public Rent(NormalUser normalUser, Book book){ + this.normalUserObject = normalUser; this.bookObject = book; this.rentalDate = date.getTime(); - RentalID = c; - c++; + RentalID = ++c; + } + + public User getnormalUserObject(){ + return normalUserObject; + } + + public Book getBookObject(){ + return bookObject; } } diff --git a/Answers/40130212091/User.java b/Answers/40130212091/User.java index a15ec01..1af65a0 100644 --- a/Answers/40130212091/User.java +++ b/Answers/40130212091/User.java @@ -1,7 +1,9 @@ public class User extends Library{ - String name; - String Id, phoneNumber, password; + private String name; + private String phoneNumber; + + private int Id; public User(String name, String phoneNumber){ @@ -9,6 +11,23 @@ public User(String name, String phoneNumber){ this.phoneNumber = phoneNumber; } + public String getName(){ + return name; + } + + public String getPhoneNumber(){ + return phoneNumber; + } + + public String getId(){ + String IdStr = toString(Id); + return IdStr; + } + + String toString(int id) { + return toString(id); + } + public User() { } diff --git a/Answers/40130212091/out/production/40130212091/Admin.class b/Answers/40130212091/out/production/40130212091/Admin.class index 9a68046eacd31c8119c8a5dafb4b5bdcb246b113..22e01ae5af572d192e1a71157773b690d9651593 100644 GIT binary patch literal 551 zcma)2%SyvQ6g@Z1qfKJfTAw>tw(-%mRD>c3LJ*;vm78fB+L1OXNvgl4pa?Gf06$8+ znMOC+$S`vsbIv`N^Y#7l3805P8yYGWbQcCpf_|5V3Bf#*k<88s2QB|WJc`a#MB`3B zOJp?emOJgBhAL_nY!?n(g3%kzWJIXWMVdav$%xP>(+JuX|D66yqfBoHyzfOk3JI&e zjKb^1Y!D{5Vld@S!;gnz8i+*ZbuUGMPd9poLq!Fo~X zHGb>-3z&Q?o>Ij+SKbnj1~#~2CYpRnWt*Jks>*-n61K2iD0MjID8qY&^~{NeT*6dM QM~z;NF^bWI9fjKc0aqbwtpET3 delta 122 zcmZ3^@`RD=)W2Q(7#J8F83ZPB$@4R7Xoj&fa4<5kI;P}i=1n~AIN6C&I)I&l38;pF zfe{E<8Q6d%Cy=KP<})y`YHep=+z1q4V&DRjAZd_NZXn46X0rlmUa%M+kYr-u2LJ*o B4axuj diff --git a/Answers/40130212091/out/production/40130212091/Book.class b/Answers/40130212091/out/production/40130212091/Book.class index a00ef5a54d8ec0c7b402a25446015facb2c8803d..465bd190e7b1d215d10e230019015949a54d3914 100644 GIT binary patch literal 1055 zcma)5+fEZv6kVsCPH)qeVz~&YAgJvCtv(tI2}(>z8edA9*eB1llX9@knCaAn-|#zp z(1eMJ4}O3jWn5>b5d!mIn(n>NzOKD?=J%hUzW^NJMF|;X^Dr#rU<%~B$_Zp}DPX=* zo(c~Ivdvb%hysdvlq{5C2^g<^|D%9V{GaGp)j|ym0=ZCy6IWoddoDlA&P00SPA?3U zH$Kp5ix%$bG*iyPGe6L-B@4^iRUWz1VW2*R%J;N?)xv$Ou@n2KiFDLNg_pfhhO;S$ z4s^*lQ&X}cd<7wK4f-$ s9($eaUDKsMQ*eVE>oxY}BscEbAvugcFHf{4PErnVU3X3n1Kz*A{mUMKxE0b9v_^W&f z1qFYAKT15a8}Ok4orn81_ndp?&adC!e*!qgVG|BqA6|eO>H>bGVlDMdpnj|}WljX# zPIu^IMPT!z{382>QEC5FYdMS5)HLD4ZD19FkF@~nXbE_)^Zb)QEvB0aY)4CQM;3D{ zKpUIvG|HrjK)dQpWj5&#j8@sCY}*cS+qTtZVJ>rRkvjqI+S2McnU1vjY*e24xKFWX z(YZilpeC6#g(hit+4$p|lTMB*$>(nb1UcG#tV(69Qe|cXLpHued=Plmxe5NCN_WWB zoaJL`YDFqb-W6AIqTkE7dU`&R=}>BA^F`4!mx@E{kzFX|d6~Q-dSzO~i;cN*JZ4=d znGt9X@vxd+C64pnS1oR;Wb3~1OCM|8gn$m-W(g@{v2E3!5nwKvBkkNT00t);gO_;09#li z@j8dM@SHbcMTZx7$&AG4aI7dJE66FME+Z=>BwHn<$GYtje@EFXu+h>6)#ZX#p!aX! M&Qjn$$s8Q~0Z<2&2mk;8 diff --git a/Answers/40130212091/out/production/40130212091/CLI.class b/Answers/40130212091/out/production/40130212091/CLI.class deleted file mode 100644 index 72067e57f5492ac07a5e4424538febcb0f29ec1e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 164 zcmX^0Z`VEs1_nn49(D#MMh0eQA5V4$7Dfhvti-ZJ{hY+SbbbG%tkmQZpj=`~3Xs&$ z3}a;ANKY;C$S*A_W@Hf2(DXql4lXIm%uBasWMC;u%>!!U3I?i5PIb%7Nd@Wxnyv>@ m%f`q6Gzn-g0|PVAGFApQ29Txf3>;vZ6T}Cq-~y6N4BP;OVIPSA diff --git a/Answers/40130212091/out/production/40130212091/Library.class b/Answers/40130212091/out/production/40130212091/Library.class index 929e88503b0a9650a6acf0abe99da092176f981c..e8d29a48b237ab02afc4fd73097104a6ba40d9d2 100644 GIT binary patch literal 3699 zcma)8{Zm|58Ga7Cu*-528Ui5^NRWgCNccz^X~L$21dE|vXc`D9q&8l5Z{UXAd$)V< zqO@wX#&2zFwc1weN3E&jG&9yQFw@L9{^;n8e~@<6=RNoC2Vr#_hTU_{eZQXPea?IL zumAe!PXI39w+YlC5<}ELJsK1qxn-`K!&%c=8Gd^CmX-Du8qV2{?T;%&`uZ2*h$}Sa zHd6L-!7OYvB7vqD3P*TgIP0YDYT?2VdwmU?W`ol^AQ7k(4r7en|U*B z`x^>sI*wKa!E$^#jNzz4 z^djRW(2G7{u3zD7-%gPK&q@D+)Oy^&2@H~BGm~M3)vR_Q7*h^q`v9?ssLdTl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}v(hL*#TI8Oa|X7t!x7W4 vi#?toREd?ux{UqB%=0(~RKu7e`;Po87fKKVge@>yK=oLw3n<|rt~&e$I_PNC literal 483 zcmaiw%}T>i5QWbqY172mX#KYpbk|n!1r$LlLLhXb7F^yo0V8cwl2o6|MG;*106vs> zZd2$+a5MMLnK|Fgz285dUjS}!;=+Jw!}3r;RbV~laVDrk{BDVWm-4Fv0QvM*mM^lSl)tU$4+X A(*OVf diff --git a/Answers/40130212091/out/production/40130212091/Rent.class b/Answers/40130212091/out/production/40130212091/Rent.class index 7508daa6576d2713ae1e3f171c692d64738fbd3c..ba206f5e69c9ce736cc4c73ff5384eaf3bed7f38 100644 GIT binary patch literal 1001 zcmZuv?M@Rx6g|_HZo3@{v;qn$sEF-?)NjRN6NMNtD<&43;4i0TQx=!4S+*v=j!&Qo zD~TpPfDdInvn{rYKW6ToGxy`%GxPJ;w;uo=qh=z3q=A&g2+{(E?KT4yd=yBpxxO3L z1d^q4!$3wLzpp;1N;h=9%7zLZ69$r5>S*N0B< zvbpcH$VJ*)f3P@vUg8oi3z*GL=iNzE+J3@QRnN2_aTSY{qV0s+?g8hZ0?&1ql0+F6 zGc`TsX%R>uzFL;Jt|?`-0Lt6k5Xjcuwy(l&z@XLBldSb1Pxt?oh73AR6EkWJ+aQ3(BNX256mzuVUR;uiohfE$6AL8Dw>n75&bXI>#Rd>YC6`L@%M` zk1fTFEtR8%{z9?kAArCL{RAppd~EtjVk5Z0{U%SJkRk$XSjQ07cNjaz$VM>fj?*nf zC|aoq)7DaiS!+4MoMj!s{E90Pu36U35vEgb-!LG;(wDf?E$)lRa?i7NmRxe|D=|lJ zfj_j23EV*e>nP$jqvm`4iQVOiOmL6$iP*c(2@~`mV71S;LaXma$YS<0odk5lbPP_# d1!XUwUr^v7szmg#!^w01CeQpgc`a`7=r@u9x;X#< literal 734 zcmah{%Wl&^6g^{`Ix%U}rYQty=>ryhAhNDnMM8;CD!D~!s!Cms6Dyh4wb8^z>R-VE zMFNQr;G+;{oRC!Vg3Y~m?wrTWo%#Le$1eaM@YaI`+l5oX6D$e1z6!L|4+2Z4DpqMr zz}`Q&c2N>oyOm#LGfP#}?8@=zTz>Z8!Y<<}DlV2QSV2|5xeVi!N#|+ZFOW`LtWmY? zp9y$DlH7d?Zo@t)wJA1|@vzxTwTg!)0;_SN?`4#YL;Vlu8EF}HWEu*TjGc_mIs$@% z<(?YGGR-u%j*H%>MT=smMO&wx3@B0cRUBSq_d%$yWDv1a^OL@euBBFHJ!?AYNR2r% z-yDW)TMh<1+AvJJNv63|-#;k&@cKP&_rs6MD3=ZSy%`sFIZ_L}JRb$9VVx1E&+^7B zKg099&#@ERU~SL)dk7zg{W6y^jU z_6PV!jh&lBJJ!D3``w%Go^#Jh^6=;WH-JxgGY#Q zsnzb;n1OApSfsYUcu-N6jaw?Yth9LmKA2wI0sNzY<1g{xC(DulikTqyT|Pg;sLj-`}&dn zYtSEM`^G21s23z!>Y`arPxU2L`yy?RMhwIBFq5~?nz~4h7ru;@DOA`HNtNz^BB)QZ zaE{`uzysy6rrN{qCWCqvxIGTmV|K`5*+K4Vh5Ym zX0aDPBkm`TePCCnOmCHFW2{`u+CMnvlQ|}~=)G9LpP|5cpVeXsoge$1ue3qGn^Tp& ICbfa>zj+>a{r~^~ delta 203 zcmaFKc8H1V)W2Q(7#J8F8N?=XsWG!Na7?sSR$^pe@=Rf5VDw~U;4a9>&r9_y%}q)z zVr1YbNGvWc&o4@u_{gE2D>%QjC^^+FGbfdifitu?wMZ{3u`H26k%66o31}t@5OXqc z0Z9f1ZU!DO%?qXZz% Date: Thu, 16 May 2024 19:09:39 +0430 Subject: [PATCH 5/5] updated --- Answers/40130212091/MyApp.java | 84 ++++++++---------- .../out/production/40130212091/Library.class | Bin 3699 -> 3652 bytes .../out/production/40130212091/MyApp.class | Bin 2058 -> 3513 bytes 3 files changed, 39 insertions(+), 45 deletions(-) diff --git a/Answers/40130212091/MyApp.java b/Answers/40130212091/MyApp.java index 96eaee1..77c7509 100644 --- a/Answers/40130212091/MyApp.java +++ b/Answers/40130212091/MyApp.java @@ -3,7 +3,7 @@ public class MyApp { - public static void main(String[] args) { + public static void main(String[] args) { Library library = new Library(); System.out.println("Hello welcome to " + library.getLibraryName()); System.out.println("capacity : " + library.getCapacity()); @@ -11,60 +11,54 @@ public static void main(String[] args) { Scanner command = new Scanner(System.in); String input; - while(true) { + while (true) { System.out.println("~~~ "); input = command.nextLine(); - if (input.equalsIgnoreCase("exit")){ + if (input.equalsIgnoreCase("exit")) { break; } - commandLine(input.split(" ")); + commandLine(input.split(" "), library); } command.close(); } - public static void commandLine(String[] order){ - Library library = new Library(); + public static void commandLine(String[] order, Library library) { try { - if (order[1].equals("lib")) { - if (order[2].equals("add")) { - if (order[3].equals("book")) { - library.addBook(order[4], order[4], order[5]); - } else if (order[3].equals("member")) { - library.addMember(order[4], order[5]); - } - } else if (order[2].equals("rent")) { - library.rentBook(order[4], order[5]); - } else if (order[2].equals("get")) { - if (order[3].equals("hrs")) { - System.out.println(library.getHours()); - } else if (order[3].equals("available")) { - if (order[4].equals("books")) { - library.availableBooks(); - } - } - } else if (order[2] == "remove") { - if (order[3] == "member") { - library.removeMember(order[4]); - } - } else if (order[2].equals("return")) { - library.returnBook(order[4]); - } - else if (order[2].equals("help")){ - System.out.println("lib add book : Add a new book to the library.\n" + - "lib get hrs: Retrieve library operating hours.\n" + - "lib rent : Rent a book from the library.\n" + - "lib add member : Add a new member to the library (admin privilege required).\n" + - "lib rent : Rent a book for a specific member.\n" + - "lib get available books: View available books for rental.\n" + - "lib remove member : Remove a member from the library (admin privilege required).\n" + - "lib return : Return a rented book to the library.\n"+ - "lib add admin : Add a new admin to the library\n" + - ">>> "); - } + if (order[1].equals("lib") && order[2].equals("add") && order[3].equals("book")) { + library.addBook(order[4], order[5], order[6]); + } else if (order[1].equals("lib") && order[2].equals("add") && order[3].equals("member")) { + library.addMember(order[4], order[5]); + } else if (order[1].equals("lib") && order[2].equals("rent")) { + library.rentBook(order[4], order[5]); + } else if (order[1].equals("lib") && order[2].equals("get") && order[3].equals("hrs")) { + System.out.println(library.getHours()); + } else if (order[1].equals("lib") && order[2].equals("get") && order[3].equals("books")) { + library.availableBooks(); + } else if (order[1].equals("lib") && order[2].equals("remove") && order[3].equals("member")) { + library.removeMember(order[4]); + + } else if (order[1].equals("lib") && order[2].equals("return")) { + library.returnBook(order[4]); + } else if (order[1].equals("lib") && order[2].equals("help")) { + System.out.println("lib add book : Add a new book to the library.\n" + + "lib get hrs: Retrieve library operating hours.\n" + + "lib rent : Rent a book from the library.\n" + + "lib add member : Add a new member to the library (admin privilege required).\n" + + "lib rent : Rent a book for a specific member.\n" + + "lib get available books: View available books for rental.\n" + + "lib remove member : Remove a member from the library (admin privilege required).\n" + + "lib return : Return a rented book to the library.\n" + + "lib add admin : Add a new admin to the library\n" + + ">>> "); + } + else{ + throw new Exception(); } + } catch( + Exception e) - } catch (Exception e) { - throw new RuntimeException("enter a correct command"); - } + { + throw new RuntimeException("enter a correct command"); } } +} diff --git a/Answers/40130212091/out/production/40130212091/Library.class b/Answers/40130212091/out/production/40130212091/Library.class index e8d29a48b237ab02afc4fd73097104a6ba40d9d2..50051a7990b08a9fd182f2bdd5b77ade388555ec 100644 GIT binary patch delta 1109 zcmZuwSx*yD7(FvxrkxhhQri$}g@($aMG!=Vw3bATB8W@e(8TDIi3!CN5SLQ-eL=@v z0j=nhH8m~|Ci3Kyul@o34ZaxD7|*?JhQ^S|-1+XE?>pyw=id7(@HL=+`}=toKsR2$ z(+92Zr>(yg|6>KJqF31QRL3(+YM6547^aQ4_V3n=g0PX(f_hzVB5`zNNW+Yg)!G!h z@l&hnQn468C`b}g#W3I6lKBYdbtUsr=*+dj&hfYrb@ZgiSQmuG(E=+Uoqrc{?q?K& z3lX?+f`8qt0M_CpPVuYYG-3jS@d|#$KU>oWEXpxZAwUHMu%M*aW)`Q+;?B})=l|7} z^Hz_eLr@!Wr>}mF$visy& zNR`n!S?i`H=W&5XDY%H05g}M}6 z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