+ 1
Is there anyone who can help me with my java homework... P.S I need to paas the lesson
4 Answers
+ 4
Please post your questions
+ 3
I don't your name as I can't understand Greek. By the way please check the code for your question. Hope it will help
https://code.sololearn.com/c7UQnKS2iywg/#java
+ 1
can I write it in Greek because I don't know good English first?
+ 1
Create a class with the name "Shop" that contains the name of the shop
the years of operation
the annual revenue
the list of employees (as a table)
if it has an eshop (Boolean)
In this class you have to create the constructors:
public Shop (String name, int years), that initializes name and years.
public Shop (String name. int years int revenue Boolean eshop) that initializes name years annual revenue and if it has an eshop
Also the following methods for each field of class
public void addEmployee(String employee) that adds to the employees table the first&last name of the employees that is given as a parameter
To see if your class works you have to create another class with the name ShopProgram that includes only the method main that
read from the user a number for the amount of shops that wants to register
read from the user the information for all those that established the user and create the right στιγμιότυπο
print all the shops that have been registered
thanks