Click here to Skip to main content
15,902,198 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: CSS - ID vs Class? Pin
Steven Campbell30-Aug-04 6:07
Steven Campbell30-Aug-04 6:07 
GeneralRe: CSS - ID vs Class? Pin
Roger Wright30-Aug-04 13:53
professionalRoger Wright30-Aug-04 13:53 
GeneralRe: CSS - ID vs Class? Pin
theJazzyBrain30-Aug-04 21:29
theJazzyBrain30-Aug-04 21:29 
AnswerRe: CSS - ID vs Class? Pin
Rocky Moore31-Aug-04 19:50
Rocky Moore31-Aug-04 19:50 
GeneralRe: CSS - ID vs Class? Pin
Steven Campbell1-Sep-04 8:14
Steven Campbell1-Sep-04 8:14 
GeneralShell extention for IE Pin
chris stuart30-Aug-04 4:23
chris stuart30-Aug-04 4:23 
Generaldown load sql query as text file Pin
kumar_manoj7729-Aug-04 21:10
kumar_manoj7729-Aug-04 21:10 
GeneralJava Application Pin
Golden Goose27-Aug-04 18:28
Golden Goose27-Aug-04 18:28 
Hi Whizzards!

Require help on the Java application below:

The transaction processing application is to be developed in Java
The application reads a master and a transactions file containing data on
the number of hits received by respective departments in a super-store. The
department hits are generated when people interact with an online Information Kiosk
to find the department location in the super-store.
Specifications
Requirements details for this application are given below:
1. The master file contains data on the total year to date hits received by each
department and has the following format:
3
bbbb17 Shoes
bbbbb9 Toys
bbbb65 Ladies Clothing
(Note: ‘b’ stands for a blank, and the number 3 in the first record of the file
shows the number of departments, numDepts)
2. The transaction file contains data on the hits received on a given day and looks
as follows:
Shoes
Shoes
Toys
Shoes
Ladies Clothing
Toys
Toys
Ladies Clothing
Shoes
Jewellery
3. The user should be able to invoke the application in two ways:
by passing no command-line parameters.
by passing two command-line parameters specifying the input file names, for
example, java Assign1 testMaster.txt testTrans.txt
4. When no parameters are passed, the application would use MASTER.TXT and
TRANS.TXT as default file names for the master and the transaction file
respectively.
5. Once invoked, the application reads the master transaction file and creates an
array of department objects. A department object has two instance variables:
the deptName and the hitsReceivedCounter. In addition, it has methods that
perform the following tasks:
read department data from a master file
get the deptName
get the number of hitsRreceivedCounter
increment the number of hitsReceivedCounter
write department data to a new file
6. Next, the application reads the transaction file and increments the
hitsReceivedCounter of the relevant department objects in the array.
7. Finally, a suitable output stream is opened and the updated objects use it to
write their data to a new file called UPDATED.TXT. Note that this file has
exactly the same format as the master file.

Looking fwd to the code.... thnx in advance...

Golden goose.


GeneralRe: Java Application Pin
theJazzyBrain30-Aug-04 21:35
theJazzyBrain30-Aug-04 21:35 
GeneralISAPI Pin
Max Santos27-Aug-04 4:03
Max Santos27-Aug-04 4:03 
General-2147467259 Operation must use an updateable query. Pin
Brendan Vogt27-Aug-04 0:46
Brendan Vogt27-Aug-04 0:46 
GeneralRe: -2147467259 Operation must use an updateable query. Pin
Hesham Amin4-Sep-04 6:47
Hesham Amin4-Sep-04 6:47 
GeneralASP - Reverse Engineering Pin
Rashmi Hollikeri26-Aug-04 19:42
Rashmi Hollikeri26-Aug-04 19:42 
QuestionHow do you delete Internet Explorer Cookies Progamatically? Pin
kayhustle26-Aug-04 14:04
kayhustle26-Aug-04 14:04 
AnswerRe: How do you delete Internet Explorer Cookies Progamatically? Pin
Syed Abdul Khader30-Aug-04 6:10
Syed Abdul Khader30-Aug-04 6:10 
GeneralRe: How do you delete Internet Explorer Cookies Progamatically? Pin
kayhustle30-Aug-04 8:25
kayhustle30-Aug-04 8:25 
GeneralIIS--> Windows NT Pin
jphuphilly26-Aug-04 7:25
jphuphilly26-Aug-04 7:25 
GeneralRe: IIS--> Windows NT Pin
David Salter26-Aug-04 11:05
David Salter26-Aug-04 11:05 
GeneralRe: IIS--> Windows NT Pin
jphuphilly27-Aug-04 10:47
jphuphilly27-Aug-04 10:47 
QuestionHow to transfer data in Real Time over the net Pin
Deepak Samuel26-Aug-04 5:55
Deepak Samuel26-Aug-04 5:55 
AnswerRe: How to transfer data in Real Time over the net Pin
alex.barylski26-Aug-04 9:47
alex.barylski26-Aug-04 9:47 
AnswerRe: How to transfer data in Real Time over the net Pin
Anonymous26-Aug-04 14:42
Anonymous26-Aug-04 14:42 
GeneralEnter char Pin
Brendan Vogt26-Aug-04 2:38
Brendan Vogt26-Aug-04 2:38 
GeneralRe: Enter char Pin
David Salter26-Aug-04 5:46
David Salter26-Aug-04 5:46 
GeneralSQL Server - NULL Values Pin
Brendan Vogt26-Aug-04 2:37
Brendan Vogt26-Aug-04 2:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.