Question
Need help with c++ program. Write a program that stores stock symbols into dynamic arrays. The user will enter as many stocks as he/she wishes.
Need help with c++ program.
Write a program that stores stock symbols into dynamic arrays. The user will enter as many stocks as he/she wishes. The program should display the list of stocks after each one is entered. Sort stocks in alphabetical order. After that, use the program as a starting point for a menu-based program. The menu-based program should include these options:
1. Add a new stock.
Include room for the stock symbol, the name of the stock, and the current price.
2. Edit a stock.
Provide the ability to locate a stock based on its respective symbol and change the current price.
3. Delete a stock.
Offer the user the opportunity to enter a stock symbol and, if found, to delete the stock. If the particular stock symbol is not found, simply display an informative message to the user.
4. Display all stocks.
Display a list of all the current stocks stored in the array.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started