Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write this code in java language : The data input for this project will be the electricity data obtained from OCHA in a csv file
write this code in java language :
The data input for this project will be the electricity data obtained from OCHA in a csv file
Electricitycsv attachednote: this file is a normal text file; you can open it using notepad Each line
in thisfile contains a daily electricity record Date IsraeliLinesMWs GazaPowerPlantMWs
EgyptianLinesMWs TotaldailySupplyavailableinMWs OveralldemandinMWs
PowerCutshoursdaymgandTemp separated by comma
YOU MAY NOT USE ARRAYS or ARRAYLIST IN THIS PROJECT.
For a good user experience, you will need to implement a graphical user interface GUI using javaFX.
YOU MAY NOT USE SCENE BUILDER IN THIS PROJECT.
At the beginng, the user has to load the electricity file using a file chooser.Then the user will get a list of
functions to choose from:
Mangement Screen:
An option to insert new electricity record.
An option to update anelectricity record.
An option to delete an electricity record.
An option to search for an electricity record by date.
An option to traverseprint Years Tree and Months Tree and Days Tree level by level.
An option to display the height of Years Tree and Months Tree and Days Tree.
Note: use a calendar GUI for anything related to date.
Statistics Screen:
An option to show statistics for:
a A specific electricity statistic for a given day across all months and years
b A specific electricity statistic for a given month across all days and years
c A specific electricity statistic for a given year across all days and months
d A total statistic for all data. Note: statistics include at least: totalsum average,
maximum, and minimum
Note: all the above functionalities should obtain the data from the combined trees data structure.
Save Screen: in this screen, you will have an option to save the updated trees back to a new file
in the same format as input file separated by comma
Use a file chooser to select the folder to save the new file in
You have to study the time complexity of each function above and be ready to explain
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started