For example if a user enters the data xyz 156 12 the


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 price-per-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.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: For example if a user enters the data xyz 156 12 the
Reference No:- TGS02195355

Expected delivery within 24 Hours