Java project
Hello everyone! I’m a computer science student, and I have to do a project in the Java programming language, which involves creating a software application for a natural products store, an application that must keep track of medicinal plants. For each type of medicinal plant available, the application displays the name, the quantity available and the price. When a customer comes to the store, the seller will choose a medicinal plant from the list, enter the quantity requested by the customer and press the "BUY" button. After pressing the button, the list of medicinal plants is updated (the available quantity of the purchased product). Also, the seller can introduce new types of medicinal plants. For a new type, its name, quantity and price will be entered. After pressing the add button, the list of medicinal plants is updated. When the application is started, the list of available medicinal plants is read from a text file (one line for each plant).After a product is sold, its name and the quantity sold are saved in the “SoldPlants.txt” file.
Also, it is necessary to highlight an application architecture on 3 levels:
1. interface (presentation level) - graphical interface;
2. application logic (logical level) - problem field; 3. Data persistence (data level) - repository.
The interface must include the fundamentals of graphics in Java: positioning management, event handling, listener interfaces and internal classes for event management. At the same time, the interfaces must include menus, control menus, accelerators, etc.
Access to the application will be based on username and password (so I also need a Login window included in the project).
I've already tried to do the project with the help of AI, but I didn't understand anything and the big problem is that I have an error that I can't get rid of. I work with IntellijIDEA, and I have formed 5 classes: Medicinal Plant, StoreFileManager, StoreApp, MainClass, LoginWindow and I have also created the “Plants.txt” file (in MainClass I wrote the code to create it), and the “SoldPlants.txt” file. Also in MainClass I called the login window. Now comes the problem: when I run MainClass, I get the following error:
java: cannot find symbol
symbol: method startStoreApp()
location: class MainClass.
The line of code it refers to sounds something like this:
new MainClass().startStoreApp();
This error appears from the LoginWindow, that is, when I run MainClass it sends me to the LoginWindow and shows me this error...
I'll tell you seriously, I'm not good at programming at all, I'm a beginner and I can't finish any project on my own. Here in Romania, teachers don't help you with anything to understand how to program in a practical way, they just give homeworks and that's it. AI doesn't help much either, it seems that there are still errors. All the code so far is copied from there. So I don't know what each line means and why certain sentences are written like that.
My big request is, if there is someone who is good at programming in Java, to help me solve this project, to tell me how I should do it from start to finish thoroughly, without that or any error. If possible, explain to me why the error occurred and how to get rid of it, I would be really grateful!🙏🏻