ticker symbol, transaction type, quantity, price, mm/dd/yyyyThe appropriate types for each field are as follows:
If a line has a type error print out the line and an appropriate error message(s). If a line has more than one error than you should print all error messages.
As noted above, you should aggregate all the transactions for each stock ticker symbol and write them out. You do not have to write them out in alphabetical order (hint--this means you might want to consider using an associative array). Change the date fields so that they print out as mm-dd-yy. There should be an empty line between each group of transactions (each ticker symbol represents a group of transactions) and the data fields should still be comma separated. The summary line should read:
total transaction value = $xxxxxx.xxwhere there are two decimal digits and space for up to six digits to the left of the decimal point (if the total transaction value is greater than $1,000,000 that is ok--the field will simply print larger and not be aligned.