Sample output Name: Mary Smith BirthYear: 1991 Salary: 50000.0 Name: John Jones BirthYear: 2000 Salary: 90000.0 Name: Terry Seidal BirthYear: 1992 Salary: 51000.0 Name: Jessica Terrell BirthYear: 2000 Salary: 91000.0

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter4: Control Structures I (selection)
Section: Chapter Questions
Problem 17PE: Samantha and Vikas are looking to by a house in a new development. After looking at various modelsm...
icon
Related questions
Question
  • ReadInstructor. The class will:

    • –  Create an array of instructor objects

    • –  Read the instructors.txt file

    • –  Create an Instructor object for each line of input and store the object in the array.

    • –  After closing the file, it will print out a line for each instructor in the array.

  • Input file:
    Mary Smith 1991 50000.00

  • John Jones 2000 90000.00

  • Terry Seidel 1992 51000.00

  • Jessica Terrell 2000 91000.00

 

 

 

Sample output
Name: Mary Smith BirthYear: 1991 Salary: 50000.0
Name: John Jones BirthYear: 2000 Salary: 90000.0
Name: Terry Seidal BirthYear: 1992 Salary: 51000.0
Name: Jessica Terrell BirthYear: 2000 Salary: 91000.0
Transcribed Image Text:Sample output Name: Mary Smith BirthYear: 1991 Salary: 50000.0 Name: John Jones BirthYear: 2000 Salary: 90000.0 Name: Terry Seidal BirthYear: 1992 Salary: 51000.0 Name: Jessica Terrell BirthYear: 2000 Salary: 91000.0
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning