Skip to content

gt12889/NeighborhoodLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeighborhoodLibrary

This program simulates a library check-in/out system that records the status of the books and its borrows through a CLI. The book name, ISBN, and ID will be recorded into an adjustable list.

Users wil have the ability to edit the library database and can perform the following actions:

◾List all available books
◾Check out available books
◾List all checked out books
◾Check in books

CLI Screens

Home Screen

image

Book List

image

Check-In Interface

image

Interesting Code

I think the simple "if" conditional statement below is interesting since it tests to check for the user's integer input as well as the boolean in one line without using &&. The books array is searched until [choice] was matched with the interval then the isCheckedOut() function is called to check to make sure the book is availible . Other methods with "while" or "do-while" loops could achieve the same goal, but this was the most simple in my opinion.

 if (books[choice].isCheckedOut() == false) 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages