For this assignment you are asked to review a Home Office policy document:

Home Office (2010). Protecng Our Border, Protecng the Public. The UK Border Agencys Five Year
Strategy for Enforcing our Immigraon Rules and Addressing Immigraon and Cross Border Crime
(London: Home Office). Available at:
hps://webarchive.naonalarchives.gov.uk/20100303205641/hp:/www.ukba.homeoffice.gov.uk/sit
econtent/documents/managingourborders/crime-strategy/protecng-border.pdf?view=Binary

you are asked to make a
judgement on the policy put forward by the UK government in 2010. Make sure you comment
crically on the document. Idenfy the purpose, the main points, and the polical movaons
behind the policy. Then evaluate them. Think about the arcles and chapters that you have read,
what are the results of this policy? What impact has it had? Was it a good policy? A bad one? Was it
well informed? Are there any unstated assumpons in the document? Are there any addional
purposes of the policy that are not explicitly stated?
We want to know your opinion, BUT, you must always back it up with academic sources. If you think
it was a great policy, why? Who else supports this? What research has shown the posive impact of
it? If you disagree with the policy, also, why? Have any academics provided evidence of a negave
impact of it in their research? Tell us about it.

Reading list:
Who Counts as a Migrant? Definitions and their Consequences
Webpage  by The Migration Observatory  2019  Essential
Globalization & crime
Book  by Katja Franko Aas  2013  Recommended
Read Chapter 4: ‘The Deviant Immigrant’: Migration and Discourse about Crime.
‘An Inspection into the extent to which the police are identifying and flagging arrested foreign nationals to the Home Office and checking their status
Document  by Independent Chief Inspector of Borders and Immigration  2016  Essential
Frontex Risk Analysis 2019
Webpage  by Frontex  2019  Recommended
Policing Humanitarian Borderlands: Frontex, Human Rights and the Precariousness of Life in British Journal of Criminology
Article  by Katja Franko Aas; Helene O. I. Gundhus  01/2015  Recommended

Enlisting the Public in the Policing of Immigration in British Journal of Criminology
Article  by Ana Aliverti  03/2015  Recommended
Hubs and Spokes: The Transformation of the British Prison in The borders of punishment: migration, citizenship, and social exclusion
Chapter  by Emma Kaufman  Essential

still no way out – Foreign national women and trafficked women in the criminal justice system
Document  by Prison Reform Trust  2018  Recommended
Read pages 5 through 13 as minimum

Immigration Detention in the UK
Webpage  by The Migration Observatory  Essential
Can Immigration Detention Centres be Legitimate? Understanding Confinement in a Global World in The borders of punishment: migration, citizenship, and social exclusion
Chapter  by Mary Bosworth  Recommended

Inside Immigration Detention
Book  by Mary Bosworth  2014; 881438158  Recommended
Google Books Logo
Introduction as minimum

Citizenship Deprivation, Security and Human Rights in European Journal of Migration and Law
Article  by Lucia Zedner  2016  Recommended
Interdiction and Indoctrination: The Counter-Terrorism and Security Act 2015 in The Modern Law Review
Article  by Jessie Blackbourn; Clive Walker  09/2016  Recommended

Recreational Uses of the Lehigh Canal

The semester research project asks you to explore how history, culture, environment, landscape, and land use have shaped a sense of place in the Lehigh Valley over the last 50 years. For more on the entire project, see Sense of Place Research and Story Map Project.docx

For this part of the project, you’ll submit a draft of final paper (8-10 pages), plus works cited, and at least one map, one photograph or image, and one graph or table of information (of your creation). Discuss your interpretation of the aspects of your chosen waterways history, present condition and future using the themes and perspectives discussed in class. Think of this as an exercise in historical, cultural, geographical and environmental interpretation. Your paper does not need to include all of these aspects, but it should be expressed through your particular lens of interpretation (i.e., cultural or scientific). Begin by formulating a thesis statement (Links to an external site.). This thesis statement should be included in the first paragraph of your paper.  Following the development of your thesis statement, I want you to outline your paper before you write it. See this (Links to an external site.) and this (Links to an external site.) for examples. You’ll turn in the outline when you turn in the paper.

The most important goal of this assignment is to look at your chosen waterway, ask questions about it, and think about its past, present condition and future with reference to historical and geographical themes weve reviewed in this course.

Youll need to do significant archival research to locate old documents and artifacts, such as: newspapers, water quality data, maps, photographs, advertisements, personal accounts, etc. You may also talk to local people and see what they have to say.

COMP122 2020 Assignment 3

COMP122 2020 Assignment 3
This assignment is due on 30/03/2020 at 5pm and should be submitted via SAM Electronic Submissions server (see the end of this page for detailed instructions).

Requirements
You will write a program that reads a list of items and their prices from a text file and creates a vending machine that sells these items.

Part 1. Reading Items from a text file
Write a method that reads a list of items (with price and description) from a given text file
and handles all possible exceptions that may occur.
To store the data, each item should be represented as an instance of the given class Item.
This class has private attributes price (a double) and description (a String), together with
“getter” methods, as usual.
You can instantiate an item object using its two-parameter constructor method,
which simply stores the given values in its attributes.
public Item(double price, String description) { … }
Write a class called Vendor that includes a static method called itemsFromFile.
This should open the text file, read its input and create (and return)
an array of Items specified in that file.
To be precise, the method must have the following signature.
public static Item[] itemsFromFile(String fileName);
You can assume that every line of text in the given file contains
a string of the form XXX.YYY;DDDD where XXX.YYY is the price of the item (in decimal notation, not necessarily with only 3 digits after the point), followed by the description DDDD of the item (again, not necessarily of length 4),
separated by a semi-colon (;).
For example, a text file with content
1.0;Cookies
0.5;Milk
3.1415;Crystal Meth
should be read into a length-3 array where the first element is an Item with price 1.01.01.0 and description “Cookies”
(as the values of its private attributes), the second is an Item with price 0.50.50.5 and description “Milk”, and so on.
Your method should handle all possible exceptions, including “file not found”, or if a line of text cannot be interpreted correctly.
It must not throw any exceptions itself.
If a line cannot be interpreted (or a file cannot be read) you may print an error message on System.err,
but should otherwise simply continue reading the input from the next line.
For example, if you change the first line in the text file above into
ABC1.0;Cokies
your method will fail to read this line but should still return an array of length 2 containing the remaining items.
You will find a few demo text files under src/items.*.txt.
Hint: You can use the Scanner class (java.util.Scanner) to extract strings line by line from a larger string, and also to parse the next number
(see lecture 6a).
Hint: Although you should ultimately return an array of Items,
it may be more convenient to internally use a List (for instance an ArrayList<Item>) to store the read items,
because you don’t know the length of the final array before reading the file completely.
Hint: The exercise does not ask for a main method so we will not be looking for (or executing) that.
You may of course add such a method in order to test your class.

Part 2. A parametrised vending machine
Write a class called VendingMachine, which can sell a given list of items.
Your class must have a constructor method that takes exactly one parameter, namely an array of Items:
public VendingMachine(Item[] items) { … }
These items should be stored in the vending machine somehow to be accessed later.
You should also keep track of which items have been sold already.
The class should have a private double attribute cassette and a corresponding getter public double getCassette().
Moreover, there must be public methods as follows.

a method called “insertCoin”
public void insertCoin(double coin)
that adds the value of is parameter to the cassette.
This method should throw an java.lang.IllegalArgumentException if the given coin is not of the right denomination.
Acceptable values are 0.01,0.02,0.05,0.1,0.2,0.5,1, and 2.

a method called “returnCoins”
public double returnCoins()
that empties the cassette and returns its value.

a method called “display”
public String display()
that returns the value of the cassette as a string in the form $X.YY,
meaning a dollar symbol followed by its value in decimal notation with exactly two digits after the point.
Hint: check out lab 4, exercise 1.5 for the string formatting.

a method called “getItem”
public Item getItem(int i)
that sells the ithi^{th}ith item.
It should check if the price of the item is at most the value of cassette.
If so it returns the item, updates the cassette and remembers that the item was sold.
If the parameter i is not a valid array index (is greater equal the number of stored items) this should throw an IllegalArgumentException.
There are two other possible error situations, which should be dealt with by throwing specialized RuntimeExceptions:

If the price of the item exceeds the value of the cassette you should throw CassetteException.
If the item at the given position has already been sold you should throw ItemSoldException.

These two types of exceptions are of course not part of the Java standard library,
so you will need to define them yourself (Hint: see lecture 7a
and lab 8).

Part 3. Unit tests
Write JUnit4 unit tests for the vending machine of part 2.
In each test case, you should create a new VendingMachine object using an appropriate array of Items for your test,
and interact with it in a way that checks the tested behaviour.
Notice that the aim here is to write unit tests that test for the specific behaviour stated here.
Don’t bend the tests so that they all pass for your solution to part 2 as they will be checked independently.
Write a class called TestVendingMachine that contains unit tests (methods) as follows.

testInsertCoinIncrease should check that calling insertCoin with a parameter 1.0 on a VendingMachine instance  correctly increments its cassette by one (as observed by calling its getter).

testInsertCoinDecrease should check that calling insertCoin with a parameter -1.0 decrements the cassette by one (as observed by calling its getter). Yes, this is not the behaviour specified in part 2, so a correct implementation for part 2 should fail this test.

testInsertCoinValidDenomination should check that calling insertCoin with a parameter that is not one of the expected ones (0.01,0.02,0.05,0.1,0.2,0.5,1, and 2) throws an IllegalArgumentException.

testDisplay should check that the string returned by the display method is in the format described in part 2.
This test should fail if the result contains extra spaces, or has too many digits.

testReturnCoinsGetsAll should check that calling returnCoins returns the value of the cassette (just before calling returnCoins).

testReturnCoinsEmptiesCassette should check that calling returnCoins results in the cassette being reset to zero.

testGetItemSale should check that getItem returns the correct item, assuming that the cassette is sufficient.

testGetItemTwiceSold should check that the getItem method throws a ItemSoldException
when it is called for the second time with the same parameter (assuming that the cassette is sufficient).

testGetItemTooExpensive should check that the getItem method throws a CassetteException
if the requested item costs more than the value of the cassette.

testGetItemDoesNotExist should check that the getItem method throws an IllegalArgumentException if the parameter i (the item index) is not a valid array index (is greater equal the number of stored items).

Marking Scheme

Part
1
2
3

Points
30
30
40

Fine Print

Make sure that all Java source files compile correctly!
A submission that contains source files that cannot be compiled will not count as a reasonable attempt.
To be sure, remove all *.class files and verify that javac X.java does not fail for any of your submission files X.java
(For TestVendingMachine this assumes that you have adjusted your CLASSPATH to include the junit and hamcrest dependencies
as mentioned in lecture 7b). You do not need to include these two .jar files in your submission.

Your submission is an individual piece of work. No collaboration with other students is allowed!
Expect that plagiarism detection software will be run on your submission to compare your work to that of other students.

Late submissions and plagiarism/collusion are subject to the University Code of Practice on Assessment.
In particular, since these are online submissions, a late penalty of 5% applies for every 24h period after the deadline.

Extensions requested after the submission deadline will not be granted.
Please get in touch with the student office to file a request for extenuating circumstances if necessary.

Do not define classes in any Java packages!
I am aware that it is generally good practice to keep your variable namespaces organized, and for that reason most IDEs will automatically suggest to do so by including a line
package yourProjectName;
or similar to every source file.
However, in order to automatically tests your submission we need to know the namespace where your classes are defined and the most fail-proof assumption is to use the default namespace, i.e., no packages.
If you don’t know what this is about, don’t worry and make sure your code does not contain any package declarations as above and compiles fine using javac *java in the directory that contains your files.

Is there a causal link between drugs and crime? Support your answer with relevant facts and examples.

For this task, you need to choose an essay question from the list provided below and
complete a 1,800-word essay that puts forward an original argument around, and substantial
analysis of, the selected topic.(Do not go over the 1800 words) this doesn’t include the bibliography. 20 References minimum required

READING LIST: (MUST INCLUDE IN THE ESSAY)
Drugs, Crime and Social Exclusion in The British Journal of Criminology
Article  by Toby Seddon  2006  Essential
Drugs and crime
Book  by Philip Bean  2014  Recommended

Assessing the impact of a high-intensity partnership between the police and drug treatment service in addressing the offending of problematic drug users in Policing and Society
Article  by David Best; Deborah Walker; Elizabeth Aston; Charlotte Pegram; Geraldine O’Donnell  2010  Recommended
In search of respect: selling crack in El Barrio
Book  by Philippe I. Bourgois  2003  Recommended
The Changing Shape of Street-Level Heroin and Crack Supply in England: Commuting, Holidaying and Cuckooing Drug Dealers Across County Lines in The British Journal of Criminology
Article  by Ross Coomber; Leah Moyle  2018  Recommended

The normalisation of drug supply: The social supply of drugs as the other side of the history of normalisation in Drugs: Education, Prevention and Policy
Article  by Ross Coomber; Leah Moyle; Nigel South  2016  Recommended
Key concepts in drugs and society
Book  by Ross Coomber; Karen McElrath; Fiona Measham; Karenza Moore  2013  Recommended
See chapter 20 (Drug related violence), chapter 21 (drugs and crime), chapter 33 (drug dealers), chapter 24 (drug markets: difference and diversity) and chapter 35 (drug trafficking)
Chasing the scream: the search for the truth about addiction
Book  by Johann Hari  2019  Recommended
See part 3 ‘Angels’
Drugs crime and criminal justice in Drugs: policy and politics
Chapter  by Rhidian Hughes; Nerys Anthony  Recommended

County lines violence, exploitation & drug supply 2017 – national briefing report
Document  by National Crime Agency  2017  Recommended
Assessing UK drug policy from a crime control perspective in Criminology & Criminal Justice
Article  by Peter Reuter; Alex Stevens  2008  Recommended
Drugs, alcohol, and crime in The Oxford handbook of criminology
Chapter  by Nigel South; Fiona Measham  RecommendedThats their brand, their business: how police officers are interpreting County Lines in Policing and Society
Article  by Jack Spicer  2019  Recommended
When two dark figures collide: Evidence and discourse on drug-related crime in Critical Social Policy
Article  by Alex Stevens  2007  Recommended

Drugs, crime and public health: the political economy of drug policy
Book  by Alex Stevens  2011  Recommended
See chapter 3 (Beyond the tripartite framework: the subterranean structuration of the drug-crime link) and chapter 4 (Telling policy stories: governmental use of evidence and policy on drugs and crime)

The Victimization of Dependent Drug Users in European Journal of Criminology
Article  by Alex Stevens; Daniele Berto; Ulrich Frick; Viktoria Kerschl; Tim McSweeney; Susanne Schaaf; Morena Tartari; Paul Turnbull; Barbara Trinkl; Ambros Uchtenhagen; Gabriele Waidner; Wolfgang Werdenich  2007  Recommended

From Social Supply to Real Dealing in Journal of Drug Issues
Article  by Matthew Taylor; Gary R. Potter  2013  Recommended
Narconomics: how to run a drug cartel
Book  by Tom Wainwright  2017  Recommended