Question: This code needs to be in C++ and the files contain random superhero names. Super hero DB Files: superheroDB1.txt superheroDB2.txt superheroDB3.txt superheroDB4.txt superheroDB5.txt CSS 2A-Dynamic

CSS 2A-Dynamic Arrays Lab 7: Super Hero Database Due date: 11/22/16 Your task: You need to create a program to process a superhero database distributed in five different text files (superheroDB1-5.txt). The layout of the file is defined as follows: The first line contains the number of super heroes names stored in the file. Super hero data (names, specifically) shows in subsequent lines. Lab 7 Part 1. File Processing 1. Process one input file per program execution (user will select the input file). 2. Allow the user to enter the name of the input file (maximum 30). 3. Name entered must not exceed the maximum file input name size. 4. Verify whether the input file was successfully opened, otherwise show an error to the screen. 5. Use a dynamic array to store all super hero data in the file selected. 6. Sort (Part 2) 7. Display the ordered array in the screen. Part 2. Sort 1. Sort the array in ascending order (use bubble sort).
Step by Step Solution
3.42 Rating (168 Votes )
There are 3 Steps involved in it
To achieve the desired functionality in C you can use file handling to read the superhero names from ... View full answer
Get step-by-step solutions from verified subject matter experts
