Question: Q4 c++ Write a program that uses a structure for storing the name of a stock, its estimated earnings per share, and its estimated price-to-eanings

Q4
c++
Write a program that uses a structure for storing the name of a stock, its estimated earnings per share, and its estimated price-to-eanings ratio. Have the program prompt the user to enter these items for five different stocks, each time using the same structure to store the entered data. When the data has been entered for a particular stock, have the program compute and display the stock price anticipated on the basis of the entered earnings and price-per-share values. For example, if a user entered the data XYZ 1.56 12. the anticipated price for ashareofXYZ stock would be 1.56*12 = $18.72
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
