J
javaNwebie
Gast
hallo, hab zu einem projekt folgende aufgabe gekriegt... und bin total verwirrt...
A distribution firm has many agents that can sell products. Write an
application whici creates a window for each active agent and a window for
the manager. The manager and all the agents see the list with all the
products, together with the existent quantity.
An agent can select a product and sell a quantity(less than the existing
quantity) of that product. If the agent asks a quantity greater than the
existing one, an error message appears. After the sell, the quantity is
refreshed in the lists of all the windows. If all the quantity is sold, than
the product is removed form the list, and again of all windows have to be
automatically refreshed.
The agents names are read from a text file. When the application starts a
window is open for each agent. When an agent closes its window, his selling
is saved on a file, in a way that allows a forward analysis.
The manager also may obtain statistics of the sells:
-how much each agent had sold in a specific day
-which product has been sold better in a specific week
--------
konnte mir jemand ne skizze wenigstens machen?
(oder einfach code schreiben )
bin total verwirrt da wir bisher nichts derartiges hatten :autsch:
A distribution firm has many agents that can sell products. Write an
application whici creates a window for each active agent and a window for
the manager. The manager and all the agents see the list with all the
products, together with the existent quantity.
An agent can select a product and sell a quantity(less than the existing
quantity) of that product. If the agent asks a quantity greater than the
existing one, an error message appears. After the sell, the quantity is
refreshed in the lists of all the windows. If all the quantity is sold, than
the product is removed form the list, and again of all windows have to be
automatically refreshed.
The agents names are read from a text file. When the application starts a
window is open for each agent. When an agent closes its window, his selling
is saved on a file, in a way that allows a forward analysis.
The manager also may obtain statistics of the sells:
-how much each agent had sold in a specific day
-which product has been sold better in a specific week
--------
konnte mir jemand ne skizze wenigstens machen?
(oder einfach code schreiben )
bin total verwirrt da wir bisher nichts derartiges hatten :autsch: