Question: Visual Basic---- Create a Structure named Stock consisting of the below members. The data record structure matches the displayed order of the members. company symbol

Visual Basic----

Create a Structure named Stock consisting of the below members. The data record structure matches the displayed order of the members.

company

symbol

exchange

industry

price2013 'price at end of 2013

price2014 'price at end of 2014

earningsPerShare

dividend

Read in all values from the input file (Dow2014.txt) into an array of type Stock. Use a LINQ query to determine each dividend ratio (dividend / price2014). Order the equities in descending order by their dividend ratio.

Display the results in a DataGridview control. Rename the columns as:

company = "Company"

symbol = "Symbol"

ratio = "Yield as of 12/31/2014"

Visual Basic---- Create a Structure named Stock consisting of the below members.

g DOWN Determine the Dogs of the Dow Yield as of A Company Symbol 12/31/2014 T 5.51 AT&T 4.62 Verizon Chevron Corporation CVX 3.82 GE 3.52 General Electric McDo 3.50% McDonald's PFE 3.40 Pfizer MRK Merck 3.12% XOM 2.99 ExxonMobil 2.95 Caterpillar CAT 2.89 Coca-Cola KO g DOWN Determine the Dogs of the Dow Yield as of A Company Symbol 12/31/2014 T 5.51 AT&T 4.62 Verizon Chevron Corporation CVX 3.82 GE 3.52 General Electric McDo 3.50% McDonald's PFE 3.40 Pfizer MRK Merck 3.12% XOM 2.99 ExxonMobil 2.95 Caterpillar CAT 2.89 Coca-Cola KO

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!