Computers and Technology

The ABC brokerage company asks you to write a stock account program. Each user will start with an account balance of $1000. Your program should let the user choose the number of shares from a list of 10 stocks. Your program will read in the stock data from a file named stocks. dat. This file includes the stock symbol, company name, and current price for the 10 stocks. After the user has purchased his or her stocks by entering the number of shares and the stock symbol, your program should simulate a day on the stock market. During the course of the day, the price of each stock will rise or fall by zero to 99 percent. At the end of the market day, your program should recalculate the value of the user’s stock account and then provide the user with the option of buying more stock or selling stock that he or she already owns. After the user makes a decision, your program should simulate another day on the stock market. It should simulate a total of five days. After five days, your program

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:30, alexdub9649
What is a costume plot? why is it important to a film or theater production?
Answers: 2
image
Computers and Technology, 22.06.2019 16:30, nxusasmangaliso1191
The most common battery cable terminal is a that provides a large surface contact area with the ability to tighten the terminal onto the battery post using a nut and bolt.
Answers: 2
image
Computers and Technology, 22.06.2019 22:00, noeminm105
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag. e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
image
Computers and Technology, 24.06.2019 07:30, Isabellawuzhere
Aproject involves many computing systems working together on disjointed task towards a single goal what form of computing would the project be using
Answers: 3
Do you know the correct answer?
The ABC brokerage company asks you to write a stock account program. Each user will start with an ac...

Questions in other subjects:

Konu
Mathematics, 27.10.2020 01:00
Konu
Chemistry, 27.10.2020 01:00
Konu
History, 27.10.2020 01:00