Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. You will pick 10 stocks from this list: https://finance.yahoo.com/quote/%5EDJI/components?p=%5EDJI 2. create a program that takes the stock's symbol, company name, last price, change, and

1. You will pick 10 stocks from this list: https://finance.yahoo.com/quote/%5EDJI/components?p=%5EDJI

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

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

-5 individual arrays or vectors of their correct types

-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,

-the user should input the stock symbol.

-The array will be searched using a binary search

-If the symbol is found, all the information for that company will be displayed, else an error message will be displayed.

-The user will be able to enter a new price for the stock.

-This value will be updated in the array.

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

The language for this program should be in C++

image text in transcribed

Competent 200 (20%)-400 (40%) 5 Different algorithms are Sortin 0 (0%)-100 (10%) 100 (10%)-200 (20%) 1 or two algorithms are used and coded properly and/or the information in the arrays are jumbled by and/or a couple algorithmsused for the five different are not coded properly and/or the arrays are not categories to be sorted They are coded properly and the two dimensional arrays are sorted properly 0 (0%)-50 (596) 50 (5%)-100 (1096) 100 (10%)-200 (20%) Binary search not used, or completely off, or search item not returned, even if the search item is in array Binary search is used, but implementation is off a bit and/or no error message is displayed if data not Binary search is used and implemented properly Error message is displayed if data not 75 (7.5%)-150 (1596) 0 (0%)-25 (2.5%) Data is neither loaded nor outputted properly 25 (2.5%)-75 (7.5%) Data is either not loaded properly or not outputted to file properly File Input/Output Data is loaded into arrays properly and outputted to file properly 50 (5%)-100 (1096) All functions and code blocks have sufficient commenting. Any lines of code that are unclear are 0 (0%)-25 (2.5%) Little or no commenting. 25 (2.5%)-50 (596) Some functions or code blocks are not commented or several lines of unclear code are not commented 9 User Interface 0 (0%)-50 (596) 50 (596)-100 (1096) 100 (10%)-150 (15%) Formatting is messy and i Formatting is not very nice Output to console is is unclear how to use the formatted nicely Functionality is explained on screen and using the program is simple and/or how to use the program is unclear

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions

Question

What are the stages of project management? Write it in items.

Answered: 1 week ago