Project 44

One & Two - Dimensional Arrays, Sorting, Objects (125 points)
Consider the following four records containing names and transactions .
< param name=name0 value=Jones >
< param name=data00 value=12.35 >  
< param name=data01 value=16.45 >  
< param name=name1 value=Smith >  
< param name=data10 value=13.45 >  
< param name=data11 value=12.32 >  
< param name=name2 value=Aaron >  
< param name=data20 value=16.24 >  
< param name=data21 value=32.12 >  
< param name=name3 value=Jordan >  
< param name=data30 value=16.74 >  
< param name=data31 value=23.02 >  
Write an applet which will read the name field into a one - dimensional array as follows :

name[0] = "Jones", name[1] = "Smith", name[2] = "Aaron", name[3] = "Jordan" ...

Read the transactions into a two - dimensional array as follows :

tran[0][0] = 12.35, tran[0][1] = 16.45
tran[1][0] = 13.45, tran[1][1] = 12.32
tran[2][0] = 16.24, tran[2][1] = 32.12
tran[3][0] = 16.74, tran[3][1] = 23.02

Assume additional parameter tags of names can be added with exactly two transactions per person. Have your applet find and output the total sum of transactions per person. In addition your applet must find and output the count and sum of all transctions. It must also call an object which will return only the value of the average transaction. The returned average must be rounded to dollars and cents. Make sure your applet produces the sample output below.

Other Requirements:


Sample Output for Project44