Write a C++ program that uses a structure for storing a stock name

Write a C++ program that uses a structure for storing a stock name, its estimated earnings per share, and its estimated price-to-earnings 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 data has been entered for a particular stock, have the program compute and display the anticipated stock price based on the entered earnings and priceper-earnings values. For example, if a user enters the data XYZ 1.56 12, the anticipated price for a share of XYZ stock is (1.56) × (12) = $18.72

Please follow and like us: