You are on page 1of 5

ALGORITHMS & DATA TYPES

ASSIGNMENT 1
21334331

APRIL 1, 2017
UNIVERSITY OF WEST LONDON
21334331 ADT Nasser Matoorianpour

Contents
Introduction ............................................................................................................................................ 1
Code for the application: ........................................................................................................................ 2
Conclusion ............................................................................................................................................... 4

Introduction
I have been asked to create a book array; whereby members of the library can
borrow books within a given period of time; a fine is charged will be imposed if a member
does not return the book within a week, notices are sent out in order to keep the members up to
date about their lent books. After the third notification the member is blacklisted till the book(s)
have been returned to the library or necessary fines paid.

1|Page
21334331 ADT Nasser Matoorianpour

Code for the application:

User input

Switchboard

2|Page
21334331 ADT Nasser Matoorianpour

Switchboard

When user inputs 1, Case 1


will appear

When user inputs 2, Case 2


will appear

When user inputs 3, Case 3


will appear

Prints message to user

3|Page
21334331 ADT Nasser Matoorianpour

Prints message to user.


System.out.println; is used to
display messages to the
command window. This bit of
code will print out the total
cost of the project.

Conclusion
During this assignment I came to the conclusion that Data Types are necessary when developing
code for sorting and creating arrays and lists. It is essential to be incorporated within any database
that requires the storage of lists of information.

4|Page

You might also like