Suche senden
Hochladen
Booklab
•
Als TXT, PDF herunterladen
•
0 gefällt mir
•
327 views
Ray Ray
Folgen
booklab
Weniger lesen
Mehr lesen
Bildung
Melden
Teilen
Melden
Teilen
1 von 4
Jetzt herunterladen
Empfohlen
Booklab
Booklab
Ray Ray
Nu program language on Shibuya.lisp#5 LT
Nu program language on Shibuya.lisp#5 LT
Yuumi Yoshida
Practice programs
Practice programs
Abbott
The Ring programming language version 1.6 book - Part 44 of 189
The Ring programming language version 1.6 book - Part 44 of 189
Mahmoud Samir Fayed
Pnno
Pnno
shristichaudhary4
addition of two matrices
addition of two matrices
A A
java program assigment -2
java program assigment -2
Ankit Gupta
662305 10
662305 10
Nitigan Nakjuatong
Empfohlen
Booklab
Booklab
Ray Ray
Nu program language on Shibuya.lisp#5 LT
Nu program language on Shibuya.lisp#5 LT
Yuumi Yoshida
Practice programs
Practice programs
Abbott
The Ring programming language version 1.6 book - Part 44 of 189
The Ring programming language version 1.6 book - Part 44 of 189
Mahmoud Samir Fayed
Pnno
Pnno
shristichaudhary4
addition of two matrices
addition of two matrices
A A
java program assigment -2
java program assigment -2
Ankit Gupta
662305 10
662305 10
Nitigan Nakjuatong
Geek Time Janvier 2017 : Quiz Java
Geek Time Janvier 2017 : Quiz Java
OLBATI
Uts
Uts
pencari buku
Pick up the low-hanging concurrency fruit
Pick up the low-hanging concurrency fruit
Vaclav Pech
D3.js workshop
D3.js workshop
Anton Katunin
D3 svg & angular
D3 svg & angular
500Tech
java experiments and programs
java experiments and programs
Karuppaiyaa123
Arrays, Structures And Enums
Arrays, Structures And Enums
Bhushan Mulmule
Priority queues
Priority queues
Yeela Mehroz
CS-141 Java programming II ASSIGNMENT 2
CS-141 Java programming II ASSIGNMENT 2
Voffelarin
The Ring programming language version 1.5.1 book - Part 28 of 180
The Ring programming language version 1.5.1 book - Part 28 of 180
Mahmoud Samir Fayed
Fast, stable and scalable true radix sorting with Matt Dowle at useR! Aalborg
Fast, stable and scalable true radix sorting with Matt Dowle at useR! Aalborg
Sri Ambati
Java & OOP Core Concept
Java & OOP Core Concept
Pin-Lun Huang
design and analysis of algorithm Lab files
design and analysis of algorithm Lab files
Nitesh Dubey
กลุ่ม6
กลุ่ม6
Witita Khamsook
C# console programms
C# console programms
Yasir Khan
The Ring programming language version 1.8 book - Part 35 of 202
The Ring programming language version 1.8 book - Part 35 of 202
Mahmoud Samir Fayed
123
123
htmrk
ts
ts
CHEN Qingjun
C# labprograms
C# labprograms
Jafar Nesargi
Advance java
Advance java
Vivek Kumar Sinha
Trabalho Rodrigo 23/09/2009
Trabalho Rodrigo 23/09/2009
Ricardo
Matriz de diseno_de_la_pregunta2011_actualizada3
Matriz de diseno_de_la_pregunta2011_actualizada3
harold acosta
Weitere ähnliche Inhalte
Was ist angesagt?
Geek Time Janvier 2017 : Quiz Java
Geek Time Janvier 2017 : Quiz Java
OLBATI
Uts
Uts
pencari buku
Pick up the low-hanging concurrency fruit
Pick up the low-hanging concurrency fruit
Vaclav Pech
D3.js workshop
D3.js workshop
Anton Katunin
D3 svg & angular
D3 svg & angular
500Tech
java experiments and programs
java experiments and programs
Karuppaiyaa123
Arrays, Structures And Enums
Arrays, Structures And Enums
Bhushan Mulmule
Priority queues
Priority queues
Yeela Mehroz
CS-141 Java programming II ASSIGNMENT 2
CS-141 Java programming II ASSIGNMENT 2
Voffelarin
The Ring programming language version 1.5.1 book - Part 28 of 180
The Ring programming language version 1.5.1 book - Part 28 of 180
Mahmoud Samir Fayed
Fast, stable and scalable true radix sorting with Matt Dowle at useR! Aalborg
Fast, stable and scalable true radix sorting with Matt Dowle at useR! Aalborg
Sri Ambati
Java & OOP Core Concept
Java & OOP Core Concept
Pin-Lun Huang
design and analysis of algorithm Lab files
design and analysis of algorithm Lab files
Nitesh Dubey
กลุ่ม6
กลุ่ม6
Witita Khamsook
C# console programms
C# console programms
Yasir Khan
The Ring programming language version 1.8 book - Part 35 of 202
The Ring programming language version 1.8 book - Part 35 of 202
Mahmoud Samir Fayed
123
123
htmrk
ts
ts
CHEN Qingjun
C# labprograms
C# labprograms
Jafar Nesargi
Advance java
Advance java
Vivek Kumar Sinha
Was ist angesagt?
(20)
Geek Time Janvier 2017 : Quiz Java
Geek Time Janvier 2017 : Quiz Java
Uts
Uts
Pick up the low-hanging concurrency fruit
Pick up the low-hanging concurrency fruit
D3.js workshop
D3.js workshop
D3 svg & angular
D3 svg & angular
java experiments and programs
java experiments and programs
Arrays, Structures And Enums
Arrays, Structures And Enums
Priority queues
Priority queues
CS-141 Java programming II ASSIGNMENT 2
CS-141 Java programming II ASSIGNMENT 2
The Ring programming language version 1.5.1 book - Part 28 of 180
The Ring programming language version 1.5.1 book - Part 28 of 180
Fast, stable and scalable true radix sorting with Matt Dowle at useR! Aalborg
Fast, stable and scalable true radix sorting with Matt Dowle at useR! Aalborg
Java & OOP Core Concept
Java & OOP Core Concept
design and analysis of algorithm Lab files
design and analysis of algorithm Lab files
กลุ่ม6
กลุ่ม6
C# console programms
C# console programms
The Ring programming language version 1.8 book - Part 35 of 202
The Ring programming language version 1.8 book - Part 35 of 202
123
123
ts
ts
C# labprograms
C# labprograms
Advance java
Advance java
Andere mochten auch
Trabalho Rodrigo 23/09/2009
Trabalho Rodrigo 23/09/2009
Ricardo
Matriz de diseno_de_la_pregunta2011_actualizada3
Matriz de diseno_de_la_pregunta2011_actualizada3
harold acosta
Tag 2 E C Spand Share Point Convention
Tag 2 E C Spand Share Point Convention
FLorian Laumer
Apresentação institucional português 1 t12
Apresentação institucional português 1 t12
LPS Brasil - Consultoria de Imóveis S.A.
Slides residuos jd juliana.1 .pptx
Slides residuos jd juliana.1 .pptx
Layara Malvestio
New Business, offshore data capture, Manolo de la Fuente
New Business, offshore data capture, Manolo de la Fuente
Manolo de la Fuente
Design Petro Hairsalon
Design Petro Hairsalon
sunniesunsun
tipos de conexión internet
tipos de conexión internet
maryoria
Clash new multiple-images constraining the inner mass profile of macs j1206....
Clash new multiple-images constraining the inner mass profile of macs j1206....
Sérgio Sacani
Andere mochten auch
(9)
Trabalho Rodrigo 23/09/2009
Trabalho Rodrigo 23/09/2009
Matriz de diseno_de_la_pregunta2011_actualizada3
Matriz de diseno_de_la_pregunta2011_actualizada3
Tag 2 E C Spand Share Point Convention
Tag 2 E C Spand Share Point Convention
Apresentação institucional português 1 t12
Apresentação institucional português 1 t12
Slides residuos jd juliana.1 .pptx
Slides residuos jd juliana.1 .pptx
New Business, offshore data capture, Manolo de la Fuente
New Business, offshore data capture, Manolo de la Fuente
Design Petro Hairsalon
Design Petro Hairsalon
tipos de conexión internet
tipos de conexión internet
Clash new multiple-images constraining the inner mass profile of macs j1206....
Clash new multiple-images constraining the inner mass profile of macs j1206....
Ähnlich wie Booklab
ISCP internal.pdf
ISCP internal.pdf
GANDHAMKUMAR2
Java Simple Programs
Java Simple Programs
Upender Upr
100 Small programs
100 Small programs
SHAZIA JAMALI
Demonstrating bully algorithm in java
Demonstrating bully algorithm in java
Nagireddy Dwarampudi
public class TrequeT extends AbstractListT { .pdf
public class TrequeT extends AbstractListT { .pdf
info30292
Java AssignmentWrite a program using sortingsorting bubble,sele.pdf
Java AssignmentWrite a program using sortingsorting bubble,sele.pdf
eyewatchsystems
Java Program
Java Program
Sudeep Singh
Java весна 2013 лекция 2
Java весна 2013 лекция 2
Technopark
Core java pract_sem iii
Core java pract_sem iii
Niraj Bharambe
Code javascript
Code javascript
Ray Ray
C# Starter L04-Collections
C# Starter L04-Collections
Mohammad Shaker
Oot practical
Oot practical
Vipin Rawat @ daya
import java.util.ArrayList;public class Checkout{private.docx
import java.util.ArrayList;public class Checkout{private.docx
Abhinav816839
Dotnet 18
Dotnet 18
dhruvesh718
Java file
Java file
simarsimmygrewal
Java file
Java file
simarsimmygrewal
662305 09
662305 09
Nitigan Nakjuatong
Implementing stack
Implementing stack
mohamed sikander
import java.util.Scanner; public class Palin { public static v.pdf
import java.util.Scanner; public class Palin { public static v.pdf
LAMJM
Please help with this JAVA Assignment and show output if you can ple.pdf
Please help with this JAVA Assignment and show output if you can ple.pdf
aroramobiles1
Ähnlich wie Booklab
(20)
ISCP internal.pdf
ISCP internal.pdf
Java Simple Programs
Java Simple Programs
100 Small programs
100 Small programs
Demonstrating bully algorithm in java
Demonstrating bully algorithm in java
public class TrequeT extends AbstractListT { .pdf
public class TrequeT extends AbstractListT { .pdf
Java AssignmentWrite a program using sortingsorting bubble,sele.pdf
Java AssignmentWrite a program using sortingsorting bubble,sele.pdf
Java Program
Java Program
Java весна 2013 лекция 2
Java весна 2013 лекция 2
Core java pract_sem iii
Core java pract_sem iii
Code javascript
Code javascript
C# Starter L04-Collections
C# Starter L04-Collections
Oot practical
Oot practical
import java.util.ArrayList;public class Checkout{private.docx
import java.util.ArrayList;public class Checkout{private.docx
Dotnet 18
Dotnet 18
Java file
Java file
Java file
Java file
662305 09
662305 09
Implementing stack
Implementing stack
import java.util.Scanner; public class Palin { public static v.pdf
import java.util.Scanner; public class Palin { public static v.pdf
Please help with this JAVA Assignment and show output if you can ple.pdf
Please help with this JAVA Assignment and show output if you can ple.pdf
Mehr von Ray Ray
Booklab
Booklab
Ray Ray
Code
Code
Ray Ray
Code
Code
Ray Ray
Code
Code
Ray Ray
Code
Code
Ray Ray
Laporan Counting Grade Apps
Laporan Counting Grade Apps
Ray Ray
Mehr von Ray Ray
(6)
Booklab
Booklab
Code
Code
Code
Code
Code
Code
Code
Code
Laporan Counting Grade Apps
Laporan Counting Grade Apps
Kürzlich hochgeladen
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
Conquiztadors- the Quiz Society of Sri Venkateswara College
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
PoojaSen20
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
Celine George
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
navabharathschool99
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
johnmickonozaleda
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
Celine George
Visit to a blind student's school🧑🦯🧑🦯(community medicine)
Visit to a blind student's school🧑🦯🧑🦯(community medicine)
lakshayb543
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
Anupkumar Sharma
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
MiaBumagat1
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
YousafMalik24
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
Celine George
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
AshokKarra1
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
MaryGraceBautista27
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
Conquiztadors- the Quiz Society of Sri Venkateswara College
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
thorishapillay1
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
Seán Kennedy
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
nelietumpap1
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
iammrhaywood
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
9953056974 Low Rate Call Girls In Saket, Delhi NCR
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
Conquiztadors- the Quiz Society of Sri Venkateswara College
Kürzlich hochgeladen
(20)
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
Visit to a blind student's school🧑🦯🧑🦯(community medicine)
Visit to a blind student's school🧑🦯🧑🦯(community medicine)
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
Booklab
1.
import java.util.*; public class
booklab { static Scanner in = new Scanner(System.in); static String a, name,c=""; static int choice, flag,sort,no, judul, qty; static String kata[] = {"Programming","Accounting","Management","Science","Politics"}; static int n = kata.length; static Vector<String> title = new Vector<String>() ; public static void enter () { for( int i=0;i<25;i++) { System.out.println(""); } } public static void init(){ n = kata.length; for(int i=0;i<n;i++){ title.add(kata[i]); } title.remove(n-1); } public static void bubbleSortAsc(){ for(int i=0;i<n-1;i++){ for(int j=n-1;j>i;j--){ if(kata[j].compareTo (kata[j-1]) < 0){ String temp = kata[j-1]; kata[j-1] = kata[j]; kata[j] = temp; } } } } public static void bubbleSortDesc(){ for(int i=0;i<n-1;i++){ for(int j=n-1;j>i;j--){ if(kata[j].compareTo (kata[j-1]) > 0){ String temp = kata[j-1]; kata[j-1] = kata[j]; kata[j] = temp; } } } } public static void main (String[]args) { init(); do{ System.out.println("ttt========="); System.out.println("tttBOOKS LAB"); System.out.println("ttt=========");
2.
System.out.println("n1. View List
of Books"); System.out.println("2. Borrow Book"); System.out.println("3. Exit"); do{ flag=0; try{ System.out.print("nInput Your Choice : "); choice = in.nextInt(); }catch(Exception e) { in.nextLine(); flag=1; } finally { in.nextLine(); } }while(flag==1 || choice <1 ||choice >3); switch(choice) { case 1: enter(); do{ flag=0; try{ System.out.print("nPlease input sorting type[by asc=1 / desc=2] :"); sort = in.nextInt(); }catch(Exception e) { in.nextLine(); flag=1; } finally { in.nextLine(); } }while(sort<1|| sort>2); if(sort ==1) { bubbleSortAsc(); System.out.println("nSorting book by ascending"); System.out.println("============================"); for(int i=0;i<n;i++) { System.out.print("-"+kata[i]+" n"); in.nextLine(); } n = title.size(); in.nextLine(); } else if(sort==2) { bubbleSortDesc(); System.out.println("nSorting book by descending"); System.out.println("============================"); for(int i=0;i<n;i++) { System.out.print("-"+kata[i]+" n");
3.
in.nextLine(); } n = title.size(); //in.nextLine(); } break; case
2: enter(); do{ flag=0; try{ System.out.print("nInput your name :"); name = in.nextLine(); for (int a = 0; a < name.length(); a++) { if(name.charAt(a) >48 && name.charAt(a) <57) { flag =1; } ; } }catch(Exception e) { in.nextLine(); flag=1; } }while(flag==1); do{ flag=0; try{ System.out.print("Input book title [prog=1,sci=2, acc=3, mene=4, pol=5] :"); judul =in.nextInt(); in.nextLine(); }catch(Exception e) { in.nextLine(); flag=1; } }while(flag==1|| judul < 1 || judul > 5); do{ flag=0; try{ System.out.print("Input book quantity :"); qty = in.nextInt(); in.nextLine(); }catch(Exception e) {
4.
in.nextLine(); flag=1; } }while(flag==1); if(judul == 1) { System.out.println("nThanks "+name); System.out.println("You
have borrowed "+qty+ " Programming book"); }else if(judul == 2) { System.out.println("nThanks " +name); System.out.println("You have borrowed "+qty+ " Science book"); }else if(judul ==3) { System.out.println("nThanks " +name); System.out.println("You have borrowed "+qty+ " Accounting book"); }else if(judul==4) { System.out.println("nThanks " +name); System.out.println("You have borrowed "+qty+ " Management book"); }else if(judul==5) { System.out.println("nThanks " +name); System.out.println("You have borrowed "+qty+ " Politics book"); } break; } }while(choice !=3); } }
Jetzt herunterladen