It is needed to modify a small code which reads a file to give more outputs.
File rows are of two types:
customer_name type stocks_amount stock_value currency_value exchange_rate
customer_name type cash_amount cash_currency exchange_rate
There is a loop to read the file, which is already ordered by customer.
The data for each record are printed as they are.
For every customer you need to evaluate the total net worth in euros, the total value of stocks, of cash amount, the percentage of total net worth in stocks and in cash.
To the printing of every record, you need to add the printing of the value in euros of stocks or cash of that record and, when the customer changes, also the total amounts.
12 pekerja bebas membida secara purata €20 untuk pekerjaan ini
Hello there, I am a developer and I can help you iwith your project, please contact me Relevant Skills and Experience c, c++ Proposed Milestones €29 EUR - delivery