Create a program that takes the stocks symbol company name


Assignment

Using Visual studio and c++

1. You will pick 10 stocks from this list:

2. Create a program that takes the stock's symbol, company name, last price, change, and volume as input from a file. How the file is formatted and inputed is up to you and you can put underscores between words in the companies name instead of using spaces. Store these values in either

o . A 2 dimensional array or vector of strings (may require converting strings to floats using: stof(stringVariable,nullptr); )

o . 5 individual arrays or vectors of their correct types

o . You may create a class or struct with the proper members for the data for each company, then create an array or vector of the class or struct type.

3. After input, it will display the information on the terminal. Users will have the option of sorting the information by any of the five categories of information. Depending on which category the data is being sorted by, you will sort using a different sorting algorithm.

4. The user will also be able to change the stock price.. When this option is selected,

1. the user should input the stock symbol.
2. The array will be searched using a binary search
3. If the symbol is found, all the information for that company will be displayed, else an error message will be displayed.
4. The user will be able to enter a new price for the stock.
5. This value will be updated in the array.

5. When the user exits, all data will be written back to the file.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a program that takes the stocks symbol company name
Reference No:- TGS02446928

Now Priced at $95 (50% Discount)

Recommended (96%)

Rated (4.8/5)