1. 程式人生 > >C++ program 代碼代編碼代做、代寫 C++ stock price

C++ program 代碼代編碼代做、代寫 C++ stock price

微信 functions array all haskell entire record asi CP

C++ program 代碼代編碼代做、代寫 C++ stock price
Guideline of Assignment
Let us assume that you are an investor who holds a portfolio of stocks. You need to design a C++ program to maintain and manage stock price information of 7 days.
General Features and Functions
? Basic features: the program should be able to
1) Store the portfolio information into a 2-dimentional array(N × 8) of String type. The first column of the array for stock code, and the rest columns for 7-day prices. You may declare the total number of stocks as a constant valued 10 (i.e., N = 10), and initialize the array by setting code to the string “NULL” and prices 0. Below is an exemplar portfolio with 2 stocks.

02800 31.25 32.5 33.7 33.2 35.8 35.1 30.7

03700 419.6 422.3 421.7 429.2 411.9 412.6 410.1

NULL 0 0 0 0 0 0 0

N NULL 0 0 0 0 0 0 0


NULL 0 0 0 0 0 0 0

2) Add a new stock into the portfolio to an available place (input: code and 7 prices). If no available space left (all rows are occupied), print the error message accordingly.
3) Retrieve a stock (Input: stock code). If found, display all 7 prices, and the lowest, highest, and average price.
4) Modify the price of a stock on a certain day (input: stock code, day and new price)
o Note that only a stock that exists in the portfolio can be changed.
5) Delete a stock (the whole record, including its prices; input: stock code)
o Note that only a stock that exists in the portfolio can be deleted.
6) Display the entire portfolio
7) Populate random values into the entire portfolio (for testing purpose)
o Stock code: a random 4-digit in the range of 1000-4999
o Price: a double number between [0, 100), in the format of, for example, 28.3. Note that it is saved as a string in the array

? Bonus features
8) User input validation: check if user input is valid and prompt if not (e.g., a valid price)
9) Feel free to add any other relevant features to your system
? Hints
- User interface and features
o See an exemplar interface as in the given sample code (SampleUserInterface.cpp)
o For your reference, see an exemplar system coded by me, run the file “PortfolioManager.exe” to try my demo program. Note that other files in the same package are supporting library files that should be put in the same folder as the .exe file).
o However, feel comfortable to design an interface that you prefer, either simplified or feature-richer.
- How to cast between string, double, and integer
o see the given sample code “StringSampleCode.cpp”
- How to format a number-like string
o see the given sample code “StringSampleCode.cpp”
- How to validate user input
o see the given sample code “StringSampleCode.cpp”
http://www.6daixie.com/contents/13/1346.html

我們的方向領域:window編程 數值算法 AI人工智能 金融統計 計量分析 大數據 網絡編程 WEB編程 通訊編程 遊戲編程多媒體linux 外掛編程 程序API圖像處理 嵌入式/單片機 數據庫編程 控制臺 進程與線程 網絡安全 匯編語言 硬件編程 軟件設計 工程標準規等。其中代寫代做編程語言或工具包括但不限於以下範圍:

C/C++/C#代寫

Java代寫

IT代寫

Python代寫

輔導編程作業

Matlab代寫

Haskell代寫

Processing代寫

Linux環境搭建

Rust代寫

Data Structure Assginment 數據結構代寫

MIPS代寫

Machine Learning 作業 代寫

Oracle/SQL/PostgreSQL/Pig 數據庫代寫/代做/輔導

Web開發、網站開發、網站作業

ASP.NET網站開發

Finance Insurace Statistics統計、回歸、叠代

Prolog代寫

Computer Computational method代做

因為專業,所以值得信賴。如有需要,請加QQ:99515681 或郵箱:[email protected]

微信:codinghelp

C++ program 代碼代編碼代做、代寫 C++ stock price