Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a C++ program with these requirements: CIS 2541: C++ Language Programming Program Assignment Name: Program Assignment Points #3- Arrays, sorting. Searching. and Pointers Stock

Create a C++ program with these requirements:
image text in transcribed
image text in transcribed
image text in transcribed
CIS 2541: C++ Language Programming Program Assignment Name: Program Assignment Points #3- Arrays, sorting. Searching. and Pointers Stock LookUp C++ Program documentation alignment/spacing file input pointer memory functions .main 5 pts 5 pts 10 pts 15 pts e sorting pointers 10 pts. searching symbols5 pts. accuracy output formatting demo 10 pts 10 pts 10 pts. Total* 90 pts. "60 point maximum for code that cannot compile or execute. On your own, create a modular C++ program to lookup the trading symbol in a given stock portfolio. The program will use dynamic parallel arrays to hold the stock data: trading symbol, company name, number of shares and current price. Do not use global variables or constants in your solution Stock portfolio information is read from file and can contain any number of stocks. The first line of the file contains an integer identifying the remaining number of stocks to read from the file. Each remaining line in the file contains data for a single stock (data types in parentheses): trading symbol (multiple characters), company name (multiple characters with embedded spaces and end delineated by #), number of shares (integer), and current price (real). Sample stock file given below: MCD McDonald's Corporation 35 99.25 HD The Home Depot, Inc.# 31 115.54 F Ford Motor Co.# 288 16.49 WMT Wal-Mart Stores Inc. 10 83.33 BA The Boeing Company# 24 151.46 a) Create the source code file StockLookUp.cpp. Add a block comment at the top of the file to identify your name, file, date, class, assignment, and short description of the program

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 1 Lnai 9851

Authors: Paolo Frasconi ,Niels Landwehr ,Giuseppe Manco ,Jilles Vreeken

1st Edition

3319461273, 978-3319461274

More Books

Students also viewed these Databases questions

Question

What is order of reaction? Explain with example?

Answered: 1 week ago

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago