Index of /~raj/4710/sp03/hw78
HW7: CSc 4710/6710
Spring 2003
Due: 2 May, 2003
--------------------
Write Java Programs that accesses an ObjectStore database for
Portfolio management.
PopulateSecurity.java - HW7
---------------------------
This program is responsible for creating the database, roots etc.
This program should also read data from a text file and populate
the Security class by creating persistent objects.
The text file format is shown in security.dat file (First line contains
number of securities that follow; Then each security is described in
5 lines - symbol, company name, current price, ask price and bid price).
This program takes as command line input name of database file and name
of text file containing data about security. An example invocation is:
java PopulateSecurity portDB.odb security.dat
Portfolio.java
--------------
The program begins by presenting the following main menu:
(a) Member Log in - HW7
(b) New Member Sign in - HW7
(q) Quit.
A new member can use option (b) to create a new account.
This option prompts the new member for the member id, password,
fname, lname, address, email, and initial cash balance.
An existing member can use option (a) to login to their
account. The member is prompted for an member id and password.
Upon successful login, the member is shown the following menu of
options:
(a) View Portfolio - HW8
(b) Price Quote - HW7
(c) Buy a Stock - HW8
(d) Sell a Stock - HW8
(q) Quit.