COP 3337 Florida International University Programming Netbeans Project 1
I need help with the attached computer programming assignment. I’m so lost in this class already! I will attach the zip file after you reply as it would not upload in the initial screen. Thank you so much! Instructions below and SPECIFIC instructions attached. Thank you!
This is your Programming Assignment 1 . When you have completed the assignment please ZIP you ENTIRE Netbeans project and upload it using the assignment upload link. Note, you must upload the entire Netbeans project in a zipped file; because, I check all your code to see if it runs. Remember that you must upload the assignment before it’s due date to get credit. Otherwise, you will receive a zero for the assignment grade.
The project instructions can be found here: COP3337-Instructions-Project1.pdf
Actions
Netbeans Project 1 shell project (download this file and unzip it): COP3337-Project1-ClassCode.zip download
Super
Important:
Do not copy someone’s code. You may be randomly selected to explain your code. If you cannot explain your code, you will get a zero for the project grade. If you are stuck please ask me. I will gladly help you. Remember the goal is to learn.
Important:Do not copy someone’s code. You may be randomly selected to explain your code. If you cannot explain your code, you will get a zero for the project grade. If you are stuck please ask me. I will gladly help you. Remember the goal is to learn.
Uploads – Important
If you upload not your entire Netbeans project you will get a zero.If this is the case and you reload your project after you got a zero 20% will be automatically taken off you grade. So please make sure you are uploading the correct files.
COP3337
Project1
Read through the document carefully. All the steps you need to do to complete the project are listed in
this document. Please download the Project1 zipped file which can be found on the canvas assignment
page. This zipped file contains the shell of this project.
When you done with the project please upload it to canvas using the assignment link. Make sure you
know the due date and time. All due times for this course are Eastern Central Time zone. I will not except
project that are emailed to me or that are late. Please do not email with … you late by a few minutes,
internet issue, dog ate your computer… J Please plan accordingly and do not wait until the last minute
to complete the assignment.
Advise to you:
Print all the code on paper so you can trace the code. Start early, that way I can help you in my office
hours. Your code output alignment and format are important.
Important:
Do not copy someone’s code. You may be randomly selected to explain your code. If you cannot explain
your code, you will get a zero for the project grade. If you are stuck please ask me. I will gladly help you.
Remember the goal is to learn. J
Package Structure
The following classes do not need any modification and work correctly, but you should take a look at
their code to see how they work:
•
•
Data.java
Cash.java
UML
Project1-Data.txt
The Project1-Data.txt file contains the data used in the project. This data is read into the project when
creating a Data object.
Looking at some of the data in the file:
DATE,SP500,GOLD,LIBOR
2019-01-02,2510.03,1287.200,2.79388
2019-01-03,2447.89,1287.950,2.79500
2019-01-04,2531.94,1290.350,2.80388
2019-01-07,2549.69,1291.500,2.79681
2019-01-08,2574.41,1283.900,2.78250
2019-01-09,2584.96,1281.300,2.79888
2019-01-10,2596.64,1292.400,2.79694
….
2020-08-07,3351.28,2061.500,0.25250
2020-08-10,3360.47,2030.300,0.25688
2020-08-11,3333.69,1996.600,0.25350
2020-08-12,3380.35,1931.700,0.26475
Steps you need to do:
Step 0:
Complete the Project Info Header at the top of the Controller.java file. If you miss this part, you will
get 40% deducted from you grade.
Step 1:
• In the Controller.java file complete code for Step 1 and run the code
Console Output of this Step:
==================================================
Data
==================================================
Index Dates
SP500 Gold Libor
————————————————–0
2019-01-02 2510.03 1287.20 2.7939
1
2019-01-03 2447.89 1287.95 2.7950
2
2019-01-04 2531.94 1290.35 2.8039
…
393
394
395
396
397
398
2020-08-05
2020-08-06
2020-08-07
2020-08-10
2020-08-11
2020-08-12
3327.77
3349.16
3351.28
3360.47
3333.69
3380.35
2034.45
2049.15
2061.50
2030.30
1996.60
1931.70
0.2420
0.2433
0.2525
0.2569
0.2535
0.2648
Step 2:
• In the Controller.java file complete the code for Step 2
• In the Portfolio.java file complete the code for Step 2.1.
• In the Portfolio.java file complete the code for Step 2.2
• In the Controller.java file complete the code for Step 2.3
Run your code.
Console Output:
==================================================
Portfolio Information
==================================================
Name:
Susan, Holiday
ID:
Su-Ho-1000
Cash:
100000.00
Step 3:
•
•
•
In the Analyzer.java file complete the code for Step 3
!
o This code calculates the average. The formula for average: 𝑥̅ = ” ∑”#$! 𝑥#
In the Controller.java file complete the code for Step 3.1
In the Analyzer.java file complete the code for Step 3.2
o This code calculates the variance. The formula for sample variance: ∑”#$!
•
•
“‘!
In the Controller.java file complete the code for Step 3.3
In the Analyzer.java complete file the code for Step 3.4
o This code calculates the standard deviation. The formula for sample variance:
o
•
(&! ‘ &̅ )”
𝑠& = ‘∑”#$!
(&! ‘ &̅ )”
“‘!
In the Controller.java complete the code for Step 3.5
Console Output:
===========================================
Data Stats
===========================================
Average SP500:
2961.49
Variance SP500:
46022.67
Std Dev SP500:
214.53
Step 4:
• In the Controller.java complete the code for Step 4
Console Output:
===========================================
Data Stats
===========================================
Average SP500:
2961.49
Variance SP500:
46022.67
Std Dev SP500:
214.53
Average Gold:
1508.14
Variance Gold:
32692.68
Std Dev Gold:
180.81
Average Libor:
1.78
Variance Libor:
0.68
Std Dev Libor:
0.83
Step 5:
In this step you are calculating the correlation between the following:
o SP500 – SP500
o Gold – SP500, Gold- Gold
o Libor – SP500, Libor – Gold, Libor – Libor
o To calculate the correlation use the following formula:
•
•
In the Analyzer.java file complete the code for Step 5
In the Controller.java file complete the code for Step 5.1
Console Output:
===========================================
Correlations Table
===========================================
SP500
Gold
Libor
SP500 | 1.00
Gold | 0.49
1.00
Libor | -0.37
-0.94
1.00
Step 6:
•
•
In the Analyzer.java file complete the code for Step 6
There is no console output on this step
Step 7:
•
•
In the Controller.java file complete the code for Step 7
There is no console output on this step
Step 8:
Pay attention to the alignment and decimal places of the output
• In the Controller.java file complete the code for Step 8
Console Output:
==============================================
Calibrate Multiplier
==============================================
MultiplierSP500:
0.2500
multiplierGold:
0.1406
multiplierLibor:
0.0469
Step 9:
•
In the Controller.java file complete the code for Step 9
Console Output:
==============================================
Trade Tricker
==============================================
===================================================
SP500
===================================================
Number of matches: 50
1, 2, 55, 84, 88, 103, 146, 149, 153, 160, 267, 281, 282, 284, 286, 287, 288, 289, 291, 292, 293, 294, 295, 296, 297, 298, 300, 301, 302, 304, 305, 306, 308,
309, 311, 313, 315, 316, 318, 320, 321, 326, 328, 334, 338, 351, 355, 358, 364, 366
===================================================
Gold
===================================================
Number of matches: 33
115, 124, 129, 145, 148, 153, 161, 168, 248, 249, 252, 281, 282, 288, 290, 294, 295, 296, 297, 298, 302, 311, 315, 328, 329, 357, 383, 384, 386, 393, 396,
397, 398
===================================================
Libor
===================================================
Number of matches: 30
25, 32, 115, 145, 154, 251, 285, 286, 287, 288, 290, 291, 295, 296, 297, 298, 299, 304, 305, 309, 314, 315, 316, 320, 323, 324, 325, 326, 327, 329
===================================================
Trade Executions
===================================================
Index
Date
SP500
Gold
Libor
288
2020-03-04
3130.12 1644.80 1.00
295
2020-03-13
2711.02 1588.15 0.84
296
2020-03-16
2386.13 1504.65 0.89
297
2020-03-17
2529.19 1472.35 1.05
298
2020-03-18
2398.10 1506.00 1.12
315
2020-04-14
2846.06 1715.85 1.18
Number of trade executions: 6
YOU ARE DONE J
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics