Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

Distinguish between operating mergers and financial mergers.

Answered: 1 week ago

Question

The Functions of Language Problems with Language

Answered: 1 week ago

Question

The Nature of Language

Answered: 1 week ago