IS3230 Assignment 2 (total 15 marks) Sem A, 2020/21
Requirement:
IS3230 Assignment 2
You are given three csv files with trading data of different companies. You need write java programs which would help you do a preliminary analysis of the historical performance of a stock. Details are as below.
You need write two java files, one named Stock.java and another file named IS3230_YourID_Demo.java (please replace YourID with you actual student ID number). Stock.java should have a constructor which takes a file name as passed argument and a method blackHammer() which will display the found black hammer dates. In the demo file IS3230_YourID_Demo.java, you need create an object of Stock.java and use the method blackHammer() to print the results.
When you run your demo file, your program should allow the user to:
Firstly choose which company to analyze with:
Then, the program analyzes the data in the given file, and displays the transaction date if the pattern is found on that day. For example, if the user chooses 1, you may see similar results as:
If the user enters 0, you should see result like:
Note: a trading day is said to be a black hammer pattern if the trading prices fits for a hammer shape like:
close price < open price;
(high price – open price) < (open price – close price)/2
(close price – low price)/5 <(open price – close price)<(close price – low
price)/2
1|Page
IS3230 Assignment 2 (total 15 marks) Sem A, 2020/21
(The demonstrated ratio 1/2,1/3 and 1/5 might vary in different applications but will not go beyond a reasonable hammer shape.)
Submissions:
You need submit the following files to Canvas before end of Week 12 (Nov 22nd) midnight:
Word document IS3230_YourID_results.docx with your demonstration output (1 mark). Your two java files Stock.java and IS3230_YourID_Demo.java (14 marks).
(Please don’t zip your files in submission, not even the two java files.)
Late Penalty:
Late submission for 1 day or less: your respective project score x 25%; late submission more than 3 day would not be accepted.
Note: It is individual assignment. All work submitted would be checked for plagiarism. If dishonesty found, the person would get 0 mark for this assignment.
2|Page