• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Test Abilities

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I implement a Company system. The system keeps tracks of a list of employees and a list of departments.
Admin menu can have two submenus: Loading and Saving. The loading submenu will contain loading customers, loading accounts, , and loading transactions.Add the functionality in which the program can load/save list of employees and list of departments from/to text files.


Employee
- String: id
- String: first Name
- String: last name
- Date: date of birth
- String: manager
-double: salary
- String: department name
+ Employee(id, firstName, lastName, dob,manager,salary, dept Name)
+getName():String
+getDOB() ate
+toString():String
+getId():String
+getManager():String
+getSalary(): double
+getDept(): String

2-Department
Department
- String: name
- Employee: manager
- Date: date established
+Department(name, manager, date)
+getName():String
+getDate() ate
+toString():String
+getManager():String
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not an advanced question. Moving...
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which parts are you having problems with ? Nobody is going to write the whole program for you. Show us what you have so far and describe your problems in detail.
e.g. if it's not compiling, show us the exact error messages and the parts of the code where the errors are (use code tags)
If it's not doing what you expect, tell us what it is doing and how this differs from what you expect.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The ranch works best when you can post a bit of code that almost works. I don't know where you're stuck, so I'm guessing the very beginning.

Sometimes when you have trouble getting started it's helpful to find the smallest possible thing you can write and prove it works. This often involves a little test program to run your real classes. It might look something like this:

It's hard to completely clear the menus, the Employees, the save and load and so on from your mind, but it's well worth while. You can add them back in soon enough.
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic