Question: Write a C++ program that will Declare a struct stock a. Name b. Price on Day 1 c. PriceonDay2 d. Percent change Ask the user

Write a C++ program that will

Declare a struct stock a. Name

b. Price on Day 1 c. PriceonDay2 d. Percent change

Ask the user to input how many stocks hell enter

Input that number

Declare a vector of stocks of that inputted number(step 3)

Use a loop that for each stock will

a. Input:

Name of Stock

Price on Day 1

PriceonDay2

b. Compute the Percent change

Loop that computes the stock whose percentage change increased

the most

Output the stock in the vector whose percent change increased the most

a. Output all contents of the struct

Name

Price on Day 1

PriceonDay2

Percent change

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!