0% found this document useful (0 votes)
88 views5 pages

Algorithms & Data Types Assignment 1: University of West London

This document describes an assignment to create a book borrowing application for a library. It includes an introduction describing the requirements to track books borrowed, fines for late returns, and blacklisting members after multiple notices. The code section shows how the application would use a switchboard to allow users to select options like borrowing, returning, or viewing notices. A conclusion emphasizes that data types are necessary for developing arrays and lists to store and sort library records.

Uploaded by

Arash Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views5 pages

Algorithms & Data Types Assignment 1: University of West London

This document describes an assignment to create a book borrowing application for a library. It includes an introduction describing the requirements to track books borrowed, fines for late returns, and blacklisting members after multiple notices. The code section shows how the application would use a switchboard to allow users to select options like borrowing, returning, or viewing notices. A conclusion emphasizes that data types are necessary for developing arrays and lists to store and sort library records.

Uploaded by

Arash Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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