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
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
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Knowledge Booster
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.Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,