C++ program 代码代编码代做、代写 C++ stock price

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

原文地址:https://www.cnblogs.com/rrrrrrrrr/p/8974693.html

时间: 2024-10-21 03:02:34

C++ program 代码代编码代做、代写 C++ stock price的相关文章

COMP 3023代写、代写COMP 3023、代做 C++ - Assignment、 代编码C++ - Assignment

COMP 3023代写.代写COMP 3023.代做 C++ - Assignment. 代编码C++ - AssignmentRevision 1COMP 3023 Software Development with C++ - Assignment SP5 2018 Page 1 of 22School of Information Technology and Mathematical SciencesCOMP 3023 Software Development with C++Assig

C线程代业代写代调试、POSIX Threads代编码

C线程代业代写代调试.POSIX Threads代编码(CSCI 363) Project Two -- POSIX ThreadsInstructionsThis program sorts strings using "enzymes". An enzyme is a function that sorts two consecutive characters. We define one enzyme per pair of consecutive characters; the

jvm中的年轻代 老年代 持久代 gc

虚拟机中的共划分为三个代:年轻代(Young Generation).老年代(Old Generation)和持久代(Permanent Generation).其中持久代主要存放的是Java类的类信息,与垃圾收集要收集的Java对象关系不大.年轻代和年老代的划分是对垃圾收集影响比较大的. 年轻代: 所有新生成的对象首先都是放在年轻代的.年轻代的目标就是尽可能快速的收集掉那些生命周期短的对象.年轻代分三个区.一个Eden区,两个Survivor区(一般而言).大部分对象在Eden区中生成.当Ed

GC 年轻代 老年代 持久代

转载自:http://www.cnblogs.com/yaoyuan23/p/5587548.html 虚拟机中的共划分为三个代:年轻代(Young Generation).老年代(Old Generation)和持久代(Permanent Generation).其中持久代主要存放的是Java类的类信息,与垃圾收集要收集的Java对象关系不大.年轻代和年老代的划分是对垃圾收集影响比较大的. 年轻代: 所有新生成的对象首先都是放在年轻代的.年轻代的目标就是尽可能快速的收集掉那些生命周期短的对象.

JVM 年轻代 老年代 持久代 gc

虚拟机中的共划分为三个代:年轻代(Young Generation).老年代(Old Generation)和持久代(Permanent Generation).其中持久代主要存放的是Java类的类信息,与垃圾收集要收集的Java对象关系不大.年轻代和年老代的划分是对垃圾收集影响比较大的. 年轻代: 所有新生成的对象首先都是放在年轻代的.年轻代的目标就是尽可能快速的收集掉那些生命周期短的对象.年轻代分三个区.一个Eden区,两个Survivor区(一般而言).大部分对象在Eden区中生成.当Ed

base64编码及JNI实现,代码非原创,只做整理和实现JNI端交互

直接上代码: #include <stdlib.h> #include <stdio.h> #include <getopt.h> #include <string.h> #include "base64.h" extern "C" { //Base64 编码 int Base64Encode(unsigned char *OrgString, unsigned char *Base64String, int OrgS

洗礼灵魂,修炼python(3)--从一个简单的print代码揭露编码问题,运行原理和语法习惯

前期工作已经准备好后,可以打开IDE编辑器了,你可以选择python自带的IDLE,也可以选择第三方的,这里我使用pycharm--一个专门为python而生的编译器 第一个python代码当然是所有开发语言里入门必学"hello,world",no,你错了,我偏不 第一行是编码,utf-8这是国际使用标准,如果我不加的话,很容易出错 第二行print(打印的意思)语句,是python的关键词语句,可以打印一个字符,可以打印一个数字,可以打印任何你想打印的东西,只要你想让它显示出来,你

Base64是网络上最常见的用于传输8Bit字节代码的编码方式之一

Base64是网络上最常见的用于传输8Bit字节代码的编码方式之一,大家可以查看RFC2045-RFC2049,上面有MIME的详细规范.Base64编码可用于在HTTP环境下传递较长的标识信息.例如,在Java Persistence系统Hibernate中,就采用了Base64来将一个较长的唯一标识符(一般为128-bit的UUID)编码为一个字符串,用作HTTP表单和HTTP GET URL中的参数.在其他应用程序中,也常常需要把二进制数据编码为适合放在URL(包括隐藏表单域)中的形式.此

自己总结的C#编码规范--5.如何写好注释篇

本文是读完前言中提到的几本书后,结合自身的想法总结出来的如何写好注释的一些比较实用的方法: 如何写好注释 避免使用不明确的代词 有些情况下,"it", "this"等代词指代很容易产生歧义,最安全的方式是不要使用将所有可能产生歧义的代词替换成实际指代的词. 如://Insert the data into the cache,but check if it's too big first. "it"是指"data"还是&quo