Hi, please see below for my method code.
Every time the program runs, user enter bids for Work1 and the bids are passed into the function below and through the function, the highest bid is selected and displayed out.
But the problem is if user continue and enter bids for Work2 and the process goes round again. This time, Work2 highest bid will replace Work1 highest bid and display out. In my txt file, only Work2 highest bid is displayed.
What can I do so that both Work1 & Work2 highest bids are stored and displayed?
Please help, Thank you.