Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this project, you will implement an Electricity data structure using combined AVL trees. The figure that i gave shows the overall data structure, i

In this project, you will implement an Electricity data structure using combined AVL trees. The figure that i gave shows the overall data structure, i need to read from a file that has this format
(Date, Lines_MWs, Power_Plant_MWs, second_Lines_MWs, Total_daily_Supply_available_in_MWs, Overall_demand_in_MWs, Power_Cuts_hours_day_400mg,andTemp) each one separated by a comma (,)
now it will need to skip the first line in the file and then read the date and using the date it will create an AVL tree for the years, inside of it will be another AVL tree called months, and inside will be another AVL tree called days, in inside each day will have an object containing the rest of the data,
my question is how will i make a program that will read all this and create it as it reads the file and not have it pre built
heres the project and heres the image
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:
1. An option to insert new electricity record.
2. An option to update anelectricity record.
3. An option to delete an electricity record.
4. An option to search for an electricity record by date.
5. An option to traverse/print Years Tree and Months Tree and Days Tree level by level.
6. 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: total(sum), 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.
i need it to be with as minimal of a time complexity as possidle
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students also viewed these Databases questions

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago