CSC161 Lab Quiz II Version B Spring 2021
CSC161 Lab Quiz II Version B Spring 2021
You will be producing the report below from the data file given. If needed rename your data file to the format LQ2DataB.txt. Your report will read the file which contains the stock name, Symbol and closing price, previous closing price, low price for the day and the high price for the day. Your program must use Arrays, Scanner and PrintWriter. Your user must be able to send output to the screen, File or both Stock Report By Jeffrey Spector Version B Low High Previous Profit Symbol Company Price Price Close Close Per 100 Gain/Loss NRG NRG Energy Inc 37.90 38.73 38.15 38.39 -24 Loss The Stock with the greatest gain is: The Stock with the smallest gain is:
DETAILED ASSIGNMENT