Käynnissä

Need a small example program in Java.

Develop a software system for simple account management using “push” Model View Controller architecture (i.e. a view receives updates from a model by events), exception mechanism and JUnit framework in Java with Swing (cf. JUnit example at

[url removed, login to view] ,

[url removed, login to view]

[url removed, login to view] ).

On start up the system should load a list of accounts from a file specified in a command line and present the user with a frame that contains

• a drop down list populated with account IDs with names appended (in increasing order of IDs); the first account ID should be pre-selected; the items in the drop down list immutable

• buttons “Edit account in $”; “Edit account in Euros”; “Edit account in Yen”

• button Save

• button Exit

An entry in a file with a list of accounts should contain a string with a name (only letters allowed); a string with an ID (only digits allowed); a string with an amount in $ (digits and decimal point allowed; thus amount >=0.0). IDs are unique; names can repeat.

On pressing “Save” the system should write the current state of accounts to the file whose name appeared in the command line.

On pressing “Exit” the system should write the current state of accounts to the file whose name appeared in the command line if they have been modified since last save. After that the system should exit.

On pressing one of the buttons “Edit account in ..” the system should open another window that contains:

• window’s title <NameOfAccountHolder ID; Operations in {$ or Euros or Yen}>

• immutable textfield that shows the current amount in the account titled “Available funds” (i.e. Available funds: <textfield>)

• editable textfield initialized to 0.0 that only allows digits and decimal point to be entered; titled “Enter amount in {$ or Euros or Yen}”

• buttons “Deposit”, ‘Withdraw”, “Dismiss”

On pressing “Dismiss” the window should close

On pressing “Deposit” if the editable textfield contains a positive number greater than 1 then that amount is added to the account amount;

The result of the operation must be seen in all other windows open for this account with appropriate exchange rate modifications so that all open windows show consistent account state.

On pressing “Withdraw” if the editable textfield contains a positive number greater than 1 and there are sufficient funds then that amount is subtracted from the account amount; the result of the operation must be seen in all other windows open for this account with appropriate exchange rate modifications. If funds are insufficient then an exception must be raised by some method from a class in the model package that will eventually is caught by the controller and the controller must request the view to open a pop-up window that contains message “Insufficient funds: amount to withdraw is x is greater than available funds: y”. The pop-up window contains button “Dismiss” on pressing which the pop-up window should close.

After pressing the “Deposit” or “Withdraw” button the content of the Enter amount textfield should be reset to 0.0

The system should have other exception as needed (e.g. in response to corrupted or inconsistent content of the file with accounts; e.g. inadmissible characters in the fields of an account entry; broken format of the file). Exceptions should result in useful messages via dismissable pop-up windows. In case of file inconsistencies messages should mention name of the file, line number where inconsistency occurred, nature of inconsistency, suggestion to fix (e.g. “Name must have only letters” or “Amount must not be negative”). If an error is unrecoverable the system should exit on dismissing the pop up window.

In this manner it should be possible to keep multiple windows open for the same and/or different accounts in same and/or different currencies.

The exchange rates should be hardwired as constants (public final static double) as:

1 $ = [url removed, login to view] Euro

1 $ = 94.1 Yen

The software system ought to be designed according to the object oriented approach.

Comments should be provided for each class, important methods and important code portions inside the methods. Comments for classes and methods should be in javadoc format so that to produce a simple API documentation automatically.

JUnit testcases should be provided for each method in classes in model and controller packages (as needed for classes in the view package).

Taidot: Java, UML-suunnittelu

Näytä lisää: x rates, up string, swing design, request funds, program design software, net need, list methods package design, letters example, inside view, example letters, euro design, design program windows, design architecture line, designed packages, cf software, architecture design line, api architecture design, small example program java, immutable, swing api, net framework architecture, java swing api, write cookbook, program line, program design architecture

About the Employer:
( 2 reviews ) Houston, United States

Projektin tunnus: #519171

Myönnetty käyttäjälle:

dmantampfl

If the requirement does not change, I need a maximum of 5 days to finish the job.

100 $ USD 5 päivässä
(5 arvostelua)
3.1

12 freelanceria on tarjonnut keskimäärin 174 $ tähän työhön

rakib062

Hello sir, I have over 2 years experience in java.I can do the job.

50 $ USD 15 päivässä
(19 arvostelua)
4.3
designwork

hi,we have expertise in Accounting software Developemnt.Also,we use Junit as our unit testing framework..

500 $ USD 30 päivässä
(0 arvostelua)
0.0
psvoidmain

Group of highly experienced professionals from world recognized engineering institutes aiming to implement and support on software applications and commonly used software frameworks. Includes J2EE based applications, d Lisää

150 $ USD 10 päivässä
(0 arvostelua)
0.0
hridesh

project is easy but time taking as it is java based.every piece of gui is time taking. rest selection of database and security are added cost for the project.

200 $ USD 20 päivässä
(0 arvostelua)
0.0
vikramsanyam

we have made this kind of project in past so we have exp. to make this on time & within the budget

150 $ USD 15 päivässä
(0 arvostelua)
0.0
divnesan

We are team of professional’s expertise in developing web based application using PHP/ASP/.NET and J2EE and in web designing using Photoshop CS3, Dreamweaver MX, Flash MX with ActionScript3.0. After reading your projec Lisää

150 $ USD 5 päivässä
(0 arvostelua)
0.0
dhananjayvaidya

i ma able to do this project within 7 days

100 $ USD 7 päivässä
(0 arvostelua)
0.0
anveshreddy

sir i can provide you abetter performance

250 $ USD 2 päivässä
(0 arvostelua)
0.0
Comal1

Hello Buyer Pl inform if gui based javaprogram that will contain the following 1) savings2)customer3)Account4)BankAccount5)BankAccountApp6)AccountChecking features Thanks

200 $ USD 1 päivässä
(0 arvostelua)
0.0
rajukumarprince

I had one year experiance in java. I can give this project on time.

100 $ USD 10 päivässä
(0 arvostelua)
0.0
pankajtechavenue

Dear Sir/Madam, I am working as a freelancer.Im available for any type of project development which matches my skills. Im able to work on java/j2ee,SQL SERVER 2000-05-08, etc. If I can provide you with any further i Lisää

135 $ USD 7 päivässä
(0 arvostelua)
0.0