Question: Write a C++ program that asks the user for a filename, opens the file, and then reads the data into an array of structs. The

Write a C++ program that asks the user for a filename, opens the file, and then reads the data into an array of structs.

The data in the file will be sorted by job. Each job will contain the following lines:

-First line: Job description (string)

-Second line: number of skills (int)

-Followed by: 'n' lines each listing a skill (string)

-Followed by: Salary (int)

-Last line: Company name (string)

EXAMPLE FILE DATA:

Web Developer

7

PHP

HTML

CSS

Javascript

jQuery

JSON

SQL

60000

Google Internship

Systems Operations Programming - Student

2

SQL

PLC programming

31000

Knoxville Utilities Board

Program must be able to handle at most 10 jobs, but input file may have more or less entries in it. If the input file has too many entries in it, just don't read them (dont go out-of-bounds in your array). If the input file has too few, partially fill your array of structures.

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!