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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started