Answered step by step
Verified Expert Solution
Question
1 Approved Answer
and my Shoes Data File If somebody helps me I will really appreciate. Thank you! The input file will be in the following format Dress
and my Shoes Data File
If somebody helps me I will really appreciate. Thank you!
The input file will be in the following format Dress Boots Sandals 6.5 Sneakers 8.5 Problem Statement: Black Red Blue White 10 Design an algorithm that will load the shoe inventory from a file into a dynamically allocated database. The database will use a struoture to store the shoe data. The pointers to each structure will be contained in a vector 20 The program data is in a text file called Shoes.txt. You can use this file to test your program. However, it should also work with other input files. The structure definition should be able to store the following information: You should create and se functions for each of the following tasks: Shoe Data Shoe T Size Width Color Data Values Dress, Casual, Sandals, Sneakers, Boots 6 through 12 including half sizes A, B, D White, Tan, Blue, Red, Black 0 or more Open and read the file into the vector Sort the vector data by shoe size (low-to-high) Display the output to the screen. Release the dynamically allocated memory antit Feel free to add any additional functions you think wi improve your program. Format your output like the example below: When the program begins display a welcome message. Prompt the user for the input filename. If the file does not open, display an error message Super Shoe Store Inventory Report Shoe Type Size Width Color Quantity The shoe inventory file is tab delimited with four fields: shoe type, size, width, color, and quantity For each line in the input file, dynamically allocate memory for a new structure and add the pointer to that structure to your pointer vector. Once the entire file is loaded, close the input file Black DressS Sandals Sneaker Boots 6.5 8.5 White Red 20 10 A. Black Red Dress Boots sandals Sneakers8.5 D Casual Boots Sandals Dress Dress Casual Sneakers11 Sandals Sneakers11.5 D Boots Casual 10 6.5 B Blue 7 White 20 7.5 B Tan 10 6.5B Black Black Tan Blue B Red 1 12 D 10 Blue 12 white Blue Mhite 9.5 B 10.5 B Black 4Step 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