Create a CompanyDriver application. You will have at least 2 methods in this application, Create a menu.  main() – setCompanyData() - this reads the data from the file (call the file CompanyData.txt) displayCompanyData() - this displays the data to the screen, calling the toString() method of all objects //sortData() - This

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 9E
icon
Related questions
Question

Create a CompanyDriver application.

  • You will have at least 2 methods in this application, Create a menu. 
    • main() –
    • setCompanyData() - this reads the data from the file (call the file CompanyData.txt)
    • displayCompanyData() - this displays the data to the screen, calling the toString() method of all objects
    • //sortData() - This will sort the data by choice either name of stock or current price / This will be part of lab 7.
  • //Create an arraylist of the 10 Company objects  and display them.  You may want to make this a method.  This will be part of lab 7
  • Create an array of the 10 Company objects and display them.   You may want to make this a method.
  • Read the data  from a file (see below)
  • Call each method as described above

CompanyData.txt (the data is set up like this: (Company name, lastprice, current price - copy and paste this into a .txt file)

 

 
GoPro, Inc.
10.71
13.69
Starbucks
59.53
58.46
JC Penney
7.73
10.78
Amazon
531.07
576.32
Adams Resources and Energy
34.96
33.77
Coca-Cola
42.72
43.60
McDonald's
121.47
115.99
Tesla Motors
173.48
187.90
Apple Inc
96.35
100.67
Facebook
112.69
108.93

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Study of Characters
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,